7 lines
102 B
Rust
7 lines
102 B
Rust
|
fn func() {
|
||
|
let mut vec = vec![1, 2, 3];
|
||
|
for value in &vec {
|
||
|
vec.push(value);
|
||
|
}
|
||
|
}
|