provekit_noirc_driver 1.0.0-beta.20-alpha.1

Noir compiler driver.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Halt the program at runtime with the given error message.
///
/// The provided error message must be either a `str` or a `fmtstr`.
pub fn panic<T, U>(message: T) -> U
where
    T: StringLike,
{
    assert(false, message);
    crate::mem::zeroed()
}

trait StringLike {}

impl<let N: u32> StringLike for str<N> {}
impl<let N: u32, T> StringLike for fmtstr<N, T> {}