Guest User

Untitled

a guest
Oct 23rd, 2019
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mod private {
  2. #[derive(Debug)]
  3. pub enum Mark {
  4. Neat,
  5. Cool { a: u32 },
  6. }
  7. }
  8. use private::Mark::*;
  9.  
  10. fn test(thing: private::Mark) {
  11. dbg!(thing);
  12. }
  13.  
  14. fn main() {
  15. test(Neat);
  16. test(Cool { a: 3 });
  17. }
RAW Paste Data