|
1 |
| -error: attempt to mutate range bound within loop; note that the range of the loop is unchanged |
2 |
| - --> $DIR/mut_range_bound.rs:16:9 |
| 1 | +error: attempt to mutate range bound within loop |
| 2 | + --> $DIR/mut_range_bound.rs:8:9 |
3 | 3 | |
|
4 | 4 | LL | m = 5;
|
5 | 5 | | ^
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::mut-range-bound` implied by `-D warnings`
|
| 8 | + = note: the range of the loop is unchanged |
8 | 9 |
|
9 |
| -error: attempt to mutate range bound within loop; note that the range of the loop is unchanged |
10 |
| - --> $DIR/mut_range_bound.rs:23:9 |
| 10 | +error: attempt to mutate range bound within loop |
| 11 | + --> $DIR/mut_range_bound.rs:15:9 |
11 | 12 | |
|
12 | 13 | LL | m *= 2;
|
13 | 14 | | ^
|
| 15 | + | |
| 16 | + = note: the range of the loop is unchanged |
14 | 17 |
|
15 |
| -error: attempt to mutate range bound within loop; note that the range of the loop is unchanged |
16 |
| - --> $DIR/mut_range_bound.rs:31:9 |
| 18 | +error: attempt to mutate range bound within loop |
| 19 | + --> $DIR/mut_range_bound.rs:23:9 |
17 | 20 | |
|
18 | 21 | LL | m = 5;
|
19 | 22 | | ^
|
| 23 | + | |
| 24 | + = note: the range of the loop is unchanged |
20 | 25 |
|
21 |
| -error: attempt to mutate range bound within loop; note that the range of the loop is unchanged |
22 |
| - --> $DIR/mut_range_bound.rs:32:9 |
| 26 | +error: attempt to mutate range bound within loop |
| 27 | + --> $DIR/mut_range_bound.rs:24:9 |
23 | 28 | |
|
24 | 29 | LL | n = 7;
|
25 | 30 | | ^
|
| 31 | + | |
| 32 | + = note: the range of the loop is unchanged |
26 | 33 |
|
27 |
| -error: attempt to mutate range bound within loop; note that the range of the loop is unchanged |
28 |
| - --> $DIR/mut_range_bound.rs:46:22 |
| 34 | +error: attempt to mutate range bound within loop |
| 35 | + --> $DIR/mut_range_bound.rs:38:22 |
29 | 36 | |
|
30 | 37 | LL | let n = &mut m; // warning
|
31 | 38 | | ^
|
| 39 | + | |
| 40 | + = note: the range of the loop is unchanged |
| 41 | + |
| 42 | +error: attempt to mutate range bound within loop |
| 43 | + --> $DIR/mut_range_bound.rs:70:9 |
| 44 | + | |
| 45 | +LL | m = 2; // warning because it is not immediately followed by break |
| 46 | + | ^ |
| 47 | + | |
| 48 | + = note: the range of the loop is unchanged |
| 49 | + |
| 50 | +error: attempt to mutate range bound within loop |
| 51 | + --> $DIR/mut_range_bound.rs:79:13 |
| 52 | + | |
| 53 | +LL | n = 1; // FIXME: warning because is is not immediately followed by break |
| 54 | + | ^ |
| 55 | + | |
| 56 | + = note: the range of the loop is unchanged |
32 | 57 |
|
33 |
| -error: aborting due to 5 previous errors |
| 58 | +error: aborting due to 7 previous errors |
34 | 59 |
|
0 commit comments