Closed
Description
Playground link
This produces a lint:
if let Ok(x) = (try { }: Result<(), ()>) {}
But removing the parentheses produces an error.
This bug was already mentioned in #42528, but that issue is lost in feature-request purgatory since it asks for the version without parentheses to be allowed. I'm opening this issue to track the incorrect lint specifically.
(Edit: Fixed the example.)
This issue has been assigned to @lcnr via this comment.