]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/shadow.stderr
iterate List by value
[rust.git] / tests / ui / shadow.stderr
index 9501fd68fcec7715cc931614148f8d4de36d16c7..7fa58cf76499b8016b9c062a647ef041cc5d2444 100644 (file)
 error: `x` is shadowed by itself in `&mut x`
-  --> $DIR/shadow.rs:13:9
+  --> $DIR/shadow.rs:26:5
    |
-13 |     let x = &mut x;
-   |         ^^^^^^^^^^
+LL |     let x = &mut x;
+   |     ^^^^^^^^^^^^^^^
    |
-   = note: `-D shadow-same` implied by `-D warnings`
+   = note: `-D clippy::shadow-same` implied by `-D warnings`
 note: previous binding is here
-  --> $DIR/shadow.rs:12:13
+  --> $DIR/shadow.rs:25:13
    |
-12 |     let mut x = 1;
+LL |     let mut x = 1;
    |             ^
 
 error: `x` is shadowed by itself in `{ x }`
-  --> $DIR/shadow.rs:14:9
+  --> $DIR/shadow.rs:27:5
    |
-14 |     let x = { x };
-   |         ^^^^^^^^^
+LL |     let x = { x };
+   |     ^^^^^^^^^^^^^^
    |
 note: previous binding is here
-  --> $DIR/shadow.rs:13:9
+  --> $DIR/shadow.rs:26:9
    |
-13 |     let x = &mut x;
+LL |     let x = &mut x;
    |         ^
 
 error: `x` is shadowed by itself in `(&*x)`
-  --> $DIR/shadow.rs:15:9
+  --> $DIR/shadow.rs:28:5
    |
-15 |     let x = (&*x);
-   |         ^^^^^^^^^
+LL |     let x = (&*x);
+   |     ^^^^^^^^^^^^^^
    |
 note: previous binding is here
-  --> $DIR/shadow.rs:14:9
+  --> $DIR/shadow.rs:27:9
    |
-14 |     let x = { x };
+LL |     let x = { x };
    |         ^
 
 error: `x` is shadowed by `{ *x + 1 }` which reuses the original value
-  --> $DIR/shadow.rs:16:9
+  --> $DIR/shadow.rs:29:9
    |
-16 |     let x = { *x + 1 };
+LL |     let x = { *x + 1 };
    |         ^
    |
-   = note: `-D shadow-reuse` implied by `-D warnings`
+   = note: `-D clippy::shadow-reuse` implied by `-D warnings`
 note: initialization happens here
-  --> $DIR/shadow.rs:16:13
+  --> $DIR/shadow.rs:29:13
    |
-16 |     let x = { *x + 1 };
+LL |     let x = { *x + 1 };
    |             ^^^^^^^^^^
 note: previous binding is here
-  --> $DIR/shadow.rs:15:9
+  --> $DIR/shadow.rs:28:9
    |
-15 |     let x = (&*x);
+LL |     let x = (&*x);
    |         ^
 
 error: `x` is shadowed by `id(x)` which reuses the original value
-  --> $DIR/shadow.rs:17:9
+  --> $DIR/shadow.rs:30:9
    |
-17 |     let x = id(x);
+LL |     let x = id(x);
    |         ^
    |
 note: initialization happens here
-  --> $DIR/shadow.rs:17:13
+  --> $DIR/shadow.rs:30:13
    |
-17 |     let x = id(x);
+LL |     let x = id(x);
    |             ^^^^^
 note: previous binding is here
-  --> $DIR/shadow.rs:16:9
+  --> $DIR/shadow.rs:29:9
    |
-16 |     let x = { *x + 1 };
+LL |     let x = { *x + 1 };
    |         ^
 
 error: `x` is shadowed by `(1, x)` which reuses the original value
-  --> $DIR/shadow.rs:18:9
+  --> $DIR/shadow.rs:31:9
    |
-18 |     let x = (1, x);
+LL |     let x = (1, x);
    |         ^
    |
 note: initialization happens here
-  --> $DIR/shadow.rs:18:13
+  --> $DIR/shadow.rs:31:13
    |
-18 |     let x = (1, x);
+LL |     let x = (1, x);
    |             ^^^^^^
 note: previous binding is here
-  --> $DIR/shadow.rs:17:9
+  --> $DIR/shadow.rs:30:9
    |
-17 |     let x = id(x);
+LL |     let x = id(x);
    |         ^
 
 error: `x` is shadowed by `first(x)` which reuses the original value
-  --> $DIR/shadow.rs:19:9
+  --> $DIR/shadow.rs:32:9
    |
-19 |     let x = first(x);
+LL |     let x = first(x);
    |         ^
    |
 note: initialization happens here
-  --> $DIR/shadow.rs:19:13
+  --> $DIR/shadow.rs:32:13
    |
-19 |     let x = first(x);
+LL |     let x = first(x);
    |             ^^^^^^^^
 note: previous binding is here
-  --> $DIR/shadow.rs:18:9
+  --> $DIR/shadow.rs:31:9
    |
-18 |     let x = (1, x);
+LL |     let x = (1, x);
    |         ^
 
 error: `x` is shadowed by `y`
-  --> $DIR/shadow.rs:21:9
+  --> $DIR/shadow.rs:34:9
    |
-21 |     let x = y;
+LL |     let x = y;
    |         ^
    |
-   = note: `-D shadow-unrelated` implied by `-D warnings`
+   = note: `-D clippy::shadow-unrelated` implied by `-D warnings`
 note: initialization happens here
-  --> $DIR/shadow.rs:21:13
+  --> $DIR/shadow.rs:34:13
    |
-21 |     let x = y;
+LL |     let x = y;
    |             ^
 note: previous binding is here
-  --> $DIR/shadow.rs:19:9
+  --> $DIR/shadow.rs:32:9
    |
-19 |     let x = first(x);
+LL |     let x = first(x);
    |         ^
 
 error: `x` shadows a previous declaration
-  --> $DIR/shadow.rs:23:9
+  --> $DIR/shadow.rs:36:5
    |
-23 |     let x;
-   |         ^
+LL |     let x;
+   |     ^^^^^^
    |
 note: previous binding is here
-  --> $DIR/shadow.rs:21:9
+  --> $DIR/shadow.rs:34:9
    |
-21 |     let x = y;
+LL |     let x = y;
    |         ^
 
 error: aborting due to 9 previous errors