2021-07-29 16:15:53 -05:00
|
|
|
error[E0658]: `for` is not allowed in a `const`
|
2020-06-25 19:43:48 -05:00
|
|
|
--> $DIR/loop.rs:53:5
|
2019-12-10 23:11:53 -06:00
|
|
|
|
|
|
|
|
LL | / for i in 0..4 {
|
|
|
|
LL | | x += i;
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2021-07-29 16:15:53 -05:00
|
|
|
|
|
|
|
|
= note: see issue #87575 <https://github.com/rust-lang/rust/issues/87575> for more information
|
|
|
|
= help: add `#![feature(const_for)]` to the crate attributes to enable
|
2019-12-10 23:11:53 -06:00
|
|
|
|
2021-07-29 16:15:53 -05:00
|
|
|
error[E0658]: `for` is not allowed in a `const`
|
2020-06-25 19:43:48 -05:00
|
|
|
--> $DIR/loop.rs:57:5
|
2019-12-10 23:11:53 -06:00
|
|
|
|
|
|
|
|
LL | / for i in 0..4 {
|
|
|
|
LL | | x += i;
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
2021-07-29 16:15:53 -05:00
|
|
|
|
|
|
|
|
= note: see issue #87575 <https://github.com/rust-lang/rust/issues/87575> for more information
|
|
|
|
= help: add `#![feature(const_for)]` to the crate attributes to enable
|
2019-12-10 23:11:53 -06:00
|
|
|
|
2020-05-21 14:49:38 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2019-12-10 23:11:53 -06:00
|
|
|
|
2021-07-29 16:15:53 -05:00
|
|
|
For more information about this error, try `rustc --explain E0658`.
|