rust/src/test/compile-fail/bad-bang-ann-3.rs

12 lines
217 B
Rust
Raw Normal View History

2011-05-20 21:53:50 -05:00
// -*- rust -*-
// xfail-stage0
// Tests that a function with a ! annotation always actually fails
// error-pattern: some control paths may return
fn bad_bang(uint i) -> ! {
ret 7u;
}
fn main() {
bad_bang(5u);
}