]> git.proxmox.com Git - rustc.git/blame - src/test/ui/borrowck/issue-33819.rs
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / borrowck / issue-33819.rs
CommitLineData
a7813a04 1fn 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}