Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyRustownership and moveSingle-choice MCQ

You move a `String` out of `name` and then call `.clone()` on the new owner. After this code, which bindings are still usable?

fn main() { let name = String::from("ada"); let owner = name; // move let backup = owner.clone(); // which of name / owner / backup are valid here? }