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

A `Vec<String>` is passed by value into `consume`. What is the state of `items` in `main` afterward?

fn consume(v: Vec<String>) { println!("{}", v.len()); } fn main() { let items = vec![String::from("a")]; consume(items); // use items here? }