Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum opts {
- a(isize), b(isize), c(isize)
- }
- fn matcher1(x: opts) {
- match x {
- opts::a(ref i) | opts::b(i) => {}
- //~^ ERROR variable `i` is bound with different mode in pattern #2 than in pattern #1
- //~^^ ERROR mismatched types
- opts::c(_) => {}
- }
- }
Add Comment
Please, Sign In to add comment