12 lines
157 B
Rust
12 lines
157 B
Rust
// error-pattern: mismatched types
|
|
|
|
fn main() {
|
|
let v = ~mutable [0];
|
|
|
|
fn f(&&v: ~mutable [const int]) {
|
|
*v = [mutable 3]
|
|
}
|
|
|
|
f(v);
|
|
}
|