rust/tests/ui/mir/mir_codegen_calls_diverging.rs
2024-02-16 20:02:50 +00:00

16 lines
208 B
Rust

//@ run-fail
//@ error-pattern:diverging_fn called
//@ ignore-emscripten no processes
fn diverging_fn() -> ! {
panic!("diverging_fn called")
}
fn mir() {
diverging_fn();
}
fn main() {
mir();
}