> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Function panic

Module: `std::panic`

```rust
pub fn panic<T, U>(message: T) -> U
where
    T: StringLike
```

Halt the program at runtime with the given error message.

The provided error message must be either a `str` or a `fmtstr`.
