mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
35 lines
1019 B
Plaintext
35 lines
1019 B
Plaintext
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
|
|
--> $DIR/mut_range_bound.rs:25:9
|
|
|
|
|
25 | m = 5;
|
|
| ^^^^^
|
|
|
|
|
= note: `-D clippy::mut-range-bound` implied by `-D warnings`
|
|
|
|
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
|
|
--> $DIR/mut_range_bound.rs:32:9
|
|
|
|
|
32 | m *= 2;
|
|
| ^^^^^^
|
|
|
|
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
|
|
--> $DIR/mut_range_bound.rs:40:9
|
|
|
|
|
40 | m = 5;
|
|
| ^^^^^
|
|
|
|
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
|
|
--> $DIR/mut_range_bound.rs:41:9
|
|
|
|
|
41 | n = 7;
|
|
| ^^^^^
|
|
|
|
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
|
|
--> $DIR/mut_range_bound.rs:55:22
|
|
|
|
|
55 | let n = &mut m; // warning
|
|
| ^
|
|
|
|
error: aborting due to 5 previous errors
|
|
|