mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
10 lines
169 B
Rust
10 lines
169 B
Rust
#![warn(clippy::filter_next)]
|
|
//@no-rustfix
|
|
fn main() {}
|
|
|
|
pub fn issue10029() {
|
|
let iter = (0..10);
|
|
let _ = iter.filter(|_| true).next();
|
|
//~^ filter_next
|
|
}
|