]> git.lizzy.rs Git - rust.git/blob - src/test/ui/track-diagnostics/track2.stderr
Rollup merge of #104797 - weihanglo:stream-write-dwp, r=jackh726
[rust.git] / src / test / ui / track-diagnostics / track2.stderr
1 error[E0382]: use of moved value
2   --> $DIR/track2.rs:LL:CC
3    |
4 LL |     let _moved @ _from = String::from("foo");
5    |         ^^^^^^   -----   ------------------- move occurs because value has type `String`, which does not implement the `Copy` trait
6    |         |        |
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 ref _moved @ ref _from = String::from("foo");
14    |         +++          +++
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0382`.