Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
75f57670b03a33dd165685fe1f252969ef5c16ea
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
methods_unfixable.rs
blob: ee59983a7573e21e8215e49b0246a06ee5f4a6f0 [
file
] [
log
] [
blame
]
#![
warn
(
clippy
::
filter_next
)]
//@no-rustfix
fn
main
()
{
issue10029
();
}
pub
fn
issue10029
()
{
let
iter
=
(
0.
.
10
);
let
_
=
iter
.
filter
(|
_
|
true
).
next
();
//~^ ERROR: called `filter(..).next()` on an `Iterator`. This is more succinctly expre
}