mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
17 lines
197 B
Rust
17 lines
197 B
Rust
//@ run-pass
|
|
|
|
struct F { f: Vec<isize> }
|
|
|
|
fn impure(_v: &[isize]) {
|
|
}
|
|
|
|
pub fn main() {
|
|
let mut x = F {f: vec![3]};
|
|
|
|
match x {
|
|
F {f: ref mut v} => {
|
|
impure(v);
|
|
}
|
|
}
|
|
}
|