Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. enum E {
  2. A,
  3. B,
  4. }
  5.  
  6. fn main() {
  7. match E::A {
  8. E::A |
  9. E::B | // This pipe or operand shouldn't be here
  10. if true => {}
  11. _ => {}
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement