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

7 lines
102 B
Rust
Raw Normal View History

2019-09-25 17:18:35 +02:00
fn func() {
let mut vec = vec![1, 2, 3];
for value in &vec {
vec.push(value);
}
}