2011-10-17 22:51:34 -05:00
|
|
|
// error-pattern: mismatched types
|
|
|
|
|
|
|
|
fn main() {
|
2012-06-29 18:26:56 -05:00
|
|
|
let v = ~mut ~[0];
|
2011-10-17 22:51:34 -05:00
|
|
|
|
2012-06-29 18:26:56 -05:00
|
|
|
fn f(&&v: ~mut ~[const int]) {
|
|
|
|
*v = ~[mut 3]
|
2011-10-17 22:51:34 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
f(v);
|
|
|
|
}
|