]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/shadow.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / shadow.stderr
index adca299d38257c2b1a1f9f596d7315ca9c4662ae..ada8b07d69b757a3c5d2633a879e27ca4bb91e02 100644 (file)
 error: `x` is shadowed by itself in `&mut x`
-  --> $DIR/shadow.rs:23:5
+  --> $DIR/shadow.rs:20:5
    |
-23 |     let x = &mut x;
+LL |     let x = &mut x;
    |     ^^^^^^^^^^^^^^^
    |
    = note: `-D clippy::shadow-same` implied by `-D warnings`
 note: previous binding is here
-  --> $DIR/shadow.rs:22:13
+  --> $DIR/shadow.rs:19:13
    |
-22 |     let mut x = 1;
+LL |     let mut x = 1;
    |             ^
 
 error: `x` is shadowed by itself in `{ x }`
-  --> $DIR/shadow.rs:24:5
+  --> $DIR/shadow.rs:21:5
    |
-24 |     let x = { x };
+LL |     let x = { x };
    |     ^^^^^^^^^^^^^^
    |
 note: previous binding is here
-  --> $DIR/shadow.rs:23:9
+  --> $DIR/shadow.rs:20:9
    |
-23 |     let x = &mut x;
+LL |     let x = &mut x;
    |         ^
 
 error: `x` is shadowed by itself in `(&*x)`
-  --> $DIR/shadow.rs:25:5
+  --> $DIR/shadow.rs:22:5
    |
-25 |     let x = (&*x);
+LL |     let x = (&*x);
    |     ^^^^^^^^^^^^^^
    |
 note: previous binding is here
-  --> $DIR/shadow.rs:24:9
+  --> $DIR/shadow.rs:21:9
    |
-24 |     let x = { x };
+LL |     let x = { x };
    |         ^
 
 error: `x` is shadowed by `{ *x + 1 }` which reuses the original value
-  --> $DIR/shadow.rs:26:9
+  --> $DIR/shadow.rs:23:9
    |
-26 |     let x = { *x + 1 };
+LL |     let x = { *x + 1 };
    |         ^
    |
    = note: `-D clippy::shadow-reuse` implied by `-D warnings`
 note: initialization happens here
-  --> $DIR/shadow.rs:26:13
+  --> $DIR/shadow.rs:23:13
    |
-26 |     let x = { *x + 1 };
+LL |     let x = { *x + 1 };
    |             ^^^^^^^^^^
 note: previous binding is here
-  --> $DIR/shadow.rs:25:9
+  --> $DIR/shadow.rs:22:9
    |
-25 |     let x = (&*x);
+LL |     let x = (&*x);
    |         ^
 
 error: `x` is shadowed by `id(x)` which reuses the original value
-  --> $DIR/shadow.rs:27:9
+  --> $DIR/shadow.rs:24:9
    |
-27 |     let x = id(x);
+LL |     let x = id(x);
    |         ^
    |
 note: initialization happens here
-  --> $DIR/shadow.rs:27:13
+  --> $DIR/shadow.rs:24:13
    |
-27 |     let x = id(x);
+LL |     let x = id(x);
    |             ^^^^^
 note: previous binding is here
-  --> $DIR/shadow.rs:26:9
+  --> $DIR/shadow.rs:23:9
    |
-26 |     let x = { *x + 1 };
+LL |     let x = { *x + 1 };
    |         ^
 
 error: `x` is shadowed by `(1, x)` which reuses the original value
-  --> $DIR/shadow.rs:28:9
+  --> $DIR/shadow.rs:25:9
    |
-28 |     let x = (1, x);
+LL |     let x = (1, x);
    |         ^
    |
 note: initialization happens here
-  --> $DIR/shadow.rs:28:13
+  --> $DIR/shadow.rs:25:13
    |
-28 |     let x = (1, x);
+LL |     let x = (1, x);
    |             ^^^^^^
 note: previous binding is here
-  --> $DIR/shadow.rs:27:9
+  --> $DIR/shadow.rs:24:9
    |
-27 |     let x = id(x);
+LL |     let x = id(x);
    |         ^
 
 error: `x` is shadowed by `first(x)` which reuses the original value
-  --> $DIR/shadow.rs:29:9
+  --> $DIR/shadow.rs:26:9
    |
-29 |     let x = first(x);
+LL |     let x = first(x);
    |         ^
    |
 note: initialization happens here
-  --> $DIR/shadow.rs:29:13
+  --> $DIR/shadow.rs:26:13
    |
-29 |     let x = first(x);
+LL |     let x = first(x);
    |             ^^^^^^^^
 note: previous binding is here
-  --> $DIR/shadow.rs:28:9
+  --> $DIR/shadow.rs:25:9
    |
-28 |     let x = (1, x);
+LL |     let x = (1, x);
    |         ^
 
 error: `x` is shadowed by `y`
-  --> $DIR/shadow.rs:31:9
+  --> $DIR/shadow.rs:28:9
    |
-31 |     let x = y;
+LL |     let x = y;
    |         ^
    |
    = note: `-D clippy::shadow-unrelated` implied by `-D warnings`
 note: initialization happens here
-  --> $DIR/shadow.rs:31:13
+  --> $DIR/shadow.rs:28:13
    |
-31 |     let x = y;
+LL |     let x = y;
    |             ^
 note: previous binding is here
-  --> $DIR/shadow.rs:29:9
+  --> $DIR/shadow.rs:26:9
    |
-29 |     let x = first(x);
+LL |     let x = first(x);
    |         ^
 
 error: `x` shadows a previous declaration
-  --> $DIR/shadow.rs:33:5
+  --> $DIR/shadow.rs:30:5
    |
-33 |     let x;
+LL |     let x;
    |     ^^^^^^
    |
 note: previous binding is here
-  --> $DIR/shadow.rs:31:9
+  --> $DIR/shadow.rs:28:9
    |
-31 |     let x = y;
+LL |     let x = y;
    |         ^
 
 error: aborting due to 9 previous errors