Skip to main content
match_head_needs_bracket
rustc_
lint
1.97.0-beta.4
(36645eb0d 2026-06-12)
In rustc_
lint::
if_
let_
rescope
rustc_lint
::
if_let_rescope
Function
match_
head_
needs_
bracket
Copy item path
Source
fn match_head_needs_bracket(tcx:
TyCtxt
<'_>, expr: &
Expr
<'_>) ->
bool