1- error[E0744 ]: `loop` is not allowed in a `const`
2- --> $DIR/loop.rs:8 :15
1+ error[E0658 ]: `loop` is not allowed in a `const`
2+ --> $DIR/loop.rs:10 :15
33 |
44LL | const _: () = loop {};
55 | ^^^^^^^
6+ |
7+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
8+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
69
7- error[E0744 ]: `loop` is not allowed in a `static`
8- --> $DIR/loop.rs:10 :19
10+ error[E0658 ]: `loop` is not allowed in a `static`
11+ --> $DIR/loop.rs:12 :19
912 |
1013LL | static FOO: i32 = loop { break 4; };
1114 | ^^^^^^^^^^^^^^^^^
15+ |
16+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
17+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
1218
13- error[E0744 ]: `loop` is not allowed in a `const fn`
14- --> $DIR/loop.rs:13 :5
19+ error[E0658 ]: `loop` is not allowed in a `const fn`
20+ --> $DIR/loop.rs:15 :5
1521 |
1622LL | loop {}
1723 | ^^^^^^^
24+ |
25+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
26+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
1827
19- error[E0744 ]: `loop` is not allowed in a `const fn`
20- --> $DIR/loop.rs:26 :9
28+ error[E0658 ]: `loop` is not allowed in a `const fn`
29+ --> $DIR/loop.rs:28 :9
2130 |
2231LL | loop {}
2332 | ^^^^^^^
33+ |
34+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
35+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
2436
25- error[E0744 ]: `while` is not allowed in a `const`
26- --> $DIR/loop.rs:38 :9
37+ error[E0658 ]: `while` is not allowed in a `const`
38+ --> $DIR/loop.rs:40 :9
2739 |
2840LL | while false {}
2941 | ^^^^^^^^^^^^^^
42+ |
43+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
44+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
3045
31- error[E0744 ]: `while` is not allowed in a `const`
32- --> $DIR/loop.rs:47 :5
46+ error[E0658 ]: `while` is not allowed in a `const`
47+ --> $DIR/loop.rs:49 :5
3348 |
3449LL | / while x < 4 {
3550LL | | x += 1;
3651LL | | }
3752 | |_____^
53+ |
54+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
55+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
3856
39- error[E0744 ]: `while` is not allowed in a `const`
40- --> $DIR/loop.rs:51 :5
57+ error[E0658 ]: `while` is not allowed in a `const`
58+ --> $DIR/loop.rs:53 :5
4159 |
4260LL | / while x < 8 {
4361LL | | x += 1;
4462LL | | }
4563 | |_____^
64+ |
65+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
66+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
4667
4768error[E0744]: `for` is not allowed in a `const`
48- --> $DIR/loop.rs:61 :5
69+ --> $DIR/loop.rs:63 :5
4970 |
5071LL | / for i in 0..4 {
5172LL | | x += i;
5273LL | | }
5374 | |_____^
5475
5576error[E0744]: `for` is not allowed in a `const`
56- --> $DIR/loop.rs:65 :5
77+ --> $DIR/loop.rs:67 :5
5778 |
5879LL | / for i in 0..4 {
5980LL | | x += i;
6081LL | | }
6182 | |_____^
6283
63- error[E0744 ]: `loop` is not allowed in a `const`
64- --> $DIR/loop.rs:75 :5
84+ error[E0658 ]: `loop` is not allowed in a `const`
85+ --> $DIR/loop.rs:77 :5
6586 |
6687LL | / loop {
6788LL | | x += 1;
@@ -70,9 +91,12 @@ LL | | break;
7091LL | | }
7192LL | | }
7293 | |_____^
94+ |
95+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
96+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
7397
74- error[E0744 ]: `loop` is not allowed in a `const`
75- --> $DIR/loop.rs:82 :5
98+ error[E0658 ]: `loop` is not allowed in a `const`
99+ --> $DIR/loop.rs:84 :5
76100 |
77101LL | / loop {
78102LL | | x += 1;
@@ -81,31 +105,47 @@ LL | | break;
81105LL | | }
82106LL | | }
83107 | |_____^
108+ |
109+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
110+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
84111
85- error[E0744 ]: `while` is not allowed in a `const`
86- --> $DIR/loop.rs:94 :5
112+ error[E0658 ]: `while` is not allowed in a `const`
113+ --> $DIR/loop.rs:96 :5
87114 |
88115LL | while let None = Some(x) { }
89116 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
117+ |
118+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
119+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
90120
91- error[E0744 ]: `while` is not allowed in a `const`
92- --> $DIR/loop.rs:95 :5
121+ error[E0658 ]: `while` is not allowed in a `const`
122+ --> $DIR/loop.rs:97 :5
93123 |
94124LL | while let None = Some(x) { }
95125 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
126+ |
127+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
128+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
96129
97- error[E0744 ]: `loop` is not allowed in a `const`
98- --> $DIR/loop.rs:17 :22
130+ error[E0658 ]: `loop` is not allowed in a `const`
131+ --> $DIR/loop.rs:19 :22
99132 |
100133LL | const BAR: i32 = loop { break 4; };
101134 | ^^^^^^^^^^^^^^^^^
135+ |
136+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
137+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
102138
103- error[E0744 ]: `loop` is not allowed in a `const`
104- --> $DIR/loop.rs:21 :22
139+ error[E0658 ]: `loop` is not allowed in a `const`
140+ --> $DIR/loop.rs:23 :22
105141 |
106142LL | const BAR: i32 = loop { break 4; };
107143 | ^^^^^^^^^^^^^^^^^
144+ |
145+ = note: for more information, see https://github.com/rust-lang/rust/issues/52000
146+ = help: add `#![feature(const_loop)]` to the crate attributes to enable
108147
109148error: aborting due to 15 previous errors
110149
111- For more information about this error, try `rustc --explain E0744`.
150+ Some errors have detailed explanations: E0658, E0744.
151+ For more information about an error, try `rustc --explain E0658`.
0 commit comments