8a8f200d10
Fixes #3261 Fixes #3443
9 lines
121 B
Rust
9 lines
121 B
Rust
fn write(v: &[mut int]) {
|
|
v[0] += 1;
|
|
}
|
|
|
|
fn main() {
|
|
let v = ~[1, 2, 3];
|
|
write(v); //~ ERROR illegal borrow
|
|
}
|