a7813a04 |
1 | fn main() { |
3157f602 XL |
2 | let mut op = Some(2); |
3 | match op { |
4 | Some(ref v) => { let a = &mut v; }, |
48663c56 |
5 | //~^ ERROR cannot borrow `v` as mutable, as it is not declared as mutable |
94222f64 |
6 | //~| HELP try removing `&mut` here |
3157f602 |
7 | None => {}, |
54a0048b SL |
8 | } |
9 | } |