]> git.lizzy.rs Git - rust.git/blob - tests/ui/infinite_loop.stderr
lint: immutable only vars in while condition
[rust.git] / tests / ui / infinite_loop.stderr
1 error: all variables in condition are immutable. This might lead to infinite loops.
2  --> $DIR/infinite_loop.rs:9:11
3   |
4 9 |     while y < 10 {
5   |           ^^^^^^
6   |
7   = note: `-D while-immutable-condition` implied by `-D warnings`
8
9 error: all variables in condition are immutable. This might lead to infinite loops.
10   --> $DIR/infinite_loop.rs:14:11
11    |
12 14 |     while y < 10 && x < 3 {
13    |           ^^^^^^^^^^^^^^^
14
15 error: all variables in condition are immutable. This might lead to infinite loops.
16   --> $DIR/infinite_loop.rs:19:11
17    |
18 19 |     while !cond {
19    |           ^^^^^
20
21 error: aborting due to 3 previous errors
22