phd/assets/dash-3d-implementation/undefined-behaviour.rs

7 lines
102 B
Rust

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