rust/tests/ui/ice-360.rs
Michael Wright 1cb94a7e6c Split while_loop.rs tests
Split out while_let_loop tests into separate file.
Split ice-360 out into separate file.
2019-05-08 09:24:24 +02:00

13 lines
216 B
Rust

fn main() {}
fn no_panic<T>(slice: &[T]) {
let mut iter = slice.iter();
loop {
let _ = match iter.next() {
Some(ele) => ele,
None => break,
};
loop {}
}
}