]>
Commit | Line | Data |
---|---|---|
abe05a73 XL |
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 | ||
2c00a5a8 XL |
33 | error: aborting due to 5 previous errors |
34 |