1 error: `x` is shadowed by itself in `&mut x`
2 --> examples/shadow.rs:13:9
7 = note: `-D shadow-same` implied by `-D warnings`
8 note: previous binding is here
9 --> examples/shadow.rs:12:13
14 error: `x` is shadowed by itself in `{ x }`
15 --> examples/shadow.rs:14:9
20 = note: `-D shadow-same` implied by `-D warnings`
21 note: previous binding is here
22 --> examples/shadow.rs:13:9
27 error: `x` is shadowed by itself in `(&*x)`
28 --> examples/shadow.rs:15:9
33 = note: `-D shadow-same` implied by `-D warnings`
34 note: previous binding is here
35 --> examples/shadow.rs:14:9
40 error: `x` is shadowed by `{ *x + 1 }` which reuses the original value
41 --> examples/shadow.rs:16:9
43 16 | let x = { *x + 1 };
46 = note: `-D shadow-reuse` implied by `-D warnings`
47 note: initialization happens here
48 --> examples/shadow.rs:16:13
50 16 | let x = { *x + 1 };
52 note: previous binding is here
53 --> examples/shadow.rs:15:9
58 error: `x` is shadowed by `id(x)` which reuses the original value
59 --> examples/shadow.rs:17:9
64 = note: `-D shadow-reuse` implied by `-D warnings`
65 note: initialization happens here
66 --> examples/shadow.rs:17:13
70 note: previous binding is here
71 --> examples/shadow.rs:16:9
73 16 | let x = { *x + 1 };
76 error: `x` is shadowed by `(1, x)` which reuses the original value
77 --> examples/shadow.rs:18:9
82 = note: `-D shadow-reuse` implied by `-D warnings`
83 note: initialization happens here
84 --> examples/shadow.rs:18:13
88 note: previous binding is here
89 --> examples/shadow.rs:17:9
94 error: `x` is shadowed by `first(x)` which reuses the original value
95 --> examples/shadow.rs:19:9
97 19 | let x = first(x);
100 = note: `-D shadow-reuse` implied by `-D warnings`
101 note: initialization happens here
102 --> examples/shadow.rs:19:13
104 19 | let x = first(x);
106 note: previous binding is here
107 --> examples/shadow.rs:18:9
112 error: `x` is shadowed by `y`
113 --> examples/shadow.rs:21:9
118 = note: `-D shadow-unrelated` implied by `-D warnings`
119 note: initialization happens here
120 --> examples/shadow.rs:21:13
124 note: previous binding is here
125 --> examples/shadow.rs:19:9
127 19 | let x = first(x);
130 error: `x` shadows a previous declaration
131 --> examples/shadow.rs:23:9
136 = note: `-D shadow-unrelated` implied by `-D warnings`
137 note: previous binding is here
138 --> examples/shadow.rs:21:9
143 error: aborting due to 9 previous errors
145 error: Could not compile `clippy_tests`.
147 To learn more, run the command again with --verbose.