Lifetime error with #![feature(nll)] and RPIT gives bad suggestion #73159
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lifetimes
Area: Lifetimes / regions
C-bug
Category: This is a bug.
NLL-diagnostics
Working towards the "diagnostic parity" goal
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code:
gives the following error:
Suggsting that the user change the impl to
impl Foo<'static>
is usually the wrong thing to do - it's more likely that the user wants to writeimpl Iterator<Item = u8> + 'a
The text was updated successfully, but these errors were encountered: