2024-11-22 02:31:42 +00:00
|
|
|
error[E0015]: cannot use `for` loop on `std::ops::Range<i32>` in constants
|
2024-02-01 22:45:00 +00:00
|
|
|
--> $DIR/const-for-feature-gate.rs:4:14
|
|
|
|
|
|
|
|
|
LL | for _ in 0..5 {}
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= note: calls in constants are limited to constant functions, tuple structs and tuple variants
|
|
|
|
|
2024-11-22 02:31:42 +00:00
|
|
|
error[E0015]: cannot use `for` loop on `std::ops::Range<i32>` in constants
|
2024-02-01 22:45:00 +00:00
|
|
|
--> $DIR/const-for-feature-gate.rs:4:14
|
|
|
|
|
|
|
|
|
LL | for _ in 0..5 {}
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= note: calls in constants are limited to constant functions, tuple structs and tuple variants
|
2024-11-22 02:31:42 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2024-02-01 22:45:00 +00:00
|
|
|
|
2024-11-22 02:31:42 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2021-07-18 01:34:50 +00:00
|
|
|
|
2024-11-22 02:31:42 +00:00
|
|
|
For more information about this error, try `rustc --explain E0015`.
|