2011-10-17 20:51:34 -07:00
|
|
|
// error-pattern: mismatched types
|
|
|
|
|
|
|
|
fn main() {
|
2012-03-26 18:35:18 -07:00
|
|
|
let v = {mut g: [0]};
|
2011-10-17 20:51:34 -07:00
|
|
|
|
2012-03-26 18:35:18 -07:00
|
|
|
fn f(&&v: {mut g: [const int]}) {
|
|
|
|
v.g = [mut 3]
|
2011-10-17 20:51:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
f(v);
|
|
|
|
}
|