rust/src/test/compile-fail/mutable-huh-variance-deep.rs

11 lines
173 B
Rust
Raw Normal View History

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