Error message mentions impl trait even though no traits are involved #84160
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=nightly&mode=debug&edition=2018&gist=0aed05fe97333e35dc688bc76eabd8ad
The current output is:
The error message should not message
impl Trait
, because it has nothing to do with this code (from user PoV)If I change the code to the following:
Confusing message goes away
The text was updated successfully, but these errors were encountered: