1
1
error[E0767]: use of unreachable label `'a`
2
- --> $DIR/cross_const_control_flow .rs:9:25
2
+ --> $DIR/cross-const-control-flow-125846 .rs:9:25
3
3
|
4
4
LL | 'a: { const { break 'a } }
5
5
| -- ^^ unreachable label `'a`
@@ -9,7 +9,7 @@ LL | 'a: { const { break 'a } }
9
9
= note: labels are unreachable through functions, closures, async blocks and modules
10
10
11
11
error[E0767]: use of unreachable label `'a`
12
- --> $DIR/cross_const_control_flow .rs:22:28
12
+ --> $DIR/cross-const-control-flow-125846 .rs:22:28
13
13
|
14
14
LL | 'a: { const { continue 'a } }
15
15
| -- ^^ unreachable label `'a`
@@ -19,7 +19,7 @@ LL | 'a: { const { continue 'a } }
19
19
= note: labels are unreachable through functions, closures, async blocks and modules
20
20
21
21
error[E0435]: attempt to use a non-constant value in a constant
22
- --> $DIR/cross_const_control_flow .rs:41:14
22
+ --> $DIR/cross-const-control-flow-125846 .rs:41:14
23
23
|
24
24
LL | const { &x };
25
25
| ^ non-constant value
@@ -30,7 +30,7 @@ LL | const x: /* Type */ = 1;
30
30
| ~~~~~ ++++++++++++
31
31
32
32
error[E0728]: `await` is only allowed inside `async` functions and blocks
33
- --> $DIR/cross_const_control_flow .rs:35:22
33
+ --> $DIR/cross-const-control-flow-125846 .rs:35:22
34
34
|
35
35
LL | const { async {}.await }
36
36
| -----------^^^^^--
@@ -39,31 +39,31 @@ LL | const { async {}.await }
39
39
| this is not `async`
40
40
41
41
error[E0268]: `break` outside of a loop or labeled block
42
- --> $DIR/cross_const_control_flow .rs:9:19
42
+ --> $DIR/cross-const-control-flow-125846 .rs:9:19
43
43
|
44
44
LL | 'a: { const { break 'a } }
45
45
| ^^^^^^^^ cannot `break` outside of a loop or labeled block
46
46
47
47
error[E0268]: `break` outside of a loop or labeled block
48
- --> $DIR/cross_const_control_flow .rs:16:17
48
+ --> $DIR/cross-const-control-flow-125846 .rs:16:17
49
49
|
50
50
LL | const { break }
51
51
| ^^^^^ cannot `break` outside of a loop or labeled block
52
52
53
53
error[E0268]: `continue` outside of a loop
54
- --> $DIR/cross_const_control_flow .rs:22:19
54
+ --> $DIR/cross-const-control-flow-125846 .rs:22:19
55
55
|
56
56
LL | 'a: { const { continue 'a } }
57
57
| ^^^^^^^^^^^ cannot `continue` outside of a loop
58
58
59
59
error[E0268]: `continue` outside of a loop
60
- --> $DIR/cross_const_control_flow .rs:29:17
60
+ --> $DIR/cross-const-control-flow-125846 .rs:29:17
61
61
|
62
62
LL | const { continue }
63
63
| ^^^^^^^^ cannot `continue` outside of a loop
64
64
65
65
error[E0572]: return statement outside of function body
66
- --> $DIR/cross_const_control_flow .rs:4:13
66
+ --> $DIR/cross-const-control-flow-125846 .rs:4:13
67
67
|
68
68
LL | / fn foo() {
69
69
LL | | const { return }
0 commit comments