about summary refs log tree commit diff
path: root/src/test/compile-fail/alt-join.rs
blob: 246d186b06ce05eae01e59158d962de2f5eb68ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// error-pattern:unresolved name
// 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 x;
    let x: int;
}