-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Poor error message for type definitions in extern blocks #43495
Copy link
Copy link
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.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
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.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.
Although work on RFC 1861 for extern types has begun in issue #43467, it's not complete, and in the mean time, Rust gives very strange messages if one accidentally includes a type in an
externblock. For example:On nightly, this elicits the following message:
A reader of our book came across this error message by accident and asked me about it. We were both mystified.