rust/src/test/compile-fail/bad-bang-ann-2.rs
2011-06-14 15:11:48 -07:00

11 lines
200 B
Rust

// -*- rust -*-
// Tests that a function with a ! annotation always actually fails
// error-pattern: some control paths may return
fn bad_bang(uint i) -> ! {
log 3;
}
fn main() {
bad_bang(5u);
}