Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pub mod parent {
- pub mod child1 {
- pub struct Struct1 {}
- }
- pub mod child2 {
- pub struct Struct2 {}
- }
- pub enum MyEnum {
- Struct1(child1::Struct1),
- Struct2(child2::Struct2),
- }
- }
- pub fn main() {
- let _foo = parent::MyEnum::Struct1(parent::child1::Struct1 {});
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement