@@ -2,7 +2,7 @@ error[E0631]: type mismatch in closure arguments
2
2
--> $DIR/anonymous-higher-ranked-lifetime.rs:12:5
3
3
|
4
4
12 | f1(|_: (), _: ()| {}); //~ ERROR type mismatch
5
- | ^^ ----------------- found signature of `fn((), ()) -> _`
5
+ | ^^ -------------- found signature of `fn((), ()) -> _`
6
6
| |
7
7
| expected signature of `for<'r, 's> fn(&'r (), &'s ()) -> _`
8
8
|
@@ -12,7 +12,7 @@ error[E0631]: type mismatch in closure arguments
12
12
--> $DIR/anonymous-higher-ranked-lifetime.rs:13:5
13
13
|
14
14
13 | f2(|_: (), _: ()| {}); //~ ERROR type mismatch
15
- | ^^ ----------------- found signature of `fn((), ()) -> _`
15
+ | ^^ -------------- found signature of `fn((), ()) -> _`
16
16
| |
17
17
| expected signature of `for<'a, 'r> fn(&'a (), &'r ()) -> _`
18
18
|
@@ -22,7 +22,7 @@ error[E0631]: type mismatch in closure arguments
22
22
--> $DIR/anonymous-higher-ranked-lifetime.rs:14:5
23
23
|
24
24
14 | f3(|_: (), _: ()| {}); //~ ERROR type mismatch
25
- | ^^ ----------------- found signature of `fn((), ()) -> _`
25
+ | ^^ -------------- found signature of `fn((), ()) -> _`
26
26
| |
27
27
| expected signature of `for<'r> fn(&(), &'r ()) -> _`
28
28
|
@@ -32,7 +32,7 @@ error[E0631]: type mismatch in closure arguments
32
32
--> $DIR/anonymous-higher-ranked-lifetime.rs:15:5
33
33
|
34
34
15 | f4(|_: (), _: ()| {}); //~ ERROR type mismatch
35
- | ^^ ----------------- found signature of `fn((), ()) -> _`
35
+ | ^^ -------------- found signature of `fn((), ()) -> _`
36
36
| |
37
37
| expected signature of `for<'s, 'r> fn(&'s (), &'r ()) -> _`
38
38
|
@@ -42,7 +42,7 @@ error[E0631]: type mismatch in closure arguments
42
42
--> $DIR/anonymous-higher-ranked-lifetime.rs:16:5
43
43
|
44
44
16 | f5(|_: (), _: ()| {}); //~ ERROR type mismatch
45
- | ^^ ----------------- found signature of `fn((), ()) -> _`
45
+ | ^^ -------------- found signature of `fn((), ()) -> _`
46
46
| |
47
47
| expected signature of `for<'r> fn(&'r (), &'r ()) -> _`
48
48
|
@@ -52,7 +52,7 @@ error[E0631]: type mismatch in closure arguments
52
52
--> $DIR/anonymous-higher-ranked-lifetime.rs:17:5
53
53
|
54
54
17 | g1(|_: (), _: ()| {}); //~ ERROR type mismatch
55
- | ^^ ----------------- found signature of `fn((), ()) -> _`
55
+ | ^^ -------------- found signature of `fn((), ()) -> _`
56
56
| |
57
57
| expected signature of `for<'r> fn(&'r (), std::boxed::Box<for<'s> std::ops::Fn(&'s ()) + 'static>) -> _`
58
58
|
@@ -62,7 +62,7 @@ error[E0631]: type mismatch in closure arguments
62
62
--> $DIR/anonymous-higher-ranked-lifetime.rs:18:5
63
63
|
64
64
18 | g2(|_: (), _: ()| {}); //~ ERROR type mismatch
65
- | ^^ ----------------- found signature of `fn((), ()) -> _`
65
+ | ^^ -------------- found signature of `fn((), ()) -> _`
66
66
| |
67
67
| expected signature of `for<'r> fn(&'r (), for<'s> fn(&'s ())) -> _`
68
68
|
@@ -72,7 +72,7 @@ error[E0631]: type mismatch in closure arguments
72
72
--> $DIR/anonymous-higher-ranked-lifetime.rs:19:5
73
73
|
74
74
19 | g3(|_: (), _: ()| {}); //~ ERROR type mismatch
75
- | ^^ ----------------- found signature of `fn((), ()) -> _`
75
+ | ^^ -------------- found signature of `fn((), ()) -> _`
76
76
| |
77
77
| expected signature of `for<'s> fn(&'s (), std::boxed::Box<for<'r> std::ops::Fn(&'r ()) + 'static>) -> _`
78
78
|
@@ -82,7 +82,7 @@ error[E0631]: type mismatch in closure arguments
82
82
--> $DIR/anonymous-higher-ranked-lifetime.rs:20:5
83
83
|
84
84
20 | g4(|_: (), _: ()| {}); //~ ERROR type mismatch
85
- | ^^ ----------------- found signature of `fn((), ()) -> _`
85
+ | ^^ -------------- found signature of `fn((), ()) -> _`
86
86
| |
87
87
| expected signature of `for<'s> fn(&'s (), for<'r> fn(&'r ())) -> _`
88
88
|
@@ -92,7 +92,7 @@ error[E0631]: type mismatch in closure arguments
92
92
--> $DIR/anonymous-higher-ranked-lifetime.rs:21:5
93
93
|
94
94
21 | h1(|_: (), _: (), _: (), _: ()| {}); //~ ERROR type mismatch
95
- | ^^ ------------------------------- found signature of `fn((), (), (), ()) -> _`
95
+ | ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`
96
96
| |
97
97
| expected signature of `for<'r, 's> fn(&'r (), std::boxed::Box<for<'t0> std::ops::Fn(&'t0 ()) + 'static>, &'s (), for<'t0, 't1> fn(&'t0 (), &'t1 ())) -> _`
98
98
|
@@ -102,7 +102,7 @@ error[E0631]: type mismatch in closure arguments
102
102
--> $DIR/anonymous-higher-ranked-lifetime.rs:22:5
103
103
|
104
104
22 | h2(|_: (), _: (), _: (), _: ()| {}); //~ ERROR type mismatch
105
- | ^^ ------------------------------- found signature of `fn((), (), (), ()) -> _`
105
+ | ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`
106
106
| |
107
107
| expected signature of `for<'r, 't0> fn(&'r (), std::boxed::Box<for<'s> std::ops::Fn(&'s ()) + 'static>, &'t0 (), for<'s, 't1> fn(&'s (), &'t1 ())) -> _`
108
108
|
0 commit comments