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: #[deny(shadow_same)] implied by #[deny(clippy_pedantic)]
-note: lint level defined here
- --> $DIR/shadow.rs:4:17
+ | ^^^^^^^^^^^^^^
|
-4 | #![deny(clippy, clippy_pedantic)]
- | ^^^^^^^^^^^^^^^
+ = note: `-D shadow-same` implied by `-D warnings`
note: previous binding is here
--> $DIR/shadow.rs:12:13
|
| ^
error: `x` is shadowed by itself in `{ x }`
- --> $DIR/shadow.rs:14:9
+ --> $DIR/shadow.rs:14:5
|
14 | let x = { x };
- | ^^^^^^^^^
+ | ^^^^^^^^^^^^^
|
- = note: #[deny(shadow_same)] implied by #[deny(clippy_pedantic)]
note: previous binding is here
--> $DIR/shadow.rs:13:9
|
| ^
error: `x` is shadowed by itself in `(&*x)`
- --> $DIR/shadow.rs:15:9
+ --> $DIR/shadow.rs:15:5
|
15 | let x = (&*x);
- | ^^^^^^^^^
+ | ^^^^^^^^^^^^^
|
- = note: #[deny(shadow_same)] implied by #[deny(clippy_pedantic)]
note: previous binding is here
--> $DIR/shadow.rs:14:9
|
16 | let x = { *x + 1 };
| ^
|
- = note: #[deny(shadow_reuse)] implied by #[deny(clippy_pedantic)]
-note: lint level defined here
- --> $DIR/shadow.rs:4:17
- |
-4 | #![deny(clippy, clippy_pedantic)]
- | ^^^^^^^^^^^^^^^
+ = note: `-D shadow-reuse` implied by `-D warnings`
note: initialization happens here
--> $DIR/shadow.rs:16:13
|
17 | let x = id(x);
| ^
|
- = note: #[deny(shadow_reuse)] implied by #[deny(clippy_pedantic)]
note: initialization happens here
--> $DIR/shadow.rs:17:13
|
18 | let x = (1, x);
| ^
|
- = note: #[deny(shadow_reuse)] implied by #[deny(clippy_pedantic)]
note: initialization happens here
--> $DIR/shadow.rs:18:13
|
19 | let x = first(x);
| ^
|
- = note: #[deny(shadow_reuse)] implied by #[deny(clippy_pedantic)]
note: initialization happens here
--> $DIR/shadow.rs:19:13
|
21 | let x = y;
| ^
|
- = note: #[deny(shadow_unrelated)] implied by #[deny(clippy_pedantic)]
-note: lint level defined here
- --> $DIR/shadow.rs:4:17
- |
-4 | #![deny(clippy, clippy_pedantic)]
- | ^^^^^^^^^^^^^^^
+ = note: `-D shadow-unrelated` implied by `-D warnings`
note: initialization happens here
--> $DIR/shadow.rs:21:13
|
| ^
error: `x` shadows a previous declaration
- --> $DIR/shadow.rs:23:9
+ --> $DIR/shadow.rs:23:5
|
23 | let x;
- | ^
+ | ^^^^^
|
- = note: #[deny(shadow_unrelated)] implied by #[deny(clippy_pedantic)]
note: previous binding is here
--> $DIR/shadow.rs:21:9
|
21 | let x = y;
| ^
-error: aborting due to 9 previous errors
-