Fix ice
This commit is contained in:
parent
b105fb4c39
commit
68d2082d69
3 changed files with 11 additions and 3 deletions
|
|
@ -117,6 +117,14 @@ fn macros() {
|
|||
let x = 1;
|
||||
let x = x;
|
||||
}
|
||||
|
||||
let x = 10;
|
||||
macro_rules! rebind_outer_macro {
|
||||
($x:ident) => {
|
||||
let x = x;
|
||||
};
|
||||
}
|
||||
rebind_outer_macro!(y);
|
||||
}
|
||||
|
||||
struct WithDrop(usize);
|
||||
|
|
|
|||
|
|
@ -157,13 +157,13 @@ LL | let x = 1;
|
|||
| ^
|
||||
|
||||
error: redundant redefinition of a binding `a`
|
||||
--> $DIR/redundant_locals.rs:144:5
|
||||
--> $DIR/redundant_locals.rs:152:5
|
||||
|
|
||||
LL | let a = a;
|
||||
| ^^^^^^^^^^
|
||||
|
|
||||
help: `a` is initially defined here
|
||||
--> $DIR/redundant_locals.rs:142:9
|
||||
--> $DIR/redundant_locals.rs:150:9
|
||||
|
|
||||
LL | let a = WithoutDrop(1);
|
||||
| ^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue