mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 01:17:16 +00:00
38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
34 lines
1,019 B
Text
34 lines
1,019 B
Text
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
|
|
--> $DIR/mut_range_bound.rs:16:9
|
|
|
|
|
LL | 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:23:9
|
|
|
|
|
LL | m *= 2;
|
|
| ^^^^^^
|
|
|
|
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
|
|
--> $DIR/mut_range_bound.rs:31:9
|
|
|
|
|
LL | m = 5;
|
|
| ^^^^^
|
|
|
|
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
|
|
--> $DIR/mut_range_bound.rs:32:9
|
|
|
|
|
LL | n = 7;
|
|
| ^^^^^
|
|
|
|
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
|
|
--> $DIR/mut_range_bound.rs:46:22
|
|
|
|
|
LL | let n = &mut m; // warning
|
|
| ^
|
|
|
|
error: aborting due to 5 previous errors
|
|
|