-error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
- --> $DIR/mut_range_bound.rs:25:9
+error: attempt to mutate range bound within loop
+ --> $DIR/mut_range_bound.rs:8:9
|
-25 | m = 5;
- | ^^^^^
+LL | m = 5;
+ | ^
|
= note: `-D clippy::mut-range-bound` implied by `-D warnings`
+ = note: the range of the loop is unchanged
-error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
- --> $DIR/mut_range_bound.rs:32:9
+error: attempt to mutate range bound within loop
+ --> $DIR/mut_range_bound.rs:15:9
|
-32 | m *= 2;
- | ^^^^^^
+LL | m *= 2;
+ | ^
+ |
+ = note: the range of the loop is unchanged
-error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
- --> $DIR/mut_range_bound.rs:40:9
+error: attempt to mutate range bound within loop
+ --> $DIR/mut_range_bound.rs:23:9
+ |
+LL | m = 5;
+ | ^
|
-40 | m = 5;
- | ^^^^^
+ = note: the range of the loop is unchanged
-error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
- --> $DIR/mut_range_bound.rs:41:9
+error: attempt to mutate range bound within loop
+ --> $DIR/mut_range_bound.rs:24:9
+ |
+LL | n = 7;
+ | ^
|
-41 | n = 7;
- | ^^^^^
+ = note: the range of the loop is unchanged
-error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
- --> $DIR/mut_range_bound.rs:55:22
+error: attempt to mutate range bound within loop
+ --> $DIR/mut_range_bound.rs:38:22
|
-55 | let n = &mut m; // warning
+LL | let n = &mut m; // warning
| ^
+ |
+ = note: the range of the loop is unchanged
+
+error: attempt to mutate range bound within loop
+ --> $DIR/mut_range_bound.rs:70:9
+ |
+LL | m = 2; // warning because it is not immediately followed by break
+ | ^
+ |
+ = note: the range of the loop is unchanged
+
+error: attempt to mutate range bound within loop
+ --> $DIR/mut_range_bound.rs:79:13
+ |
+LL | n = 1; // FIXME: warning because is is not immediately followed by break
+ | ^
+ |
+ = note: the range of the loop is unchanged
-error: aborting due to 5 previous errors
+error: aborting due to 7 previous errors