NLL Diagnostic Review 3: missing borrow error justifications for unions #57100
Labels
A-NLL
Area: Non-lexical lifetimes (NLL)
NLL-diagnostics
Working towards the "diagnostic parity" goal
P-low
Low priority
For the
ui/borrowck/borrowck-union-borrow.ast.nll.stderr
test, the AST borrow checker indicates that the borrow ofu.b
is causing the borrow of the unionu
itself, thus justifying the complaint about the borrow ofu.a
.However, the NLL borrow checker just says that
u.b
is already borrowed, which is less clear when its pointing at a borrow ofu.a
.The text was updated successfully, but these errors were encountered: