Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #![allow(unused)]
  2. fn main() {
  3. use std::panic;
  4.  
  5. let result = panic::catch_unwind(|| {
  6. panic!("oh no!");
  7. });
  8.  
  9. // if let Err(e) = result {
  10. // println!("{:?}", e.downcast_ref::<String>());
  11. // }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement