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

12 lines
184 B
Rust
Raw Normal View History

// error-pattern: mismatched types
fn main() {
let v = [mutable [mutable [0]]];
2011-11-16 14:41:32 -08:00
fn f(&&v: [mutable [mutable [const int]]]) {
v[0][1] = [mutable 3]
}
f(v);
}