1 error[E0382]: use of moved value: `s`
2 --> $DIR/issue-42796.rs:28:20
4 LL | let mut s_copy = s;
5 | ---------- value moved here
7 LL | println!("{}", s); //~ ERROR use of moved value
8 | ^ value used here after move
10 = note: move occurs because `s` has type `std::string::String`, which does not implement the `Copy` trait
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0382`.