]> git.lizzy.rs Git - rust.git/blob - tests/ui/infinite_loop.stderr
while_immutable_condition: limit suggestion span to condition
[rust.git] / tests / ui / infinite_loop.stderr
1 error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop.
2   --> $DIR/infinite_loop.rs:10:11
3    |
4 10 |     while y < 10 {
5    |           ^^^^^^
6    |
7    = note: `-D while-immutable-condition` implied by `-D warnings`
8
9 error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop.
10   --> $DIR/infinite_loop.rs:15:11
11    |
12 15 |     while y < 10 && x < 3 {
13    |           ^^^^^^^^^^^^^^^
14
15 error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop.
16   --> $DIR/infinite_loop.rs:22:11
17    |
18 22 |     while !cond {
19    |           ^^^^^
20
21 error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop.
22   --> $DIR/infinite_loop.rs:52:11
23    |
24 52 |     while i < 3 {
25    |           ^^^^^
26
27 error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop.
28   --> $DIR/infinite_loop.rs:57:11
29    |
30 57 |     while i < 3 && j > 0 {
31    |           ^^^^^^^^^^^^^^
32
33 error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop.
34   --> $DIR/infinite_loop.rs:61:11
35    |
36 61 |     while i < 3 {
37    |           ^^^^^
38
39 error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop.
40   --> $DIR/infinite_loop.rs:76:11
41    |
42 76 |     while i < 3 {
43    |           ^^^^^
44
45 error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop.
46   --> $DIR/infinite_loop.rs:81:11
47    |
48 81 |     while i < 3 {
49    |           ^^^^^
50
51 error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop.
52    --> $DIR/infinite_loop.rs:144:15
53     |
54 144 |         while self.count < n {
55     |               ^^^^^^^^^^^^^^
56
57 error: aborting due to 9 previous errors
58