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(_) => {}
}
}
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(_) => {}
}
}
match x {
opts::a(ref mut i) | opts::b(ref i) => {}
//~^ ERROR variable `i` is bound with different mode in pattern #2 than in pattern #1
+ //~^^ ERROR mismatched types
opts::c(_) => {}
}
}