Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upDRY Self initialization syntax with tuple structs too? #42601
Comments
This comment has been minimized.
This comment has been minimized.
|
See also the short discussion: https://internals.rust-lang.org/t/initialization-syntax-for-self-tuple-structs/5389/3 |
Mark-Simulacrum
added
the
T-compiler
label
Jun 23, 2017
philipc
referenced this issue
Jul 13, 2017
Closed
Can't construct type alias for tuple struct #43209
Mark-Simulacrum
added
the
C-enhancement
label
Jul 27, 2017
petrochenkov
referenced this issue
Sep 25, 2017
Closed
Tuple struct associated constants can't be initialized with Self() #44846
jonhoo
referenced this issue
Jan 17, 2018
Merged
RFC: `Self` in type definitions allowing `enum List<T> { Nil, Cons(T, Box<Self>) }` #2300
This comment has been minimized.
This comment has been minimized.
|
We are doing this now (#51994) so this can be closed. |
Centril
closed this
Nov 30, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
leonardo-m commentedJun 12, 2017
•
edited
Do you want to accept the "Self(0, 0)" syntax too? I think it's more DRY:
The current error message is: