2018-09-04 05:05:53 -05:00
|
|
|
// run-pass
|
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
struct F { f: Vec<isize> }
|
2013-01-26 00:46:32 -06:00
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
fn impure(_v: &[isize]) {
|
2012-06-21 11:41:33 -05:00
|
|
|
}
|
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {
|
2016-10-29 16:54:04 -05:00
|
|
|
let mut x = F {f: vec![3]};
|
2012-06-21 11:41:33 -05:00
|
|
|
|
2012-08-06 14:34:08 -05:00
|
|
|
match x {
|
2013-01-26 00:46:32 -06:00
|
|
|
F {f: ref mut v} => {
|
2015-02-01 20:53:25 -06:00
|
|
|
impure(v);
|
2012-06-21 11:41:33 -05:00
|
|
|
}
|
|
|
|
}
|
2012-08-07 08:04:36 -05:00
|
|
|
}
|