File tree 1 file changed +18
-6
lines changed
1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change 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:19 :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:26 :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:34 :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:35 :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:49 :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:85:9
35
+ |
36
+ LL | m = 4; // 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:92:9
41
+ |
42
+ LL | m = 5;
43
+ | ^
44
+
45
+ error: aborting due to 7 previous errors
34
46
You can’t perform that action at this time.
0 commit comments