Macro const_panic
macro const_panic {
($const_msg:literal, $runtime_msg:literal, $($arg:ident : $ty:ty = $val:expr),* $(,)?) => { ... },
($const_msg:literal, $runtime_msg:literal, $($arg:ident : $ty:ty),* $(,)?) => { ... },
}
Helper macro for panicking in a const fn.
Invoke as:
const_panic!;
where the first message will be printed in const-eval, and the second message will be printed at runtime.