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 {}
.