Guest User

Untitled

a guest
Apr 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. mod somemod {
  2. #[derive(Debug)]
  3. pub struct B;
  4. }
  5.  
  6. macro_rules! get_type {
  7. ($struct_name:ident) => (self::somemod::$struct_name)
  8. }
  9.  
  10. fn main() {
  11. println!("{:?}", get_type!(B));
  12. }
Add Comment
Please, Sign In to add comment