Files
rust/tests/ui/consts/control-flow/loop.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-11-22 02:31:42 +00:00
error[E0015]: cannot use `for` loop on `std::ops::Range<i32>` in constants
--> $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
--> $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-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
|
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
|
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-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`.