blob: 7f25ebd18fffcb6787801e0da2b7a7e47c53b9ad [file] [log] [blame]
fn main() {
let mut op = Some(2);
match op {
Some(ref v) => { let a = &mut v; },
//~^ ERROR:cannot borrow immutable
//~| cannot borrow mutably
None => {},
}
}