8 lines
118 B
Rust
8 lines
118 B
Rust
|
fn main() {
|
||
|
let v = @mut [ 1, 2, 3 ];
|
||
|
for v.each |_x| { //~ ERROR illegal borrow
|
||
|
v[1] = 4;
|
||
|
}
|
||
|
}
|
||
|
|