2011-08-05 17:23:44 -05: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 14:17:22 -05:00
|
|
|
fn my_panic() -> ! { panic!(); }
|
2011-08-05 17:23:44 -05:00
|
|
|
|
|
|
|
fn main() {
|
2014-10-09 14:17:22 -05:00
|
|
|
match true { false => { my_panic(); } true => { } }
|
2011-08-05 17:23:44 -05:00
|
|
|
|
2017-01-11 16:18:08 -06:00
|
|
|
println!("{}", x); //~ ERROR cannot find value `x` in this scope
|
2015-01-08 04:54:35 -06:00
|
|
|
let x: isize;
|
2011-08-19 17:16:48 -05:00
|
|
|
}
|