rust/src/test/compile-fail/bad-bang-ann-3.rs
2012-08-01 19:16:06 -07:00

10 lines
205 B
Rust

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