rust/tests/ui/structs-enums/auxiliary/namespaced_enum_emulate_flat.rs
2023-01-11 09:32:08 +00:00

26 lines
278 B
Rust

pub use Foo::*;
pub enum Foo {
A,
B(isize),
C { a: isize },
}
impl Foo {
pub fn foo() {}
}
pub mod nest {
pub use self::Bar::*;
pub enum Bar {
D,
E(isize),
F { a: isize },
}
impl Bar {
pub fn foo() {}
}
}