mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 04:39:16 +00:00
12 lines
304 B
Rust
12 lines
304 B
Rust
// a good test that we merge paths correctly in the presence of a
|
|
// variable that's used before it's declared
|
|
|
|
fn my_panic() -> ! { panic!(); }
|
|
|
|
fn main() {
|
|
match true { false => { my_panic(); } true => { } }
|
|
|
|
println!("{}", x); //~ ERROR cannot find value `x` in this scope
|
|
let x: isize;
|
|
}
|