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

11 lines
117 B
Rust

pub enum Foo {
A,
B(isize),
C { a: isize },
}
impl Foo {
pub fn foo() {}
pub fn bar(&self) {}
}