SHARE
TWEET

Untitled

a guest Jul 17th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pub mod parent {
  2.     pub mod mod1 {
  3.         pub struct Struct {}
  4.     }
  5.     pub mod mod2 {
  6.         pub struct Struct {}
  7.     }
  8.     pub enum MyEnum {
  9.         Struct1(mod1::Struct),
  10.         Struct2(mod2::Struct),
  11.     }
  12. }
  13.  
  14. pub fn main() {
  15.     let _foo = parent::MyEnum::Struct1(parent::mod1::Struct {});
  16. }
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