blob: 3aae6e2dca6d063f119e4faf1afa29a33cc70a2d (
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
--> tests/ui/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
--> tests/ui/mut_range_bound.rs:16:9
|
LL | m *= 2;
| ^
|
= note: the range of the loop is unchanged
error: attempt to mutate range bound within loop
--> tests/ui/mut_range_bound.rs:25:9
|
LL | m = 5;
| ^
|
= note: the range of the loop is unchanged
error: attempt to mutate range bound within loop
--> tests/ui/mut_range_bound.rs:28:9
|
LL | n = 7;
| ^
|
= note: the range of the loop is unchanged
error: attempt to mutate range bound within loop
--> tests/ui/mut_range_bound.rs:43:22
|
LL | let n = &mut m;
| ^
|
= note: the range of the loop is unchanged
error: attempt to mutate range bound within loop
--> tests/ui/mut_range_bound.rs:78:9
|
LL | m = 2;
| ^
|
= note: the range of the loop is unchanged
error: attempt to mutate range bound within loop
--> tests/ui/mut_range_bound.rs:90:13
|
LL | n = 1;
| ^
|
= note: the range of the loop is unchanged
error: aborting due to 7 previous errors
|