I am trying to learn rust and got stuck at Ownership and Borrowing.
let s1 = String::from("Hello");
let s2 = s1;
print!("{}", s1); //---> Why this is an error ?
let a = "hello";
let b = a;
print!("{}", a); //--> But why this is not ?
Can someone kindly help me out on this ?