mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
failing test
This commit is contained in:
@@ -306,4 +306,25 @@ pub mod rust_2018 {}
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
#[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()
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user