rust/src/test/compile-fail/mutable-huh-variance-box.rs
2011-10-17 20:51:34 -07:00

12 lines
160 B
Rust

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