Poor error message for type definitions in extern
blocks
#43495
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
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
extern
block. 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.
The text was updated successfully, but these errors were encountered: