-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Inconsistent error when using bindings after @ #120210
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-bindings_after_at`#![feature(bindings_after_at)]``#![feature(bindings_after_at)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-bindings_after_at`#![feature(bindings_after_at)]``#![feature(bindings_after_at)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
In the following, the first case compiles (playground) and the second errors (playground). The only difference is adding a variant to the enum.
Error:
This is an extension to #69971. I discovered this while poking at the match lowering code. Essentially, #69971 was accidentally only fixed for the case of irrefutable patterns, since patterns that require a test go through a different code path.