rust/src/test/compile-fail/alt-join.rs
Gareth Daniel Smith 6d86969260 change the test suite //! kind syntax to //~ kind in order to avoid a
conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
2012-06-30 12:23:59 +01:00

12 lines
267 B
Rust

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