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

9 lines
146 B
Rust
Raw Permalink Normal View History

2019-09-25 18:24:32 +02:00
let mut vec = vec![1, 2, 3];
let iter = vec.iter();
loop {
match iter.next() {
Some(x) => vec.push(x),
None => break,
2019-09-25 17:18:35 +02:00
}
}