blob: d180e6478ef194d99893ad900c9e9910040e0b61 [file] [log] [blame]
error[E0382]: use of moved value: `s`
--> $DIR/issue-42796.rs:18:20
|
LL | let mut s_copy = s;
| ---------- value moved here
...
LL | println!("{}", s);
| ^ value used here after move
|
= note: move occurs because `s` has type `std::string::String`, which does not implement the `Copy` trait
error: aborting due to previous error
For more information about this error, try `rustc --explain E0382`.