1 2 3 4 5
// https://github.com/rust-analyzer/rust-analyzer/issues/677 fn main() { #[cfg(feature = "backtrace")] let exit_code = panic::catch_unwind(move || main()); }