Wrong error message with closures when variable moved #63405
Labels
A-closures
Area: Closures (`|…| { … }`)
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=c4b92f189e40cc2a6e8a6d13a24e4ee8
Output:
The
move
actually happen in line 11:by_value(z);
not line 10.Expect output:
The text was updated successfully, but these errors were encountered: