2021-09-03 12:27:05 +08:00
|
|
|
error: attempt to mutate range bound within loop
|
|
|
|
--> $DIR/mut_range_bound.rs:8:9
|
2017-09-25 18:32:05 -07:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | m = 5;
|
2019-10-04 15:00:01 +02:00
|
|
|
| ^
|
2017-09-25 18:32:05 -07:00
|
|
|
|
|
2018-08-01 16:30:44 +02:00
|
|
|
= note: `-D clippy::mut-range-bound` implied by `-D warnings`
|
2021-09-03 12:27:05 +08:00
|
|
|
= note: the range of the loop is unchanged
|
2017-09-25 18:32:05 -07:00
|
|
|
|
2021-09-03 12:27:05 +08:00
|
|
|
error: attempt to mutate range bound within loop
|
|
|
|
--> $DIR/mut_range_bound.rs:15:9
|
2017-09-25 18:32:05 -07:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | m *= 2;
|
2019-10-04 15:00:01 +02:00
|
|
|
| ^
|
2021-09-03 12:27:05 +08:00
|
|
|
|
|
|
|
|
= note: the range of the loop is unchanged
|
2017-09-25 18:32:05 -07:00
|
|
|
|
2021-09-03 12:27:05 +08:00
|
|
|
error: attempt to mutate range bound within loop
|
|
|
|
--> $DIR/mut_range_bound.rs:23:9
|
2017-09-25 18:32:05 -07:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | m = 5;
|
2019-10-04 15:00:01 +02:00
|
|
|
| ^
|
2021-09-03 12:27:05 +08:00
|
|
|
|
|
|
|
|
= note: the range of the loop is unchanged
|
2017-09-25 18:32:05 -07:00
|
|
|
|
2021-09-03 12:27:05 +08:00
|
|
|
error: attempt to mutate range bound within loop
|
|
|
|
--> $DIR/mut_range_bound.rs:24:9
|
2017-09-25 18:32:05 -07:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | n = 7;
|
2019-10-04 15:00:01 +02:00
|
|
|
| ^
|
2021-09-03 12:27:05 +08:00
|
|
|
|
|
|
|
|
= note: the range of the loop is unchanged
|
2017-09-25 18:32:05 -07:00
|
|
|
|
2021-09-03 12:27:05 +08:00
|
|
|
error: attempt to mutate range bound within loop
|
|
|
|
--> $DIR/mut_range_bound.rs:38:22
|
2017-09-25 18:32:05 -07:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let n = &mut m; // warning
|
2017-09-25 18:32:05 -07:00
|
|
|
| ^
|
2021-09-03 12:27:05 +08:00
|
|
|
|
|
|
|
|
= note: the range of the loop is unchanged
|
|
|
|
|
|
|
|
error: attempt to mutate range bound within loop
|
|
|
|
--> $DIR/mut_range_bound.rs:70:9
|
|
|
|
|
|
|
|
|
LL | m = 2; // warning because it is not immediately followed by break
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: the range of the loop is unchanged
|
|
|
|
|
|
|
|
error: attempt to mutate range bound within loop
|
|
|
|
--> $DIR/mut_range_bound.rs:79:13
|
|
|
|
|
|
|
|
|
LL | n = 1; // FIXME: warning because is is not immediately followed by break
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: the range of the loop is unchanged
|
2017-09-25 18:32:05 -07:00
|
|
|
|
2021-09-03 12:27:05 +08:00
|
|
|
error: aborting due to 7 previous errors
|
2018-01-16 17:06:27 +01:00
|
|
|
|