|
1 | 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 |
| 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 | 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 | + --> $DIR/mut_range_bound.rs:15:9 |
11 | 11 | |
|
12 | 12 | LL | m *= 2;
|
13 | 13 | | ^
|
14 | 14 |
|
15 | 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 |
| 16 | + --> $DIR/mut_range_bound.rs:23:9 |
17 | 17 | |
|
18 | 18 | LL | m = 5;
|
19 | 19 | | ^
|
20 | 20 |
|
21 | 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 |
| 22 | + --> $DIR/mut_range_bound.rs:24:9 |
23 | 23 | |
|
24 | 24 | LL | n = 7;
|
25 | 25 | | ^
|
26 | 26 |
|
27 | 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 |
| 28 | + --> $DIR/mut_range_bound.rs:38:22 |
29 | 29 | |
|
30 | 30 | LL | let n = &mut m; // warning
|
31 | 31 | | ^
|
32 | 32 |
|
33 |
| -error: aborting due to 5 previous errors |
| 33 | +error: attempt to mutate range bound within loop; note that the range of the loop is unchanged |
| 34 | + --> $DIR/mut_range_bound.rs:70:9 |
| 35 | + | |
| 36 | +LL | m = 2; // warning because it is not immediately followed by break |
| 37 | + | ^ |
| 38 | + |
| 39 | +error: attempt to mutate range bound within loop; note that the range of the loop is unchanged |
| 40 | + --> $DIR/mut_range_bound.rs:79:13 |
| 41 | + | |
| 42 | +LL | n = 1; // warning because is is not immediately followed by break |
| 43 | + | ^ |
| 44 | + |
| 45 | +error: aborting due to 7 previous errors |
34 | 46 |
|
0 commit comments