]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/mut_range_bound.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / mut_range_bound.stderr
index 20dbb6511d75d10fa2d24b725c39220e609d629e..50e94efde5327af395d9c69843bda498827b7bf2 100644 (file)
@@ -1,32 +1,34 @@
 error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
-  --> $DIR/mut_range_bound.rs:18:21
+  --> $DIR/mut_range_bound.rs:16:9
    |
-18 |     for i in 0..m { m = 5; } // warning
-   |                     ^^^^^
+LL |         m = 5;
+   |         ^^^^^
    |
-   = note: `-D mut-range-bound` implied by `-D warnings`
+   = note: `-D clippy::mut-range-bound` implied by `-D warnings`
 
 error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
-  --> $DIR/mut_range_bound.rs:23:22
+  --> $DIR/mut_range_bound.rs:23:9
    |
-23 |     for i in m..10 { m *= 2; } // warning
-   |                      ^^^^^^
+LL |         m *= 2;
+   |         ^^^^^^
 
 error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
-  --> $DIR/mut_range_bound.rs:29:21
+  --> $DIR/mut_range_bound.rs:31:9
    |
-29 |     for i in m..n { m = 5; n = 7; } // warning (1 for each mutated bound)
-   |                     ^^^^^
+LL |         m = 5;
+   |         ^^^^^
 
 error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
-  --> $DIR/mut_range_bound.rs:29:28
+  --> $DIR/mut_range_bound.rs:32:9
    |
-29 |     for i in m..n { m = 5; n = 7; } // warning (1 for each mutated bound)
-   |                            ^^^^^
+LL |         n = 7;
+   |         ^^^^^
 
 error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
-  --> $DIR/mut_range_bound.rs:40:22
+  --> $DIR/mut_range_bound.rs:46:22
    |
-40 |         let n = &mut m;  // warning
+LL |         let n = &mut m; // warning
    |                      ^
 
+error: aborting due to 5 previous errors
+