SHARE
TWEET

Untitled

a guest Sep 11th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. use std::convert::TryFrom;
  2.  
  3. fn main() {
  4.     let v = 257usize;
  5.     println!(
  6.         "{:?} {:?} {:?} {:?} {:?}",
  7.         u8::try_from(v),
  8.         i8::try_from(v),
  9.         u32::try_from(v),
  10.         i32::try_from(v),
  11.         u64::try_from(v)
  12.     );
  13. }
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