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 defined here
9 = note: expected closure signature `fn(&(u32, u32)) -> _`
10 found closure signature `fn((u32, u32)) -> _`
11 note: required by a bound in `map`
12 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
13 help: consider borrowing the argument
15 LL | a.iter().map(|_: &(u32, u32)| 45);
18 error[E0631]: type mismatch in closure arguments
19 --> $DIR/closure-arg-type-mismatch.rs:4:14
21 LL | a.iter().map(|_: &(u16, u16)| 45);
22 | ^^^ ---------------- found signature defined here
24 | expected due to this
26 = note: expected closure signature `fn(&(u32, u32)) -> _`
27 found closure signature `for<'a> fn(&'a (u16, u16)) -> _`
28 note: required by a bound in `map`
29 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
31 error[E0631]: type mismatch in closure arguments
32 --> $DIR/closure-arg-type-mismatch.rs:5:14
34 LL | a.iter().map(|_: (u16, u16)| 45);
35 | ^^^ --------------- found signature defined here
37 | expected due to this
39 = note: expected closure signature `fn(&(u32, u32)) -> _`
40 found closure signature `fn((u16, u16)) -> _`
41 note: required by a bound in `map`
42 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
44 error: aborting due to 3 previous errors
46 For more information about this error, try `rustc --explain E0631`.