]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-53348.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-53348.rs
1 fn main() {
2 let mut v = vec!["hello", "this", "is", "a", "test"];
3
4 let v2 = Vec::new();
5
6 v.into_iter().map(|s|s.to_owned()).collect::<Vec<_>>();
7
8 let mut a = String::new();
9 for i in v {
10 a = *i.to_string();
11 //~^ ERROR mismatched types
12 //~| NOTE expected struct `String`, found `str`
13 v2.push(a);
14 }
15 }