Sign in
rust
/
rust
/
e8a00a7621606f8c4a34b679cefaaa6aecf2442e
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
nonminimal_bool_methods_unfixable.rs
blob: 850eba4851b8fa613a817e6a1d5e822c487fef7d [
file
] [
log
] [
blame
]
#![
warn
(
clippy
::
nonminimal_bool
)]
//@no-rustfix
fn
issue_13436
()
{
let
opt_opt
=
Some
(
Some
(
500
));
_
=
!
opt_opt
.
is_some_and
(|
x
|
!
x
.
is_some_and
(|
y
|
y
!=
1000
));
//~^ nonminimal_bool
//~| nonminimal_bool
}
fn
main
()
{}