2018 edition - confusing error message when declaring unnamed parameters #53990
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-frontend
Area: Compiler frontend (errors, parsing and HIR)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-diagnostics
Working group: Diagnostics
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.
The text was updated successfully, but these errors were encountered: