pub const fn has_let_expr<'tcx>(cond: &'tcx Expr<'tcx>) -> bool
Checks that a condition doesn’t have a let expression, to keep If and While from accepting if let and while let.
let
If
While
if let
while let