blob: 42f8a161f74f7c47e97dcd354104043fc2f8bee8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
error: attempt to mutate range bound within loop
--> $DIR/mut_range_bound.rs:8:9
|
LL | m = 5;
| ^
|
= note: the range of the loop is unchanged
= note: `-D clippy::mut-range-bound` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::mut_range_bound)]`
error: attempt to mutate range bound within loop
--> $DIR/mut_range_bound.rs:17:9
|
LL | m *= 2;
| ^
|
= note: the range of the loop is unchanged
error: attempt to mutate range bound within loop
--> $DIR/mut_range_bound.rs:27:9
|
LL | m = 5;
| ^
|
= note: the range of the loop is unchanged
error: attempt to mutate range bound within loop
--> $DIR/mut_range_bound.rs:30:9
|
LL | n = 7;
| ^
|
= note: the range of the loop is unchanged
error: attempt to mutate range bound within loop
--> $DIR/mut_range_bound.rs:46:22
|
LL | let n = &mut m;
| ^
|
= note: the range of the loop is unchanged
error: attempt to mutate range bound within loop
--> $DIR/mut_range_bound.rs:81:9
|
LL | m = 2;
| ^
|
= note: the range of the loop is unchanged
error: attempt to mutate range bound within loop
--> $DIR/mut_range_bound.rs:93:13
|
LL | n = 1;
| ^
|
= note: the range of the loop is unchanged
error: aborting due to 7 previous errors
|