Incorrect suggestion when trying to implement Trait<Associated = ()>
with impl Trait + 'static
#87261
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 (Playground):
The current output is:
The syntax
impl Trait + 'static<Associated = ()>
does not actually work.Ideally the suggested fix should look like:
This bug appears to be present in stable, beta, and nightly, on both Rust 2015 and 2018.
The text was updated successfully, but these errors were encountered: