mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 09:05:00 +00:00
16 lines
205 B
Rust
16 lines
205 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();
|
|
}
|