by dbaupp · 10y ago · 0 comments
enum Foo { A, B } impl Foo::A { fn method_on_a(&self) {} }
[1]: https://github.com/rust-lang/rfcs/pull/1450