Guest User

Untitled

a guest
Sep 11th, 2019
96
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