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