1 error: `x` is shadowed by itself in `&mut x`
2 --> $DIR/shadow.rs:13:9
4 13 | let x = &mut x; //~ERROR `x` is shadowed by itself in `&mut x`
7 = note: #[deny(shadow_same)] implied by #[deny(clippy_pedantic)]
8 note: lint level defined here
9 --> $DIR/shadow.rs:4:17
11 4 | #![deny(clippy, clippy_pedantic)]
13 note: previous binding is here
14 --> $DIR/shadow.rs:12:13
19 error: `x` is shadowed by itself in `{ x }`
20 --> $DIR/shadow.rs:14:9
22 14 | let x = { x }; //~ERROR `x` is shadowed by itself in `{ x }`
25 = note: #[deny(shadow_same)] implied by #[deny(clippy_pedantic)]
26 note: previous binding is here
27 --> $DIR/shadow.rs:13:9
29 13 | let x = &mut x; //~ERROR `x` is shadowed by itself in `&mut x`
32 error: `x` is shadowed by itself in `(&*x)`
33 --> $DIR/shadow.rs:15:9
35 15 | let x = (&*x); //~ERROR `x` is shadowed by itself in `(&*x)`
38 = note: #[deny(shadow_same)] implied by #[deny(clippy_pedantic)]
39 note: previous binding is here
40 --> $DIR/shadow.rs:14:9
42 14 | let x = { x }; //~ERROR `x` is shadowed by itself in `{ x }`
45 error: `x` is shadowed by `{ *x + 1 }` which reuses the original value
46 --> $DIR/shadow.rs:16:9
48 16 | let x = { *x + 1 }; //~ERROR `x` is shadowed by `{ *x + 1 }` which reuses
51 = note: #[deny(shadow_reuse)] implied by #[deny(clippy_pedantic)]
52 note: lint level defined here
53 --> $DIR/shadow.rs:4:17
55 4 | #![deny(clippy, clippy_pedantic)]
57 note: initialization happens here
58 --> $DIR/shadow.rs:16:13
60 16 | let x = { *x + 1 }; //~ERROR `x` is shadowed by `{ *x + 1 }` which reuses
62 note: previous binding is here
63 --> $DIR/shadow.rs:15:9
65 15 | let x = (&*x); //~ERROR `x` is shadowed by itself in `(&*x)`
68 error: `x` is shadowed by `id(x)` which reuses the original value
69 --> $DIR/shadow.rs:17:9
71 17 | let x = id(x); //~ERROR `x` is shadowed by `id(x)` which reuses
74 = note: #[deny(shadow_reuse)] implied by #[deny(clippy_pedantic)]
75 note: initialization happens here
76 --> $DIR/shadow.rs:17:13
78 17 | let x = id(x); //~ERROR `x` is shadowed by `id(x)` which reuses
80 note: previous binding is here
81 --> $DIR/shadow.rs:16:9
83 16 | let x = { *x + 1 }; //~ERROR `x` is shadowed by `{ *x + 1 }` which reuses
86 error: `x` is shadowed by `(1, x)` which reuses the original value
87 --> $DIR/shadow.rs:18:9
89 18 | let x = (1, x); //~ERROR `x` is shadowed by `(1, x)` which reuses
92 = note: #[deny(shadow_reuse)] implied by #[deny(clippy_pedantic)]
93 note: initialization happens here
94 --> $DIR/shadow.rs:18:13
96 18 | let x = (1, x); //~ERROR `x` is shadowed by `(1, x)` which reuses
98 note: previous binding is here
99 --> $DIR/shadow.rs:17:9
101 17 | let x = id(x); //~ERROR `x` is shadowed by `id(x)` which reuses
104 error: `x` is shadowed by `first(x)` which reuses the original value
105 --> $DIR/shadow.rs:19:9
107 19 | let x = first(x); //~ERROR `x` is shadowed by `first(x)` which reuses
110 = note: #[deny(shadow_reuse)] implied by #[deny(clippy_pedantic)]
111 note: initialization happens here
112 --> $DIR/shadow.rs:19:13
114 19 | let x = first(x); //~ERROR `x` is shadowed by `first(x)` which reuses
116 note: previous binding is here
117 --> $DIR/shadow.rs:18:9
119 18 | let x = (1, x); //~ERROR `x` is shadowed by `(1, x)` which reuses
122 error: `x` is shadowed by `y`
123 --> $DIR/shadow.rs:21:9
125 21 | let x = y; //~ERROR `x` is shadowed by `y`
128 = note: #[deny(shadow_unrelated)] implied by #[deny(clippy_pedantic)]
129 note: lint level defined here
130 --> $DIR/shadow.rs:4:17
132 4 | #![deny(clippy, clippy_pedantic)]
134 note: initialization happens here
135 --> $DIR/shadow.rs:21:13
137 21 | let x = y; //~ERROR `x` is shadowed by `y`
139 note: previous binding is here
140 --> $DIR/shadow.rs:19:9
142 19 | let x = first(x); //~ERROR `x` is shadowed by `first(x)` which reuses
145 error: `x` shadows a previous declaration
146 --> $DIR/shadow.rs:23:9
148 23 | let x; //~ERROR `x` shadows a previous declaration
151 = note: #[deny(shadow_unrelated)] implied by #[deny(clippy_pedantic)]
152 note: previous binding is here
153 --> $DIR/shadow.rs:21:9
155 21 | let x = y; //~ERROR `x` is shadowed by `y`
158 error: aborting due to 9 previous errors