Non-exhaustive pattern diagnostic include #[stable(...)] annotation #90820
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code
The current output is:
Ideally the output should look like:
The
#[stable(...)]
tag is a directive for documentation, but should not be included in this diagnostic.This bug exists for me locally in stable and nightly, installed via rustup. Oddly, it does not reproduce on the playground.
The text was updated successfully, but these errors were encountered: