unreachable

Function unreachable

Source
pub unsafe fn unreachable() -> !
Expand description

Hint to the optimizer that any code path which calls this function is statically unreachable and can be removed.

Calling this function in reachable code invokes undefined behavior. Be very, very sure this is what you want; often, a simple panic! is more suitable.