]> git.lizzy.rs Git - rust.git/blob - tests/ui/infinite_loop.stderr
Merge pull request #2984 from flip1995/single_char_pattern
[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:14:11
3    |
4 14 |     while y < 10 {
5    |           ^^^^^^
6    |
7    = note: #[deny(while_immutable_condition)] on by default
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:19:11
11    |
12 19 |     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:26:11
17    |
18 26 |     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:70:11
23    |
24 70 |     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:75:11
29    |
30 75 |     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:79:11
35    |
36 79 |     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:94:11
41    |
42 94 |     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:99:11
47    |
48 99 |     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:162:15
53     |
54 162 |         while self.count < n {
55     |               ^^^^^^^^^^^^^^
56
57 error: aborting due to 9 previous errors
58