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/loop.rs:53:14
|
|
|
|
|
|
|
|
|
|
|
LL | for i in 0..4 {
|
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
|
|
= 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/loop.rs:53:14
|
|
|
|
|
|
|
|
|
|
|
LL | for i in 0..4 {
|
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
|
|
= 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[E0015]: cannot use `for` loop on `std::ops::Range<i32>` in constants
|
2024-08-17 14:19:34 +02:00
|
|
|
--> $DIR/loop.rs:59:14
|
2024-02-01 22:45:00 +00:00
|
|
|
|
|
|
|
|
|
LL | for i in 0..4 {
|
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
|
|
= 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-08-17 14:19:34 +02:00
|
|
|
--> $DIR/loop.rs:59:14
|
2024-02-01 22:45:00 +00:00
|
|
|
|
|
|
|
|
|
LL | for i in 0..4 {
|
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
|
|
= 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 4 previous errors
|
2019-12-10 21:11:53 -08:00
|
|
|
|
2024-11-22 02:31:42 +00:00
|
|
|
For more information about this error, try `rustc --explain E0015`.
|