Closed
Description
This PR can be merged as is, but I think we could also add another branch that detects the case with
PatKind::Ident(..)
where..
is present and record it with aPartialRes::new(Res::Err)
, which should eliminate the second unnecessary error that complains aboutx
not being defined. (Haven't looked at this deeply enough to be sure.)
Originally posted by @estebank in #74557 (comment)
Follow-up of #74557