]> git.lizzy.rs Git - rust.git/blob - tests/ui/mut_range_bound.stderr
Merge branch 'master' of github.com:Manishearth/rust-clippy into rust-test
[rust.git] / tests / ui / mut_range_bound.stderr
1 error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
2   --> $DIR/mut_range_bound.rs:18:21
3    |
4 18 |     for i in 0..m { m = 5; } // warning
5    |                     ^^^^^
6    |
7    = note: `-D mut-range-bound` implied by `-D warnings`
8
9 error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
10   --> $DIR/mut_range_bound.rs:23:22
11    |
12 23 |     for i in m..10 { m *= 2; } // warning
13    |                      ^^^^^^
14
15 error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
16   --> $DIR/mut_range_bound.rs:29:21
17    |
18 29 |     for i in m..n { m = 5; n = 7; } // warning (1 for each mutated bound)
19    |                     ^^^^^
20
21 error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
22   --> $DIR/mut_range_bound.rs:29:28
23    |
24 29 |     for i in m..n { m = 5; n = 7; } // warning (1 for each mutated bound)
25    |                            ^^^^^
26
27 error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
28   --> $DIR/mut_range_bound.rs:40:22
29    |
30 40 |         let n = &mut m;  // warning
31    |                      ^
32