Skip to content

Commit 2a2621d

Browse files
committed
bless NLL test
1 parent d5e982d commit 2a2621d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/test/ui/mismatched_types/closure-arg-type-mismatch.nll.stderr

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ LL | a.iter().map(|_: (u32, u32)| 45);
55
| ^^^ ------------------ found signature of `fn((u32, u32)) -> _`
66
| |
77
| expected signature of `fn(&(u32, u32)) -> _`
8+
|
9+
note: required by a bound in `map`
10+
--> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
11+
|
12+
LL | F: FnMut(Self::Item) -> B,
13+
| ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `map`
814

915
error[E0631]: type mismatch in closure arguments
1016
--> $DIR/closure-arg-type-mismatch.rs:4:14
@@ -13,6 +19,12 @@ LL | a.iter().map(|_: &(u16, u16)| 45);
1319
| ^^^ ------------------- found signature of `for<'r> fn(&'r (u16, u16)) -> _`
1420
| |
1521
| expected signature of `fn(&(u32, u32)) -> _`
22+
|
23+
note: required by a bound in `map`
24+
--> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
25+
|
26+
LL | F: FnMut(Self::Item) -> B,
27+
| ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `map`
1628

1729
error[E0631]: type mismatch in closure arguments
1830
--> $DIR/closure-arg-type-mismatch.rs:5:14
@@ -21,6 +33,12 @@ LL | a.iter().map(|_: (u16, u16)| 45);
2133
| ^^^ ------------------ found signature of `fn((u16, u16)) -> _`
2234
| |
2335
| expected signature of `fn(&(u32, u32)) -> _`
36+
|
37+
note: required by a bound in `map`
38+
--> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
39+
|
40+
LL | F: FnMut(Self::Item) -> B,
41+
| ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `map`
2442

2543
error: aborting due to 3 previous errors
2644

0 commit comments

Comments
 (0)