Closed
Description
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
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
thomaslee commentedon Apr 4, 2013
Is this as simple as modifying the parser to prevent the "struct Foo {}" syntax (i.e. a struct with no fields) & modifying it to support the braceless syntax, or is more work needed to make it a newtype? And if so, what?
huonw commentedon Apr 4, 2013
@thomaslee, this seems to have been done already:
(ping @nikomatsakis, you can probably close this.)
thomaslee commentedon Apr 4, 2013
Ah good catch @dbaupp -- thanks.
{}
and semi-colons. #7981