mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 08:57:30 +00:00
12 lines
216 B
Rust
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 {}
|
|
}
|
|
}
|