2 fn foo() { //~ HELP a return type might be missing here
3 vec!['a'].iter().map(|c| c)
4 //~^ ERROR mismatched types [E0308]
5 //~| NOTE expected `()`, found `Map<Iter<'_, char>, ...>`
6 //~| NOTE expected unit type `()`
7 //~| HELP consider using a semicolon here