3 #![feature(let_chains)]
4 #![warn(clippy::bool_to_int_with_if)]
5 #![allow(unused, dead_code, clippy::unnecessary_operation, clippy::no_effect)]
56 // if else if inverted
112 pub const SHOULD_NOT_LINT: usize = if true { 1 } else { 0 };
117 // Lint returns and type inference
118 fn some_fn(a: bool) -> u8 {
119 if a { 1 } else { 0 }
124 fn cond(a: bool, b: bool) -> bool {
133 fn if_let(a: Enum, b: Enum) {
140 if let Enum::A = a && let Enum::B = b {