Skip to content

Commit 2035b1d

Browse files
committed
Update test output for mut_range_bound
1 parent 6a79a11 commit 2035b1d

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

tests/ui/mut_range_bound.stderr

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,46 @@
11
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
33
|
44
LL | m = 5;
55
| ^
66
|
77
= note: `-D clippy::mut-range-bound` implied by `-D warnings`
88

99
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
1111
|
1212
LL | m *= 2;
1313
| ^
1414

1515
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
1717
|
1818
LL | m = 5;
1919
| ^
2020

2121
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
2323
|
2424
LL | n = 7;
2525
| ^
2626

2727
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
2929
|
3030
LL | 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

0 commit comments

Comments
 (0)