If a related error is in a part of the buffer that's not currently visible, we should rather report it under the current error, alongside with the code line that triggered it. Something like this:
let z = x;
------------------------------------------
use of moved value: `x`
let y = x; (line 13)
value moved here
------------------------------------------