SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 81 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
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