summary refs log tree commit diff
path: root/src/test/compile-fail/alt-join.rs
blob: 83dcc69609e51f6161df936ce2734f133d54bcf0 (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() {
    match true { false => { my_fail(); } true => { } }

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