mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 13:43:17 +00:00
9 lines
237 B
Rust
9 lines
237 B
Rust
#![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)); //~ ERROR: this boolean expression can be simplified
|
|
}
|
|
|
|
fn main() {}
|