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

11 lines
146 B
Rust
Raw Normal View History

// error-pattern: mismatched types
fn main() {
2012-03-26 20:35:18 -05:00
let v = [mut @mut ~mut [0]];
2012-03-26 20:35:18 -05:00
fn f(&&v: [mut @mut ~mut [const int]]) {
}
f(v);
}