rust/tests/ui/mut_range_bound.stderr

61 lines
1.4 KiB
Plaintext
Raw Normal View History

error: attempt to mutate range bound within loop
--> tests/ui/mut_range_bound.rs:8:9
2017-09-25 20:32:05 -05:00
|
2018-12-27 09:57:55 -06:00
LL | m = 5;
| ^
2017-09-25 20:32:05 -05:00
|
= note: the range of the loop is unchanged
2022-09-22 11:04:22 -05:00
= note: `-D clippy::mut-range-bound` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::mut_range_bound)]`
2017-09-25 20:32:05 -05:00
error: attempt to mutate range bound within loop
--> tests/ui/mut_range_bound.rs:17:9
2017-09-25 20:32:05 -05:00
|
2018-12-27 09:57:55 -06:00
LL | m *= 2;
| ^
|
= note: the range of the loop is unchanged
2017-09-25 20:32:05 -05:00
error: attempt to mutate range bound within loop
--> tests/ui/mut_range_bound.rs:27:9
2017-09-25 20:32:05 -05:00
|
2018-12-27 09:57:55 -06:00
LL | m = 5;
| ^
|
= note: the range of the loop is unchanged
2017-09-25 20:32:05 -05:00
error: attempt to mutate range bound within loop
--> tests/ui/mut_range_bound.rs:30:9
2017-09-25 20:32:05 -05:00
|
2018-12-27 09:57:55 -06:00
LL | n = 7;
| ^
|
= note: the range of the loop is unchanged
2017-09-25 20:32:05 -05:00
error: attempt to mutate range bound within loop
--> tests/ui/mut_range_bound.rs:46:22
2017-09-25 20:32:05 -05:00
|
LL | let n = &mut m;
2017-09-25 20:32:05 -05:00
| ^
|
= 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
2017-09-25 20:32:05 -05:00
error: aborting due to 7 previous errors
2018-01-16 10:06:27 -06:00