rust/src/test/compile-fail/bad-bang-ann.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

10 lines
221 B
Rust

// -*- rust -*-
// Tests that a function with a ! annotation always actually fails
fn bad_bang(i: uint) -> ! {
if i < 0u { } else { fail; }
//~^ ERROR expected `_|_` but found `()`
}
fn main() { bad_bang(5u); }