rust/tests/ui/nonminimal_bool_methods_unfixable.rs

10 lines
237 B
Rust
Raw Normal View History

#![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() {}