]> git.proxmox.com Git - rustc.git/blob - src/test/ui/borrowck/borrowck-binding-mutbl.rs
New upstream version 1.38.0+dfsg1
[rustc.git] / src / test / ui / borrowck / borrowck-binding-mutbl.rs
1 // run-pass
2
3 struct F { f: Vec<isize> }
4
5 fn impure(_v: &[isize]) {
6 }
7
8 pub fn main() {
9 let mut x = F {f: vec![3]};
10
11 match x {
12 F {f: ref mut v} => {
13 impure(v);
14 }
15 }
16 }