1 error[E0631]: type mismatch in closure arguments
2 --> $DIR/closure-arg-type-mismatch.rs:3:14
4 LL | a.iter().map(|_: (u32, u32)| 45);
5 | ^^^ ------------------ found signature of `fn((u32, u32)) -> _`
7 | expected signature of `fn(&(u32, u32)) -> _`
9 note: required by a bound in `map`
10 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
12 LL | F: FnMut(Self::Item) -> B,
13 | ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `map`
15 error[E0631]: type mismatch in closure arguments
16 --> $DIR/closure-arg-type-mismatch.rs:4:14
18 LL | a.iter().map(|_: &(u16, u16)| 45);
19 | ^^^ ------------------- found signature of `for<'r> fn(&'r (u16, u16)) -> _`
21 | expected signature of `fn(&(u32, u32)) -> _`
23 note: required by a bound in `map`
24 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
26 LL | F: FnMut(Self::Item) -> B,
27 | ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `map`
29 error[E0631]: type mismatch in closure arguments
30 --> $DIR/closure-arg-type-mismatch.rs:5:14
32 LL | a.iter().map(|_: (u16, u16)| 45);
33 | ^^^ ------------------ found signature of `fn((u16, u16)) -> _`
35 | expected signature of `fn(&(u32, u32)) -> _`
37 note: required by a bound in `map`
38 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
40 LL | F: FnMut(Self::Item) -> B,
41 | ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `map`
43 error: aborting due to 3 previous errors
45 For more information about this error, try `rustc --explain E0631`.