mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
23 lines
633 B
Plaintext
23 lines
633 B
Plaintext
error: all variables in condition are immutable. This might lead to infinite loops.
|
|
--> $DIR/infinite_loop.rs:9:11
|
|
|
|
|
9 | while y < 10 {
|
|
| ^^^^^^
|
|
|
|
|
= note: `-D while-immutable-condition` implied by `-D warnings`
|
|
|
|
error: all variables in condition are immutable. This might lead to infinite loops.
|
|
--> $DIR/infinite_loop.rs:14:11
|
|
|
|
|
14 | while y < 10 && x < 3 {
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: all variables in condition are immutable. This might lead to infinite loops.
|
|
--> $DIR/infinite_loop.rs:19:11
|
|
|
|
|
19 | while !cond {
|
|
| ^^^^^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|