Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unused)]
- fn main() {
- use std::panic;
- let result = panic::catch_unwind(|| {
- panic!("oh no!");
- });
- // if let Err(e) = result {
- // println!("{:?}", e.downcast_ref::<String>());
- // }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement