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

11 lines
192 B
Rust
Raw Normal View History

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