Skip to content

Commit

Permalink
Update test output for mut_range_bound
Browse files Browse the repository at this point in the history
  • Loading branch information
dswij committed Sep 3, 2021
1 parent 4603a49 commit 47ecff6
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions tests/ui/mut_range_bound.stderr
Original file line number Diff line number Diff line change
@@ -1,34 +1,46 @@
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
--> $DIR/mut_range_bound.rs:16:9
--> $DIR/mut_range_bound.rs:8:9
|
LL | m = 5;
| ^
|
= note: `-D clippy::mut-range-bound` implied by `-D warnings`

error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
--> $DIR/mut_range_bound.rs:23:9
--> $DIR/mut_range_bound.rs:15:9
|
LL | m *= 2;
| ^

error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
--> $DIR/mut_range_bound.rs:31:9
--> $DIR/mut_range_bound.rs:23:9
|
LL | m = 5;
| ^

error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
--> $DIR/mut_range_bound.rs:32:9
--> $DIR/mut_range_bound.rs:24:9
|
LL | n = 7;
| ^

error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
--> $DIR/mut_range_bound.rs:46:22
--> $DIR/mut_range_bound.rs:38:22
|
LL | let n = &mut m; // warning
| ^

error: aborting due to 5 previous errors
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
--> $DIR/mut_range_bound.rs:70:9
|
LL | m = 2; // warning because it is not immediately followed by break
| ^

error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
--> $DIR/mut_range_bound.rs:79:13
|
LL | n = 1; // warning because is is not immediately followed by break
| ^

error: aborting due to 7 previous errors

0 comments on commit 47ecff6

Please sign in to comment.