core::arch::wasm

Function unreachable

source
pub fn unreachable() -> !
🔬This is a nightly-only experimental API. (simd_wasm64 #90599)
Available on target_family="wasm" only.
Expand description

Generates the unreachable instruction, which causes an unconditional trap.

This function is safe to call and immediately aborts the execution.