[NLL] Loss of 'static
relaxation suggestion under NLL
#95701
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-NLL
Area: Non-lexical lifetimes (NLL)
NLL-diagnostics
Working towards the "diagnostic parity" goal
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
In the
src/test/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound.rs
test, we give the suggestionconsider relaxing the implicit `'static` requirement
under migrate mode. Under NLL, we lose that suggestion, and have a slightly less user-friendly error message.Importantly, with the suggestion, the code is rustfix-able. Without the suggestion, it is not.
The text was updated successfully, but these errors were encountered: