Skip to content

E0223 should not be given in contexts where ::Thing cannot be an associated type #49566

Closed
@sgrif

Description

@sgrif

Specifically, when there is code in the form of SomeEnum::MissingVariant { field: () }, we should be receiving E0599, behaving the same as if we had written SomeEnum::MissingVariant(()).

Example to reproduce: https://play.rust-lang.org/?gist=5fd6bb1d589b9e27b7b9ba0cd8d6cb50&version=stable

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.D-papercutDiagnostics: An error or lint that needs small tweaks.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions