1 error: `x` is shadowed by itself in `&mut x`
2 --> $DIR/shadow.rs:13:9
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
25 = note: #[deny(shadow_same)] implied by #[deny(clippy_pedantic)]
26 note: previous binding is here
27 --> $DIR/shadow.rs:13:9
32 error: `x` is shadowed by itself in `(&*x)`
33 --> $DIR/shadow.rs:15:9
38 = note: #[deny(shadow_same)] implied by #[deny(clippy_pedantic)]
39 note: previous binding is here
40 --> $DIR/shadow.rs:14:9
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 };
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 };
62 note: previous binding is here
63 --> $DIR/shadow.rs:15:9
68 error: `x` is shadowed by `id(x)` which reuses the original value
69 --> $DIR/shadow.rs:17:9
74 = note: #[deny(shadow_reuse)] implied by #[deny(clippy_pedantic)]
75 note: initialization happens here
76 --> $DIR/shadow.rs:17:13
80 note: previous binding is here
81 --> $DIR/shadow.rs:16:9
83 16 | let x = { *x + 1 };
86 error: `x` is shadowed by `(1, x)` which reuses the original value
87 --> $DIR/shadow.rs:18:9
92 = note: #[deny(shadow_reuse)] implied by #[deny(clippy_pedantic)]
93 note: initialization happens here
94 --> $DIR/shadow.rs:18:13
98 note: previous binding is here
99 --> $DIR/shadow.rs:17:9
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);
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);
116 note: previous binding is here
117 --> $DIR/shadow.rs:18:9
122 error: `x` is shadowed by `y`
123 --> $DIR/shadow.rs:21:9
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
139 note: previous binding is here
140 --> $DIR/shadow.rs:19:9
142 19 | let x = first(x);
145 error: `x` shadows a previous declaration
146 --> $DIR/shadow.rs:23:9
151 = note: #[deny(shadow_unrelated)] implied by #[deny(clippy_pedantic)]
152 note: previous binding is here
153 --> $DIR/shadow.rs:21:9
158 error: aborting due to 9 previous errors