fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0382]: use of moved value 2 --> $DIR/track2.rs:LL:CC 3 | 4LL | 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 | 11help: borrow this binding in the pattern to avoid moving the value 12 | 13LL | let ref _moved @ ref _from = String::from("foo"); 14 | +++ +++ 15 16error: aborting due to previous error 17 18For more information about this error, try `rustc --explain E0382`.