Skip to content

reference.html inconsistent on struct expressions #32769

Closed
@tromey

Description

@tromey

One part of the reference manual says that empty braces are allowed for struct expressions: https://doc.rust-lang.org/reference.html#structs

Another part says that the braces must contain one or more initializers: https://doc.rust-lang.org/reference.html#struct-expressions

rustc tells me that empty braces are an unstable extension, so one way to resolve the discrepancy would be to mention this in the manual, preferably at both spots.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-help-wantedCall for participation: Help is requested to fix this issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions