blob: 29624e08a2e805862890a8fae3ec698a3ef099f0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#[allow(unused)]
fn foo() { //~ HELP a return type might be missing here
vec!['a'].iter().map(|c| c)
//~^ ERROR mismatched types [E0308]
//~| NOTE expected `()`, found struct `Map`
//~| NOTE expected unit type `()`
//~| HELP consider using a semicolon here
}
fn main() {}
|