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.
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: