Guest User

Untitled

a guest
Jun 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #![feature(core_intrinsics)]
  2.  
  3. use std::intrinsics::type_name;
  4.  
  5. fn test_type<T>(_: T) {
  6. println!("{:?}", unsafe { type_name::<T>() });
  7. }
  8.  
  9. fn main() {
  10. test_type(5);
  11. }
Add Comment
Please, Sign In to add comment