]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-42796.nll.stderr
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-42796.nll.stderr
1 error[E0382]: borrow of moved value: `s`
2   --> $DIR/issue-42796.rs:18:20
3    |
4 LL |     let mut s_copy = s;
5    |                      - value moved here
6 ...
7 LL |     println!("{}", s); //~ ERROR use of moved value
8    |                    ^ value borrowed here after move
9    |
10    = note: move occurs because `s` has type `std::string::String`, which does not implement the `Copy` trait
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0382`.