File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
error: `x` is shadowed by itself in `&mut x`
2
- --> $DIR/shadow.rs:13:9
2
+ --> $DIR/shadow.rs:13:5
3
3
|
4
4
13 | let x = &mut x;
5
- | ^^^^^^^^^^
5
+ | ^^^^ ^^^^^^^^^^
6
6
|
7
7
= note: `-D shadow-same` implied by `-D warnings`
8
8
note: previous binding is here
@@ -12,10 +12,10 @@ note: previous binding is here
12
12
| ^
13
13
14
14
error: `x` is shadowed by itself in `{ x }`
15
- --> $DIR/shadow.rs:14:9
15
+ --> $DIR/shadow.rs:14:5
16
16
|
17
17
14 | let x = { x };
18
- | ^^^^^^^^^
18
+ | ^^^^ ^^^^^^^^^
19
19
|
20
20
note: previous binding is here
21
21
--> $DIR/shadow.rs:13:9
@@ -24,10 +24,10 @@ note: previous binding is here
24
24
| ^
25
25
26
26
error: `x` is shadowed by itself in `(&*x)`
27
- --> $DIR/shadow.rs:15:9
27
+ --> $DIR/shadow.rs:15:5
28
28
|
29
29
15 | let x = (&*x);
30
- | ^^^^^^^^^
30
+ | ^^^^ ^^^^^^^^^
31
31
|
32
32
note: previous binding is here
33
33
--> $DIR/shadow.rs:14:9
@@ -123,10 +123,10 @@ note: previous binding is here
123
123
| ^
124
124
125
125
error: `x` shadows a previous declaration
126
- --> $DIR/shadow.rs:23:9
126
+ --> $DIR/shadow.rs:23:5
127
127
|
128
128
23 | let x;
129
- | ^
129
+ | ^^^^ ^
130
130
|
131
131
note: previous binding is here
132
132
--> $DIR/shadow.rs:21:9
You can’t perform that action at this time.
0 commit comments