This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
rust
/
tests
/
fail
/
unreachable.rs
4 lines
100 B
Rust
Raw
Normal View
History
Unescape
Escape
test unreachable intrinsic
2020-03-25 09:12:23 +01:00
fn
main
(
)
{
adjust for more backtrace pruning
2022-07-24 14:28:45 -04:00
unsafe
{
std
::
hint
::
unreachable_unchecked
(
)
}
//~ERROR: entering unreachable code
test unreachable intrinsic
2020-03-25 09:12:23 +01:00
}
Reference in New Issue
Copy Permalink