Function has_let_expr

Source
pub const fn has_let_expr<'tcx>(cond: &'tcx Expr<'tcx>) -> bool
Expand description

Checks that a condition doesn’t have a let expression, to keep If and While from accepting if let and while let.