SHARE
TWEET

Untitled

a guest Feb 19th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top