# Function core::panicking::panic
[−][src]

    pub fn panic(expr: &'static str) -> !

🔬 This is a nightly-only experimental API. (`core_panic`)

internal details of the implementation of the `panic!` and related macros

This is supported on non-crate feature `miri-test-libstd` or `test` or `doctest` only.
Expand description

The underlying implementation of libcore’s `panic!` macro when no formatting is used.