summary refs log tree commit diff
path: root/src/test/compile-fail/alt-join.rs
blob: bc1357372b025c790ffe571fc2533e22dd6685fc (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;
}