@@ -29,39 +29,39 @@ LL | while false {}
2929 | ^^^^^^^^^^^^^^
3030
3131error[E0744]: `while` is not allowed in a `const`
32- --> $DIR/const-loop.rs:42 :5
32+ --> $DIR/const-loop.rs:40 :5
3333 |
3434LL | / while x < 4 {
3535LL | | x += 1;
3636LL | | }
3737 | |_____^
3838
3939error[E0744]: `while` is not allowed in a `const`
40- --> $DIR/const-loop.rs:46 :5
40+ --> $DIR/const-loop.rs:44 :5
4141 |
4242LL | / while x < 8 {
4343LL | | x += 1;
4444LL | | }
4545 | |_____^
4646
4747error[E0744]: `for` is not allowed in a `const`
48- --> $DIR/const-loop.rs:56 :5
48+ --> $DIR/const-loop.rs:54 :5
4949 |
5050LL | / for i in 0..4 {
5151LL | | x += i;
5252LL | | }
5353 | |_____^
5454
5555error[E0744]: `for` is not allowed in a `const`
56- --> $DIR/const-loop.rs:60 :5
56+ --> $DIR/const-loop.rs:58 :5
5757 |
5858LL | / for i in 0..4 {
5959LL | | x += i;
6060LL | | }
6161 | |_____^
6262
6363error[E0744]: `loop` is not allowed in a `const`
64- --> $DIR/const-loop.rs:70 :5
64+ --> $DIR/const-loop.rs:68 :5
6565 |
6666LL | / loop {
6767LL | | x += 1;
@@ -72,15 +72,15 @@ LL | | }
7272 | |_____^
7373
7474error[E0744]: `if` is not allowed in a `const`
75- --> $DIR/const-loop.rs:72 :9
75+ --> $DIR/const-loop.rs:70 :9
7676 |
7777LL | / if x == 4 {
7878LL | | break;
7979LL | | }
8080 | |_________^
8181
8282error[E0744]: `loop` is not allowed in a `const`
83- --> $DIR/const-loop.rs:77 :5
83+ --> $DIR/const-loop.rs:75 :5
8484 |
8585LL | / loop {
8686LL | | x += 1;
@@ -91,21 +91,21 @@ LL | | }
9191 | |_____^
9292
9393error[E0744]: `if` is not allowed in a `const`
94- --> $DIR/const-loop.rs:79 :9
94+ --> $DIR/const-loop.rs:77 :9
9595 |
9696LL | / if x == 8 {
9797LL | | break;
9898LL | | }
9999 | |_________^
100100
101101error[E0744]: `while let` is not allowed in a `const`
102- --> $DIR/const-loop.rs:89 :5
102+ --> $DIR/const-loop.rs:87 :5
103103 |
104104LL | while let None = Some(x) { }
105105 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
106106
107107error[E0744]: `while let` is not allowed in a `const`
108- --> $DIR/const-loop.rs:90 :5
108+ --> $DIR/const-loop.rs:88 :5
109109 |
110110LL | while let None = Some(x) { }
111111 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -122,19 +122,6 @@ error[E0744]: `loop` is not allowed in a `const`
122122LL | const BAR: i32 = loop { break 4; };
123123 | ^^^^^^^^^^^^^^^^^
124124
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
138126
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