1 error: all variables in condition are immutable. This either leads to an infinite or to a never running loop.
2 --> $DIR/infinite_loop.rs:10:11
7 = note: `-D while-immutable-condition` implied by `-D warnings`
9 error: all variables in condition are immutable. This either leads to an infinite or to a never running loop.
10 --> $DIR/infinite_loop.rs:15:11
12 15 | while y < 10 && x < 3 {
15 error: all variables in condition are immutable. This either leads to an infinite or to a never running loop.
16 --> $DIR/infinite_loop.rs:22:11
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:5
26 54 | | println!("KO - i not mentionned");
30 error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop.
31 --> $DIR/infinite_loop.rs:57:5
33 57 | / while i < 3 && j > 0 {
34 58 | | println!("KO - i and j not mentionned");
38 error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop.
39 --> $DIR/infinite_loop.rs:61:5
43 63 | | fn_mutref(&mut i);
44 64 | | println!("KO - shadowed");
48 error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop.
49 --> $DIR/infinite_loop.rs:76:5
52 77 | | fn_constref(&i);
53 78 | | println!("KO - const reference");
57 error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop.
58 --> $DIR/infinite_loop.rs:81:5
62 83 | | println!("KO - passed by value");
66 error: aborting due to 8 previous errors