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