2011-08-05 15:23:44 -07:00
|
|
|
// a good test that we merge paths correctly in the presence of a
|
|
|
|
|
// variable that's used before it's declared
|
|
|
|
|
|
2014-10-09 15:17:22 -04:00
|
|
|
fn my_panic() -> ! { panic!(); }
|
2011-08-05 15:23:44 -07:00
|
|
|
|
|
|
|
|
fn main() {
|
2014-10-09 15:17:22 -04:00
|
|
|
match true { false => { my_panic(); } true => { } }
|
2011-08-05 15:23:44 -07:00
|
|
|
|
2017-01-12 01:18:08 +03:00
|
|
|
println!("{}", x); //~ ERROR cannot find value `x` in this scope
|
2015-01-08 21:54:35 +11:00
|
|
|
let x: isize;
|
2011-08-19 15:16:48 -07:00
|
|
|
}
|