]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/mut_range_bound.stderr
Addition `manual_map` test for `unsafe` blocks
[rust.git] / tests / ui / mut_range_bound.stderr
index d7be7ae1e6fc89c07fa9146791fc8df80a31bcb9..4b5a3fc1e418cded8f6b05a5b5c80ffb162ca4e5 100644 (file)
@@ -1,34 +1,59 @@
-error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
-  --> $DIR/mut_range_bound.rs:18:21
+error: attempt to mutate range bound within loop
+  --> $DIR/mut_range_bound.rs:8: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`
+   = note: the range of the loop is unchanged
 
-error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
-  --> $DIR/mut_range_bound.rs:23:22
+error: attempt to mutate range bound within loop
+  --> $DIR/mut_range_bound.rs:15:9
    |
-23 |     for i in m..10 { m *= 2; } // warning
-   |                      ^^^^^^
+LL |         m *= 2;
+   |         ^
+   |
+   = note: the range of the loop is unchanged
 
-error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
-  --> $DIR/mut_range_bound.rs:29:21
+error: attempt to mutate range bound within loop
+  --> $DIR/mut_range_bound.rs:23:9
+   |
+LL |         m = 5;
+   |         ^
    |
-29 |     for i in m..n { m = 5; n = 7; } // warning (1 for each mutated bound)
-   |                     ^^^^^
+   = note: the range of the loop is unchanged
 
-error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
-  --> $DIR/mut_range_bound.rs:29:28
+error: attempt to mutate range bound within loop
+  --> $DIR/mut_range_bound.rs:24:9
+   |
+LL |         n = 7;
+   |         ^
    |
-29 |     for i in m..n { m = 5; n = 7; } // warning (1 for each mutated bound)
-   |                            ^^^^^
+   = note: the range of the loop is unchanged
 
-error: attempt to mutate range bound within loop; note that the range of the loop is unchanged
-  --> $DIR/mut_range_bound.rs:40:22
+error: attempt to mutate range bound within loop
+  --> $DIR/mut_range_bound.rs:38:22
    |
-40 |         let n = &mut m;  // warning
+LL |         let n = &mut m; // warning
    |                      ^
+   |
+   = 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
 
-error: aborting due to 5 previous errors
+error: aborting due to 7 previous errors