rust/src/test/run-fail/mir_codegen_calls_diverging.rs

14 lines
159 B
Rust
Raw Normal View History

2015-12-21 16:58:18 +00:00
// error-pattern:diverging_fn called
fn diverging_fn() -> ! {
panic!("diverging_fn called")
}
fn mir() {
diverging_fn();
}
fn main() {
mir();
}