rust/src/test/compile-fail/mutable-huh-variance-deep.rs
2011-11-16 14:41:32 -08:00

11 lines
170 B
Rust

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