rust/tests/compile-fail/unreachable.rs

5 lines
108 B
Rust
Raw Normal View History

2020-03-25 03:12:23 -05:00
// error-pattern: entering unreachable code
fn main() {
unsafe { std::hint::unreachable_unchecked() }
}