We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5993f5d commit 53a711fCopy full SHA for 53a711f
src/test/ui/track-diagnostics/track2.stderr
@@ -7,6 +7,11 @@ LL | let _moved @ _from = String::from("foo");
7
| | value moved here
8
| value used here after move
9
-Ztrack-diagnostics: created at compiler/rustc_borrowck/src/borrowck_errors.rs:LL:CC
10
+ |
11
+help: borrow this binding in the pattern to avoid moving the value
12
13
+LL | let _moved @ ref _from = String::from("foo");
14
+ | +++
15
16
error: aborting due to previous error
17
0 commit comments