.../variables)
error[E0382]: borrow of moved value: `s1`
--> src/main.rs:6:26
|
2 | let s1 = String::from("hello");
| -- move occurs because `s1` has type `String`, which does not implement the `Copy` trait
3 | let s2 = s1;
| -- value moved here
...
6 | ...