Closed
Description
Looking at a case like E0597.rs, we can see that the AST-borrowck includes the note:
rust/src/test/ui/error-codes/E0597.stderr
Line 10 in 2e104a7
while NLL has no reminder about the drop order for a pair of locals declared in the same lexical scope.
- (I personally am not a fan of the use of the word "created" in the error message there, since I attach that word to the dynamic semantics, while drop order is entirely defined by the declaration order, which is part of the static semantics (or really, part of the source syntax itself). The only thing that's potentially dynamic is whether or not a local variable actually holds a value at the moment that we go out of that local variable's scope.)
But anyway, the point is that NLL is failing to say anything at all on the matter, which is probably not ideal for Rust's target audience.