]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/shadow.stderr
Merge pull request #2065 from rust-lang-nursery/cargo_clippy
[rust.git] / tests / ui / shadow.stderr
index 9501fd68fcec7715cc931614148f8d4de36d16c7..50f41627acbf228a56e27ba6f6e6fd6607b1713c 100644 (file)
@@ -1,8 +1,8 @@
 error: `x` is shadowed by itself in `&mut x`
-  --> $DIR/shadow.rs:13:9
+  --> $DIR/shadow.rs:13:5
    |
 13 |     let x = &mut x;
-   |         ^^^^^^^^^^
+   |     ^^^^^^^^^^^^^^
    |
    = note: `-D shadow-same` implied by `-D warnings`
 note: previous binding is here
@@ -12,10 +12,10 @@ note: previous binding is here
    |             ^
 
 error: `x` is shadowed by itself in `{ x }`
-  --> $DIR/shadow.rs:14:9
+  --> $DIR/shadow.rs:14:5
    |
 14 |     let x = { x };
-   |         ^^^^^^^^^
+   |     ^^^^^^^^^^^^^
    |
 note: previous binding is here
   --> $DIR/shadow.rs:13:9
@@ -24,10 +24,10 @@ note: previous binding is here
    |         ^
 
 error: `x` is shadowed by itself in `(&*x)`
-  --> $DIR/shadow.rs:15:9
+  --> $DIR/shadow.rs:15:5
    |
 15 |     let x = (&*x);
-   |         ^^^^^^^^^
+   |     ^^^^^^^^^^^^^
    |
 note: previous binding is here
   --> $DIR/shadow.rs:14:9
@@ -123,10 +123,10 @@ note: previous binding is here
    |         ^
 
 error: `x` shadows a previous declaration
-  --> $DIR/shadow.rs:23:9
+  --> $DIR/shadow.rs:23:5
    |
 23 |     let x;
-   |         ^
+   |     ^^^^^
    |
 note: previous binding is here
   --> $DIR/shadow.rs:21:9
@@ -134,5 +134,3 @@ note: previous binding is here
 21 |     let x = y;
    |         ^
 
-error: aborting due to 9 previous errors
-