rust/tests/fail/unreachable.rs

4 lines
100 B
Rust
Raw Normal View History

2020-03-25 09:12:23 +01:00
fn main() {
2022-07-24 14:28:45 -04:00
unsafe { std::hint::unreachable_unchecked() } //~ERROR: entering unreachable code
2020-03-25 09:12:23 +01:00
}