mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-24 12:03:28 +00:00
60 lines
1.4 KiB
Text
60 lines
1.4 KiB
Text
error: attempt to mutate range bound within loop
|
|
--> tests/ui/mut_range_bound.rs:8:9
|
|
|
|
|
LL | m = 5;
|
|
| ^
|
|
|
|
|
= note: the range of the loop is unchanged
|
|
= note: `-D clippy::mut-range-bound` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::mut_range_bound)]`
|
|
|
|
error: attempt to mutate range bound within loop
|
|
--> tests/ui/mut_range_bound.rs:17:9
|
|
|
|
|
LL | m *= 2;
|
|
| ^
|
|
|
|
|
= note: the range of the loop is unchanged
|
|
|
|
error: attempt to mutate range bound within loop
|
|
--> tests/ui/mut_range_bound.rs:27:9
|
|
|
|
|
LL | m = 5;
|
|
| ^
|
|
|
|
|
= note: the range of the loop is unchanged
|
|
|
|
error: attempt to mutate range bound within loop
|
|
--> tests/ui/mut_range_bound.rs:30:9
|
|
|
|
|
LL | n = 7;
|
|
| ^
|
|
|
|
|
= note: the range of the loop is unchanged
|
|
|
|
error: attempt to mutate range bound within loop
|
|
--> tests/ui/mut_range_bound.rs:46:22
|
|
|
|
|
LL | let n = &mut m;
|
|
| ^
|
|
|
|
|
= note: the range of the loop is unchanged
|
|
|
|
error: attempt to mutate range bound within loop
|
|
--> tests/ui/mut_range_bound.rs:81:9
|
|
|
|
|
LL | m = 2;
|
|
| ^
|
|
|
|
|
= note: the range of the loop is unchanged
|
|
|
|
error: attempt to mutate range bound within loop
|
|
--> tests/ui/mut_range_bound.rs:93:13
|
|
|
|
|
LL | n = 1;
|
|
| ^
|
|
|
|
|
= note: the range of the loop is unchanged
|
|
|
|
error: aborting due to 7 previous errors
|
|
|