NLL fails to suggest using ref
when a pattern is otherwise an impossible move
#51189
Labels
NLL-diagnostics
Working towards the "diagnostic parity" goal
In the case of ui/borrowck/borrowck-move-error-with-note.rs, the AST borrowck output (borrowck-move-error-with-note.stderr) includes suggestions like this:
but NLL (borrowck-move-error-with-note.nll.stderr) presents no such suggestion for errors it discovers in the MIR for
match
patterns.Here are all the tests that I think involve this:
The text was updated successfully, but these errors were encountered: