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
b514667c36
rust
/
tests
/
fail
/
unreachable.rs
4 lines
100 B
Rust
Raw
Normal View
History
Unescape
Escape
test unreachable intrinsic
2020-03-25 03:12:23 -05:00
fn
main
(
)
{
adjust for more backtrace pruning
2022-07-24 13:28:45 -05:00
unsafe
{
std
::
hint
::
unreachable_unchecked
(
)
}
//~ERROR: entering unreachable code
test unreachable intrinsic
2020-03-25 03:12:23 -05:00
}
Reference in New Issue
Copy Permalink