rust/src/test/compile-fail/mutable-huh-variance-box.rs
2012-03-26 18:35:18 -07:00

12 lines
145 B
Rust

// error-pattern: mismatched types
fn main() {
let v = @mut [0];
fn f(&&v: @mut [const int]) {
*v = [mut 3]
}
f(v);
}