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

12 lines
161 B
Rust

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