rust/src/test/run-fail/expr-fn-fail.rs

8 lines
78 B
Rust
Raw Normal View History

// error-pattern:explicit failure
fn f() -> ! { fail }
fn main() {
f();
}