]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-33819.rs
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[rust.git] / src / test / ui / borrowck / issue-33819.rs
1 fn main() {
2     let mut op = Some(2);
3     match op {
4         Some(ref v) => { let a = &mut v; },
5         //~^ ERROR cannot borrow `v` as mutable, as it is not declared as mutable
6         None => {},
7     }
8 }