2021-12-09 17:10:05 +00:00
|
|
|
error[E0015]: cannot convert `std::ops::Range<i32>` into an iterator in constants
|
2021-07-29 00:56:03 +00:00
|
|
|
--> $DIR/const-for.rs:5:14
|
|
|
|
|
|
|
|
|
LL | for _ in 0..5 {}
|
|
|
|
| ^^^^
|
2021-12-09 17:10:05 +00:00
|
|
|
|
|
|
|
|
note: impl defined here, but it is not `const`
|
|
|
|
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
|
|
|
= note: calls in constants are limited to constant functions, tuple structs and tuple variants
|
2022-12-22 18:15:15 +00:00
|
|
|
= help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
|
2021-07-29 00:56:03 +00:00
|
|
|
|
2021-12-09 17:10:05 +00:00
|
|
|
error[E0015]: cannot call non-const fn `<std::ops::Range<i32> as Iterator>::next` in constants
|
2021-07-29 00:56:03 +00:00
|
|
|
--> $DIR/const-for.rs:5:14
|
|
|
|
|
|
|
|
|
LL | for _ in 0..5 {}
|
|
|
|
| ^^^^
|
2021-12-09 17:10:05 +00:00
|
|
|
|
|
|
|
|
= note: calls in constants are limited to constant functions, tuple structs and tuple variants
|
2022-12-22 18:15:15 +00:00
|
|
|
= help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
|
2021-07-29 00:56:03 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0015`.
|