Compiler with NLL feature gives mangled suggestion text for E0596 #51879
Labels
A-NLL
Area: Non-lexical lifetimes (NLL)
NLL-diagnostics
Working towards the "diagnostic parity" goal
Milestone
Compiling this code (playground):
Gives this error:
See that it creates a recommendation of using "
&mut odes
" which assumes I had an&nodes
in my source code.A similar error is seen here (playground) where it chops off the value being iterated over instead of the value being bound to the iterator's Item.
Removing the
#![feature(nll)]
causes there to be less suggestion text from the compiler, and thus does not have this bug.The text was updated successfully, but these errors were encountered: