1 error: `x` is shadowed by itself in `&mut x`
2 --> $DIR/shadow.rs:25:5
7 = note: `-D clippy::shadow-same` implied by `-D warnings`
8 note: previous binding is here
9 --> $DIR/shadow.rs:24:13
14 error: `x` is shadowed by itself in `{ x }`
15 --> $DIR/shadow.rs:26:5
20 note: previous binding is here
21 --> $DIR/shadow.rs:25:9
26 error: `x` is shadowed by itself in `(&*x)`
27 --> $DIR/shadow.rs:27:5
32 note: previous binding is here
33 --> $DIR/shadow.rs:26:9
38 error: `x` is shadowed by `{ *x + 1 }` which reuses the original value
39 --> $DIR/shadow.rs:28:9
41 LL | let x = { *x + 1 };
44 = note: `-D clippy::shadow-reuse` implied by `-D warnings`
45 note: initialization happens here
46 --> $DIR/shadow.rs:28:13
48 LL | let x = { *x + 1 };
50 note: previous binding is here
51 --> $DIR/shadow.rs:27:9
56 error: `x` is shadowed by `id(x)` which reuses the original value
57 --> $DIR/shadow.rs:29:9
62 note: initialization happens here
63 --> $DIR/shadow.rs:29:13
67 note: previous binding is here
68 --> $DIR/shadow.rs:28:9
70 LL | let x = { *x + 1 };
73 error: `x` is shadowed by `(1, x)` which reuses the original value
74 --> $DIR/shadow.rs:30:9
79 note: initialization happens here
80 --> $DIR/shadow.rs:30:13
84 note: previous binding is here
85 --> $DIR/shadow.rs:29:9
90 error: `x` is shadowed by `first(x)` which reuses the original value
91 --> $DIR/shadow.rs:31:9
93 LL | let x = first(x);
96 note: initialization happens here
97 --> $DIR/shadow.rs:31:13
99 LL | let x = first(x);
101 note: previous binding is here
102 --> $DIR/shadow.rs:30:9
107 error: `x` is shadowed by `y`
108 --> $DIR/shadow.rs:33:9
113 = note: `-D clippy::shadow-unrelated` implied by `-D warnings`
114 note: initialization happens here
115 --> $DIR/shadow.rs:33:13
119 note: previous binding is here
120 --> $DIR/shadow.rs:31:9
122 LL | let x = first(x);
125 error: `x` shadows a previous declaration
126 --> $DIR/shadow.rs:35:5
131 note: previous binding is here
132 --> $DIR/shadow.rs:33:9
137 error: aborting due to 9 previous errors