blob: fff5015cdc1c987bf1dd6625ec6dd093c10a6d40 [file] [log] [blame] [edit]
fn main() {
let mut op = Some(2);
match op {
Some(ref v) => { let a = &mut v; },
//~^ ERROR cannot borrow `v` as mutable, as it is not declared as mutable
//~| HELP try removing `&mut` here
None => {},
}
}