Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Struct definitions can have repeated fields #7377

Closed
huonw opened this issue Jun 25, 2013 · 0 comments
Closed

Struct definitions can have repeated fields #7377

huonw opened this issue Jun 25, 2013 · 0 comments
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@huonw
Copy link
Member

huonw commented Jun 25, 2013

struct Foo { a: uint, a: uint }

compiles fine.

Constructing a Foo literal doesn't work, listing two as gives field a specified more than once, giving only one a gives error: missing fields:, with an empty list of missing fields.

yjh0502 pushed a commit to yjh0502/rust that referenced this issue Jun 28, 2013
@bors bors closed this as completed in 7bcde87 Jul 1, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Jul 1, 2021
Improve lint message for match-same-arms lint

fixes rust-lang#7331

Follow-up to rust-lang#7377

This PR improves the lint message for `match-same-arms` lint and adds `todo!(..)`  example to the lint docs.

*Please write a short comment explaining your change (or "none" for internal only changes)*

changelog: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

1 participant