summary refs log tree commit diff
path: root/src/test/compile-fail/alt-join.rs
blob: cd39d90b9bd612d958ef8937a0bfdd9c52254224 (plain)
1
2
3
4
5
6
7
8
9
10
11
// a good test that we merge paths correctly in the presence of a
// variable that's used before it's declared

fn my_fail() -> ! { fail; }

fn main() {
    alt true { false { my_fail(); } true { } }

    log(debug, x); //~ ERROR unresolved name: x
    let x: int;
}