rust-clippy/tests/ui/crashes/ice-360.rs
2023-08-11 14:02:28 +00:00

12 lines
229 B
Rust

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