rust/tests/compile-fail/unreachable.rs
2020-03-25 09:32:15 +01:00

5 lines
108 B
Rust

// error-pattern: entering unreachable code
fn main() {
unsafe { std::hint::unreachable_unchecked() }
}