]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-53348.rs
Re-blessed tests.
[rust.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 `std::string::String`, found str
13         //~| NOTE expected type
14         v2.push(a);
15     }
16 }