-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Poor recovery from [_]::method #89388
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
dtolnay
added
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Sep 30, 2021
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Oct 4, 2021
Improve error message for missing angle brackets in `[_]::method` Fixes rust-lang#89388.
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Oct 4, 2021
Improve error message for missing angle brackets in `[_]::method` Fixes rust-lang#89388.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=5f20683e51f9be844a0cc50aeb746f5d
The current output is:
to_vec
is a crate name[_]
isn't meaningful because it isn't left of an assignmentmap
Ideally the output should look like:
Indeed this is exactly that you already get if you had put
[u8]::to_vec
instead of[_]::to_vec
.The text was updated successfully, but these errors were encountered: