create a specific error for temporary values that are borrowed too long #54131
Labels
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.
Milestone
Carrying over a comment from #54088:
As a specific example, consider this test:
rust/src/test/ui/nll/borrowed-temporary-error.rs
Lines 18 to 22 in 7ee7207
we give this error:
rust/src/test/ui/nll/borrowed-temporary-error.stderr
Lines 1 to 10 in 7ee7207
but I think we should say something more like this:
Moreover, the extended error for
E9999
ought to explain the temporary rules.The text was updated successfully, but these errors were encountered: