
whoamiNoneNone case


error[E0382]: borrow of moved value: `hard`
--> src/main.rs:4:26
|
2 | let hard = String::from("Rust is hard");
| ---- move occurs because `hard` has type `String`, which does not implement the `Copy` trait
3 | let size = count_length(hard);
| ---- value moved here
4 | println!("{}: {:?}", hard, size);
| ^^^^ value borrowed here after move
|
note: consider changing this parameter type in function `count_length` to borrow instead if owning the value isn't necessary
--> src/main.rs:8:20No…