rust/src/test/compile-fail/bad-bang-ann-3.rs
2012-04-06 06:59:00 -07:00

10 lines
202 B
Rust

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