]> git.lizzy.rs Git - rust.git/blob - tests/ui/infinite_loop.stderr
Add license header to Rust files
[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:26:11
3    |
4 26 |     while y < 10 {
5    |           ^^^^^^
6    |
7    = note: #[deny(clippy::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:31:11
11    |
12 31 |     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:38:11
17    |
18 38 |     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:82:11
23    |
24 82 |     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:87:11
29    |
30 87 |     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:91:11
35    |
36 91 |     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:106:11
41     |
42 106 |     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:111:11
47     |
48 111 |     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:174:15
53     |
54 174 |         while self.count < n {
55     |               ^^^^^^^^^^^^^^
56
57 error: aborting due to 9 previous errors
58