pub fn panic_any<M: 'static + Any + Send>(msg: M) -> !
Panic the current thread with the given message as the panic payload.
The message can be of any (
Any + Send) type, not just strings.
The message is wrapped in a
Box<'static + Any + Send>, which can be
accessed later using
panic! macro for more information about panicking.