Is that defined behaviour?

Example code. It is ok that Illegal instruction was generated during second panic?

Double panic in Rust calls std::process::abort(), which is commonly implemented as illegal machine code to invoke SIGILL.

4 Likes