Skip to content

Remove old syntax for structs implementing a trait #3296

Closed
@erickt

Description

@erickt

The rust grammar still allows for this old-style struct implementing a trait:

trait T { ... }
struct S: T { ... }

Using this form is no longer safe though, as I experienced in #3276. The new min/max style works though:

trait T { }
struct S { ... }
impl S: T { ... }

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions