2017-09-26 01:32:05 +00:00
|
|
|
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/mut_range_bound.rs:25:9
|
2017-09-26 01:32:05 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | m = 5;
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^
|
2017-09-26 01:32:05 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::mut-range-bound` implied by `-D warnings`
|
2017-09-26 01:32:05 +00:00
|
|
|
|
|
|
|
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/mut_range_bound.rs:32:9
|
2017-09-26 01:32:05 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | m *= 2;
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^^
|
2017-09-26 01:32:05 +00:00
|
|
|
|
|
|
|
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/mut_range_bound.rs:40:9
|
2017-09-26 01:32:05 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | m = 5;
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^
|
2017-09-26 01:32:05 +00:00
|
|
|
|
|
|
|
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/mut_range_bound.rs:41:9
|
2017-09-26 01:32:05 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | n = 7;
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^
|
2017-09-26 01:32:05 +00:00
|
|
|
|
|
|
|
error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/mut_range_bound.rs:55:22
|
2017-09-26 01:32:05 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | let n = &mut m; // warning
|
2017-09-26 01:32:05 +00:00
|
|
|
| ^
|
|
|
|
|
2018-01-16 16:06:27 +00:00
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|