Skip to content

Require structs to use newtype form or have at least one field #5167

Closed
@nikomatsakis

Description

@nikomatsakis

Per this thread on the mailing list, structs should be required to either be written struct Foo; or to have at least one field. This avoids various ambiguities when parsing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parserArea: The lexing & parsing of Rust source code to an AST

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions