Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. pub enum Infallable {}
  2.  
  3. pub enum E1 {
  4. V1 { f: bool },
  5. V2 { f: Infallable },
  6. V3,
  7. V4,
  8. }
  9.  
  10. fn main() {
  11. if let E1::V2 { .. } = (E1::V1 { f: true }) {
  12. unimplemented!();
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement