1 error[E0308]: mismatched types
2 --> $DIR/return_type_containing_closure.rs:4:5
5 | - possibly return type missing here?
7 LL | vec!['a'].iter().map(|c| c)
8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: consider using a semicolon here: `;`
10 | expected `()`, found struct `Map`
12 = note: expected unit type `()`
13 found struct `Map<std::slice::Iter<'_, char>, [closure@$DIR/return_type_containing_closure.rs:4:26: 4:31]>`
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0308`.