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

5 lines
72 B
Rust
Raw Normal View History

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