I am learning Rust and came across the following code
fn main() {
let x = String::from("hello");
x; // A
println!("{}",x); // error value borrowed here after move
}
It seems that x is moved at A. How does this happen? Many thanks.