in loops, the error "borrow of possibly uninitialized variable" is overwritten by "borrow of moved value" in certain case(s) #57553
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
In loops that are detected to happen more than once, the true error
error[E0381]: borrow of possibly uninitialized variable:
is overwritten by another error that doesn't seem to actually apply at all:error[E0382]: borrow of moved value:
.This happens possibly due to #52669 having been fixed.
Simple example (playground) follows, which is showing the fake error
error[E0382]: borrow of moved value:
; to see true error just uncomment the lastbreak;
line:Tested with rust nightly 2018, 11 Jan 2019 version, on playground.
Pedantic example on playground
The text was updated successfully, but these errors were encountered: