2 let mut v = vec!["hello", "this", "is", "a", "test"];
6 v.into_iter().map(|s|s.to_owned()).collect::<Vec<_>>();
8 let mut a = String::new();
11 //~^ ERROR mismatched types
12 //~| NOTE expected struct `std::string::String`, found str
13 //~| NOTE expected type