Guest User

Untitled

a guest
Jul 17th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. pub enum Foo {
  2. A,
  3. B,
  4. }
  5.  
  6. impl Foo {
  7. pub fn foo(&self) {
  8. {
  9. use Foo::*;
  10. match self {
  11. A => (),
  12. B => (),
  13. }
  14. }
  15. }
  16. }
  17.  
  18. fn main() {}
Add Comment
Please, Sign In to add comment