rust/src/test/ui/issues/issue-33819.rs
2018-12-25 21:08:33 -07:00

10 lines
203 B
Rust

fn main() {
let mut op = Some(2);
match op {
Some(ref v) => { let a = &mut v; },
//~^ ERROR:cannot borrow immutable
//~| cannot borrow mutably
None => {},
}
}