File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change 11error: 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
33 |
44LL | m = 5;
55 | ^
66 |
77 = note: `-D clippy::mut-range-bound` implied by `-D warnings`
88
99error: 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
1111 |
1212LL | m *= 2;
1313 | ^
1414
1515error: 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
1717 |
1818LL | m = 5;
1919 | ^
2020
2121error: 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
2323 |
2424LL | n = 7;
2525 | ^
2626
2727error: 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
2929 |
3030LL | let n = &mut m; // warning
3131 | ^
3232
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
3446
You can’t perform that action at this time.
0 commit comments