]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/mut_range_bound.stderr
New upstream version 1.25.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / mut_range_bound.stderr
CommitLineData
abe05a73
XL
1error: 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 |
418 | for i in 0..m { m = 5; } // warning
5 | ^^^^^
6 |
7 = note: `-D mut-range-bound` implied by `-D warnings`
8
9error: 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 |
1223 | for i in m..10 { m *= 2; } // warning
13 | ^^^^^^
14
15error: 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 |
1829 | for i in m..n { m = 5; n = 7; } // warning (1 for each mutated bound)
19 | ^^^^^
20
21error: 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 |
2429 | for i in m..n { m = 5; n = 7; } // warning (1 for each mutated bound)
25 | ^^^^^
26
27error: 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 |
3040 | let n = &mut m; // warning
31 | ^
32
2c00a5a8
XL
33error: aborting due to 5 previous errors
34