rust-clippy/tests/ui/crashes/ice-360.rs
2019-12-31 20:55:12 +09:00

12 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 {}
}
}