mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
failing test
This commit is contained in:
parent
df0936b4af
commit
71cd67fe47
@ -306,4 +306,25 @@ pub mod prelude {
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn local_variable_shadowing() {
|
||||
// FIXME: this isn't actually correct, should emit `x` only once.
|
||||
check(
|
||||
r#"
|
||||
fn main() {
|
||||
let x = 92;
|
||||
{
|
||||
let x = 92;
|
||||
x$0;
|
||||
}
|
||||
}
|
||||
"#,
|
||||
expect![[r#"
|
||||
lc x i32
|
||||
lc x i32
|
||||
fn main() fn()
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user