]>
git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/match_bool.rs
1 //@no-rustfix: overlapping suggestions
2 #![deny(clippy::match_bool)]
8 //~^ ERROR: you seem to be trying to match on a boolean expression
15 //~^ ERROR: you seem to be trying to match on a boolean expression
21 //~^ ERROR: you seem to be trying to match on a boolean expression
29 //~^ ERROR: you seem to be trying to match on a boolean expression
37 //~^ ERROR: this boolean expression can be simplified
38 //~| NOTE: `-D clippy::nonminimal-bool` implied by `-D warnings`
39 //~| ERROR: you seem to be trying to match on a boolean expression
40 //~| ERROR: equal expressions as operands to `&&`
41 //~| NOTE: `#[deny(clippy::eq_op)]` on by default
49 //~^ ERROR: you seem to be trying to match on a boolean expression
67 #[cfg(feature = "foo")]
68 true if option
== 5 => 10,