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 up2018 edition - confusing error message when declaring unnamed parameters #53990
Comments
EpicatSupercell
changed the title
2018 edition regression - associated types access with Self
2018 edition regression - function parameters in traits inconsistency
Sep 6, 2018
EpicatSupercell
changed the title
2018 edition regression - function parameters in traits inconsistency
2018 edition inconsistency - parameters of functions in traits
Sep 6, 2018
This comment has been minimized.
This comment has been minimized.
|
Yes, this was done in #53612 |
This comment has been minimized.
This comment has been minimized.
|
So apparently it was part of RFC 1685. In that case we should at least fix the error message, since it doesn't explain the source of the error at all. |
EpicatSupercell
changed the title
2018 edition inconsistency - parameters of functions in traits
2018 edition - confusing error message when declaring unnamed parameters
Sep 6, 2018
Centril
added
A-diagnostics
T-compiler
WG-compiler-errors
A-frontend
labels
Sep 7, 2018
davidtwco
referenced this issue
Dec 7, 2018
Merged
2018 edition - confusing error message when declaring unnamed parameters #56584
davidtwco
self-assigned this
Dec 7, 2018
bors
added a commit
that referenced
this issue
Dec 11, 2018
bors
added a commit
that referenced
this issue
Dec 15, 2018
bors
closed this
in
#56584
Dec 15, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
EpicatSupercell commentedSep 6, 2018
•
edited
This code works correctly on nightly and stable
but not on 2018 edition, where it returns the error
Changing it to
func(_: u8)solves it.Is this an intended change?
I couldn't find anything about it in the edition guide.