@@ -29,39 +29,39 @@ LL | while false {}
29
29
| ^^^^^^^^^^^^^^
30
30
31
31
error[E0744]: `while` is not allowed in a `const`
32
- --> $DIR/const-loop.rs:42 :5
32
+ --> $DIR/const-loop.rs:40 :5
33
33
|
34
34
LL | / while x < 4 {
35
35
LL | | x += 1;
36
36
LL | | }
37
37
| |_____^
38
38
39
39
error[E0744]: `while` is not allowed in a `const`
40
- --> $DIR/const-loop.rs:46 :5
40
+ --> $DIR/const-loop.rs:44 :5
41
41
|
42
42
LL | / while x < 8 {
43
43
LL | | x += 1;
44
44
LL | | }
45
45
| |_____^
46
46
47
47
error[E0744]: `for` is not allowed in a `const`
48
- --> $DIR/const-loop.rs:56 :5
48
+ --> $DIR/const-loop.rs:54 :5
49
49
|
50
50
LL | / for i in 0..4 {
51
51
LL | | x += i;
52
52
LL | | }
53
53
| |_____^
54
54
55
55
error[E0744]: `for` is not allowed in a `const`
56
- --> $DIR/const-loop.rs:60 :5
56
+ --> $DIR/const-loop.rs:58 :5
57
57
|
58
58
LL | / for i in 0..4 {
59
59
LL | | x += i;
60
60
LL | | }
61
61
| |_____^
62
62
63
63
error[E0744]: `loop` is not allowed in a `const`
64
- --> $DIR/const-loop.rs:70 :5
64
+ --> $DIR/const-loop.rs:68 :5
65
65
|
66
66
LL | / loop {
67
67
LL | | x += 1;
@@ -72,15 +72,15 @@ LL | | }
72
72
| |_____^
73
73
74
74
error[E0744]: `if` is not allowed in a `const`
75
- --> $DIR/const-loop.rs:72 :9
75
+ --> $DIR/const-loop.rs:70 :9
76
76
|
77
77
LL | / if x == 4 {
78
78
LL | | break;
79
79
LL | | }
80
80
| |_________^
81
81
82
82
error[E0744]: `loop` is not allowed in a `const`
83
- --> $DIR/const-loop.rs:77 :5
83
+ --> $DIR/const-loop.rs:75 :5
84
84
|
85
85
LL | / loop {
86
86
LL | | x += 1;
@@ -91,21 +91,21 @@ LL | | }
91
91
| |_____^
92
92
93
93
error[E0744]: `if` is not allowed in a `const`
94
- --> $DIR/const-loop.rs:79 :9
94
+ --> $DIR/const-loop.rs:77 :9
95
95
|
96
96
LL | / if x == 8 {
97
97
LL | | break;
98
98
LL | | }
99
99
| |_________^
100
100
101
101
error[E0744]: `while let` is not allowed in a `const`
102
- --> $DIR/const-loop.rs:89 :5
102
+ --> $DIR/const-loop.rs:87 :5
103
103
|
104
104
LL | while let None = Some(x) { }
105
105
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
106
106
107
107
error[E0744]: `while let` is not allowed in a `const`
108
- --> $DIR/const-loop.rs:90 :5
108
+ --> $DIR/const-loop.rs:88 :5
109
109
|
110
110
LL | while let None = Some(x) { }
111
111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -122,19 +122,6 @@ error[E0744]: `loop` is not allowed in a `const`
122
122
LL | const BAR: i32 = loop { break 4; };
123
123
| ^^^^^^^^^^^^^^^^^
124
124
125
- error[E0019]: constant contains unimplemented expression type
126
- --> $DIR/const-loop.rs:31:15
127
- |
128
- LL | while false {}
129
- | ^^^^^
130
-
131
- error[E0019]: constant contains unimplemented expression type
132
- --> $DIR/const-loop.rs:31:9
133
- |
134
- LL | while false {}
135
- | ^^^^^^^^^^^^^^
136
-
137
- error: aborting due to 19 previous errors
125
+ error: aborting due to 17 previous errors
138
126
139
- Some errors have detailed explanations: E0019, E0744.
140
- For more information about an error, try `rustc --explain E0019`.
127
+ For more information about this error, try `rustc --explain E0744`.
0 commit comments