Fix E0507 by borrowing the value instead of moving it, or by cloning it if the type implements Clone. Use & to borrow or .clone() to copy the data.
fn example(s: &String) {
let borrowed = &s; // Borrow instead of move
let cloned = s.clone(); // Clone if you need ownership
}
If you are trying to move out of a reference, you must dereference and clone, or change the function signature to take ownership (String instead of &String).