rust/src/test/compile-fail/alt-join.rs
Brian Anderson 518dc52f85 Reformat
This changes the indexing syntax from .() to [], the vector syntax from ~[] to
[] and the extension syntax from #fmt() to #fmt[]
2011-08-20 11:04:00 -07:00

13 lines
263 B
Rust

// 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;
}