summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/mut_range_bound.stderr
blob: b679b7a0aaf82ff7e351c2497fb216df920c2622 (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
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`

error: attempt to mutate range bound within loop
  --> $DIR/mut_range_bound.rs:15: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:23: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:24: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:38:22
   |
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 it is not immediately followed by break
   |             ^
   |
   = note: the range of the loop is unchanged

error: aborting due to 7 previous errors