2021-09-08 14:31:47 +00:00
|
|
|
error: attempt to mutate range bound within loop
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/mut_range_bound.rs:8:9
|
2017-09-26 01:32:05 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | m = 5;
|
2019-10-04 13:00:01 +00:00
|
|
|
| ^
|
2017-09-26 01:32:05 +00:00
|
|
|
|
|
2021-09-08 14:31:47 +00:00
|
|
|
= note: the range of the loop is unchanged
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::mut-range-bound` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::mut_range_bound)]`
|
2017-09-26 01:32:05 +00:00
|
|
|
|
2021-09-08 14:31:47 +00:00
|
|
|
error: attempt to mutate range bound within loop
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/mut_range_bound.rs:17:9
|
2017-09-26 01:32:05 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | m *= 2;
|
2019-10-04 13:00:01 +00:00
|
|
|
| ^
|
2021-09-08 14:31:47 +00:00
|
|
|
|
|
|
|
|
= note: the range of the loop is unchanged
|
2017-09-26 01:32:05 +00:00
|
|
|
|
2021-09-08 14:31:47 +00:00
|
|
|
error: attempt to mutate range bound within loop
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/mut_range_bound.rs:27:9
|
2017-09-26 01:32:05 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | m = 5;
|
2019-10-04 13:00:01 +00:00
|
|
|
| ^
|
2021-09-08 14:31:47 +00:00
|
|
|
|
|
|
|
|
= note: the range of the loop is unchanged
|
2017-09-26 01:32:05 +00:00
|
|
|
|
2021-09-08 14:31:47 +00:00
|
|
|
error: attempt to mutate range bound within loop
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/mut_range_bound.rs:30:9
|
2017-09-26 01:32:05 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | n = 7;
|
2019-10-04 13:00:01 +00:00
|
|
|
| ^
|
2021-09-08 14:31:47 +00:00
|
|
|
|
|
|
|
|
= note: the range of the loop is unchanged
|
2017-09-26 01:32:05 +00:00
|
|
|
|
2021-09-08 14:31:47 +00:00
|
|
|
error: attempt to mutate range bound within loop
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/mut_range_bound.rs:46:22
|
2017-09-26 01:32:05 +00:00
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | let n = &mut m;
|
2017-09-26 01:32:05 +00:00
|
|
|
| ^
|
2021-09-08 14:31:47 +00:00
|
|
|
|
|
|
|
|
= note: the range of the loop is unchanged
|
|
|
|
|
|
|
|
error: attempt to mutate range bound within loop
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/mut_range_bound.rs:81:9
|
2021-09-08 14:31:47 +00:00
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | m = 2;
|
2021-09-08 14:31:47 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: the range of the loop is unchanged
|
|
|
|
|
|
|
|
error: attempt to mutate range bound within loop
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/mut_range_bound.rs:93:13
|
2021-09-08 14:31:47 +00:00
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | n = 1;
|
2021-09-08 14:31:47 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: the range of the loop is unchanged
|
2017-09-26 01:32:05 +00:00
|
|
|
|
2021-09-08 14:31:47 +00:00
|
|
|
error: aborting due to 7 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|