NLL regresses diagnostic for impl-trait/static-return-lifetime-infered.rs #53771
Labels
A-NLL
Area: Non-lexical lifetimes (NLL)
NLL-diagnostics
Working towards the "diagnostic parity" goal
Consider this code from
static-return-lifetime-infered.rs
(play):Part of the diagnostic info you get is this useful help message:
Unfortunately, under
#![feature(nll)]
, we fail to produce that help diagnostic (play):"Luckily", this does not need to be a high priority issue for us to resolve, because in the special "migration" mode for NLL (which you can observe today by opting into the 2018 edition), we do produce the help message (play):
The text was updated successfully, but these errors were encountered: