-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Non-sense help when type parameter from outer function is used #51303
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
Comments
kennytm
added a commit
to kennytm/rust
that referenced
this issue
Sep 7, 2018
Fix incorrect outer function type parameter message Fix rust-lang#51303.
Mark-Simulacrum
added a commit
to Mark-Simulacrum/rust
that referenced
this issue
Sep 8, 2018
Fix incorrect outer function type parameter message Fix rust-lang#51303.
bors
added a commit
that referenced
this issue
Sep 9, 2018
Fix incorrect outer function type parameter message Fix #51303.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code
Error
It seems that the help message is trying to suggest to introduce a local type parameter, but is worded rather poorly, as if suggesting to use a
peach<Self>
(e.g.this: &peach<Self>
?).Perhaps rewording the help message to explicitly say "introduce" rather than "use" would be better, but even then
Self
is a keyword, and cannot be introduced as a local generic parameter anyway.The text was updated successfully, but these errors were encountered: