rust-clippy/tests/ui/crashes/ice-360.rs

13 lines
216 B
Rust
Raw Normal View History

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