@@ -2,10 +2,12 @@ error[E0631]: type mismatch in closure arguments
2
2
--> $DIR/anonymous-higher-ranked-lifetime.rs:2:5
3
3
|
4
4
LL | f1(|_: (), _: ()| {});
5
- | ^^ -------------- found signature of `fn((), ()) -> _`
5
+ | ^^ -------------- found signature defined here
6
6
| |
7
- | expected signature of `for<'r, 's> fn(&'r (), &'s ()) -> _`
7
+ | expected due to this
8
8
|
9
+ = note: expected closure signature `for<'r, 's> fn(&'r (), &'s ()) -> _`
10
+ found closure signature `fn((), ()) -> _`
9
11
note: required by a bound in `f1`
10
12
--> $DIR/anonymous-higher-ranked-lifetime.rs:16:25
11
13
|
@@ -16,10 +18,12 @@ error[E0631]: type mismatch in closure arguments
16
18
--> $DIR/anonymous-higher-ranked-lifetime.rs:3:5
17
19
|
18
20
LL | f2(|_: (), _: ()| {});
19
- | ^^ -------------- found signature of `fn((), ()) -> _`
21
+ | ^^ -------------- found signature defined here
20
22
| |
21
- | expected signature of `for<'a, 'r> fn(&'a (), &'r ()) -> _`
23
+ | expected due to this
22
24
|
25
+ = note: expected closure signature `for<'a, 'r> fn(&'a (), &'r ()) -> _`
26
+ found closure signature `fn((), ()) -> _`
23
27
note: required by a bound in `f2`
24
28
--> $DIR/anonymous-higher-ranked-lifetime.rs:17:25
25
29
|
@@ -30,10 +34,12 @@ error[E0631]: type mismatch in closure arguments
30
34
--> $DIR/anonymous-higher-ranked-lifetime.rs:4:5
31
35
|
32
36
LL | f3(|_: (), _: ()| {});
33
- | ^^ -------------- found signature of `fn((), ()) -> _`
37
+ | ^^ -------------- found signature defined here
34
38
| |
35
- | expected signature of `for<'r> fn(&(), &'r ()) -> _`
39
+ | expected due to this
36
40
|
41
+ = note: expected closure signature `for<'r> fn(&(), &'r ()) -> _`
42
+ found closure signature `fn((), ()) -> _`
37
43
note: required by a bound in `f3`
38
44
--> $DIR/anonymous-higher-ranked-lifetime.rs:18:29
39
45
|
@@ -44,10 +50,12 @@ error[E0631]: type mismatch in closure arguments
44
50
--> $DIR/anonymous-higher-ranked-lifetime.rs:5:5
45
51
|
46
52
LL | f4(|_: (), _: ()| {});
47
- | ^^ -------------- found signature of `fn((), ()) -> _`
53
+ | ^^ -------------- found signature defined here
48
54
| |
49
- | expected signature of `for<'s, 'r> fn(&'s (), &'r ()) -> _`
55
+ | expected due to this
50
56
|
57
+ = note: expected closure signature `for<'r, 's> fn(&'s (), &'r ()) -> _`
58
+ found closure signature `fn((), ()) -> _`
51
59
note: required by a bound in `f4`
52
60
--> $DIR/anonymous-higher-ranked-lifetime.rs:19:25
53
61
|
@@ -58,10 +66,12 @@ error[E0631]: type mismatch in closure arguments
58
66
--> $DIR/anonymous-higher-ranked-lifetime.rs:6:5
59
67
|
60
68
LL | f5(|_: (), _: ()| {});
61
- | ^^ -------------- found signature of `fn((), ()) -> _`
69
+ | ^^ -------------- found signature defined here
62
70
| |
63
- | expected signature of `for<'r> fn(&'r (), &'r ()) -> _`
71
+ | expected due to this
64
72
|
73
+ = note: expected closure signature `for<'r> fn(&'r (), &'r ()) -> _`
74
+ found closure signature `fn((), ()) -> _`
65
75
note: required by a bound in `f5`
66
76
--> $DIR/anonymous-higher-ranked-lifetime.rs:20:25
67
77
|
@@ -72,10 +82,12 @@ error[E0631]: type mismatch in closure arguments
72
82
--> $DIR/anonymous-higher-ranked-lifetime.rs:7:5
73
83
|
74
84
LL | g1(|_: (), _: ()| {});
75
- | ^^ -------------- found signature of `fn((), ()) -> _`
85
+ | ^^ -------------- found signature defined here
76
86
| |
77
- | expected signature of `for<'r> fn(&'r (), Box<(dyn for<'s> Fn(&'s ()) + 'static)>) -> _`
87
+ | expected due to this
78
88
|
89
+ = note: expected closure signature `for<'r> fn(&'r (), Box<(dyn for<'r> Fn(&'r ()) + 'static)>) -> _`
90
+ found closure signature `fn((), ()) -> _`
79
91
note: required by a bound in `g1`
80
92
--> $DIR/anonymous-higher-ranked-lifetime.rs:23:25
81
93
|
@@ -86,10 +98,12 @@ error[E0631]: type mismatch in closure arguments
86
98
--> $DIR/anonymous-higher-ranked-lifetime.rs:8:5
87
99
|
88
100
LL | g2(|_: (), _: ()| {});
89
- | ^^ -------------- found signature of `fn((), ()) -> _`
101
+ | ^^ -------------- found signature defined here
90
102
| |
91
- | expected signature of `for<'r> fn(&'r (), for<'s> fn(&'s ())) -> _`
103
+ | expected due to this
92
104
|
105
+ = note: expected closure signature `for<'r> fn(&'r (), for<'r> fn(&'r ())) -> _`
106
+ found closure signature `fn((), ()) -> _`
93
107
note: required by a bound in `g2`
94
108
--> $DIR/anonymous-higher-ranked-lifetime.rs:24:25
95
109
|
@@ -100,10 +114,12 @@ error[E0631]: type mismatch in closure arguments
100
114
--> $DIR/anonymous-higher-ranked-lifetime.rs:9:5
101
115
|
102
116
LL | g3(|_: (), _: ()| {});
103
- | ^^ -------------- found signature of `fn((), ()) -> _`
117
+ | ^^ -------------- found signature defined here
104
118
| |
105
- | expected signature of `for<'s> fn(&'s (), Box<(dyn for<'r> Fn(&'r ()) + 'static)>) -> _`
119
+ | expected due to this
106
120
|
121
+ = note: expected closure signature `for<'s> fn(&'s (), Box<(dyn for<'r> Fn(&'r ()) + 'static)>) -> _`
122
+ found closure signature `fn((), ()) -> _`
107
123
note: required by a bound in `g3`
108
124
--> $DIR/anonymous-higher-ranked-lifetime.rs:25:25
109
125
|
@@ -114,10 +130,12 @@ error[E0631]: type mismatch in closure arguments
114
130
--> $DIR/anonymous-higher-ranked-lifetime.rs:10:5
115
131
|
116
132
LL | g4(|_: (), _: ()| {});
117
- | ^^ -------------- found signature of `fn((), ()) -> _`
133
+ | ^^ -------------- found signature defined here
118
134
| |
119
- | expected signature of `for<'s> fn(&'s (), for<'r> fn(&'r ())) -> _`
135
+ | expected due to this
120
136
|
137
+ = note: expected closure signature `for<'s> fn(&'s (), for<'r> fn(&'r ())) -> _`
138
+ found closure signature `fn((), ()) -> _`
121
139
note: required by a bound in `g4`
122
140
--> $DIR/anonymous-higher-ranked-lifetime.rs:26:25
123
141
|
@@ -128,10 +146,12 @@ error[E0631]: type mismatch in closure arguments
128
146
--> $DIR/anonymous-higher-ranked-lifetime.rs:11:5
129
147
|
130
148
LL | h1(|_: (), _: (), _: (), _: ()| {});
131
- | ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`
149
+ | ^^ ---------------------------- found signature defined here
132
150
| |
133
- | expected signature of `for<'r, 's> fn(&'r (), Box<(dyn for<'t0> Fn(&'t0 ()) + 'static)>, &'s (), for<'t0, 't1> fn(&'t0 (), &'t1 ())) -> _`
151
+ | expected due to this
134
152
|
153
+ = note: expected closure signature `for<'r, 's> fn(&'r (), Box<(dyn for<'r> Fn(&'r ()) + 'static)>, &'s (), for<'r, 's> fn(&'r (), &'s ())) -> _`
154
+ found closure signature `fn((), (), (), ()) -> _`
135
155
note: required by a bound in `h1`
136
156
--> $DIR/anonymous-higher-ranked-lifetime.rs:29:25
137
157
|
@@ -142,10 +162,12 @@ error[E0631]: type mismatch in closure arguments
142
162
--> $DIR/anonymous-higher-ranked-lifetime.rs:12:5
143
163
|
144
164
LL | h2(|_: (), _: (), _: (), _: ()| {});
145
- | ^^ ---------------------------- found signature of `fn((), (), (), ()) -> _`
165
+ | ^^ ---------------------------- found signature defined here
146
166
| |
147
- | expected signature of `for<'r, 't0> fn(&'r (), Box<(dyn for<'s> Fn(&'s ()) + 'static)>, &'t0 (), for<'s, 't1> fn(&'s (), &'t1 ())) -> _`
167
+ | expected due to this
148
168
|
169
+ = note: expected closure signature `for<'t0, 'r> fn(&'r (), Box<(dyn for<'r> Fn(&'r ()) + 'static)>, &'t0 (), for<'r, 's> fn(&'r (), &'s ())) -> _`
170
+ found closure signature `fn((), (), (), ()) -> _`
149
171
note: required by a bound in `h2`
150
172
--> $DIR/anonymous-higher-ranked-lifetime.rs:30:25
151
173
|
0 commit comments