]> git.lizzy.rs Git - rust.git/blob - tests/ui/infinite_loop.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[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:32:11
3    |
4 LL |     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:37:11
11    |
12 LL |     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:44:11
17    |
18 LL |     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:88:11
23    |
24 LL |     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:93:11
29    |
30 LL |     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:97:11
35    |
36 LL |     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:112:11
41    |
42 LL |     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:117:11
47    |
48 LL |     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:183:15
53    |
54 LL |         while self.count < n {
55    |               ^^^^^^^^^^^^^^
56
57 error: aborting due to 9 previous errors
58