rust/tests/ui/mut_range_bound.stderr

35 lines
1019 B
Plaintext
Raw Normal View History

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