E0223 should not be given in contexts where ::Thing
cannot be an associated type
#49566
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Specifically, when there is code in the form of
SomeEnum::MissingVariant { field: () }
, we should be receiving E0599, behaving the same as if we had writtenSomeEnum::MissingVariant(())
.Example to reproduce: https://play.rust-lang.org/?gist=5fd6bb1d589b9e27b7b9ba0cd8d6cb50&version=stable
The text was updated successfully, but these errors were encountered: