Closed
Description
Tracking issue for rust-lang/rfcs#218.
cc @pnkfelix.
Summary
When a struct type
S
has no fields (a so-called "empty struct"), allow it to be defined via eitherstruct S;
orstruct S {}
. When defined viastruct S;
, allow instances of it to be constructed and pattern-matched via eitherS
orS {}
. When defined viastruct S {}
, require instances to be constructed and pattern-matched solely viaS {}
.
Metadata
Metadata
Assignees
Labels
Blocker: Approved by a merged RFC but not yet implemented.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Relevant to the language team, which will review and decide on the PR/issue.