rust/tests/crashes/117696-2.rs
2024-04-14 11:21:51 +02:00

14 lines
218 B
Rust

//@ known-bug: #117696
//@ compile-flags: -Copt-level=0
fn main() {
rec(&mut None::<()>.into_iter());
}
fn rec<T: Iterator>(mut it: T) {
if true {
it.next();
} else {
rec(&mut it);
}
}