@@ -6,7 +6,11 @@ error[E0631]: type mismatch in closure arguments
6
6
| |
7
7
| expected signature of `for<'r, 's> fn(&'r (), &'s ()) -> _`
8
8
|
9
- = note: required by `f1`
9
+ note: required by `f1`
10
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:26:1
11
+ |
12
+ 26 | fn f1<F>(_: F) where F: Fn(&(), &()) {}
13
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10
14
11
15
error[E0631]: type mismatch in closure arguments
12
16
--> $DIR/anonymous-higher-ranked-lifetime.rs:13:5
@@ -16,7 +20,11 @@ error[E0631]: type mismatch in closure arguments
16
20
| |
17
21
| expected signature of `for<'a, 'r> fn(&'a (), &'r ()) -> _`
18
22
|
19
- = note: required by `f2`
23
+ note: required by `f2`
24
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:27:1
25
+ |
26
+ 27 | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {}
27
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
28
21
29
error[E0631]: type mismatch in closure arguments
22
30
--> $DIR/anonymous-higher-ranked-lifetime.rs:14:5
@@ -26,7 +34,11 @@ error[E0631]: type mismatch in closure arguments
26
34
| |
27
35
| expected signature of `for<'r> fn(&(), &'r ()) -> _`
28
36
|
29
- = note: required by `f3`
37
+ note: required by `f3`
38
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:28:1
39
+ |
40
+ 28 | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {}
41
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
42
31
43
error[E0631]: type mismatch in closure arguments
32
44
--> $DIR/anonymous-higher-ranked-lifetime.rs:15:5
@@ -36,7 +48,11 @@ error[E0631]: type mismatch in closure arguments
36
48
| |
37
49
| expected signature of `for<'s, 'r> fn(&'s (), &'r ()) -> _`
38
50
|
39
- = note: required by `f4`
51
+ note: required by `f4`
52
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:29:1
53
+ |
54
+ 29 | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {}
55
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40
56
41
57
error[E0631]: type mismatch in closure arguments
42
58
--> $DIR/anonymous-higher-ranked-lifetime.rs:16:5
@@ -46,7 +62,11 @@ error[E0631]: type mismatch in closure arguments
46
62
| |
47
63
| expected signature of `for<'r> fn(&'r (), &'r ()) -> _`
48
64
|
49
- = note: required by `f5`
65
+ note: required by `f5`
66
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:30:1
67
+ |
68
+ 30 | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {}
69
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50
70
51
71
error[E0631]: type mismatch in closure arguments
52
72
--> $DIR/anonymous-higher-ranked-lifetime.rs:17:5
@@ -56,7 +76,11 @@ error[E0631]: type mismatch in closure arguments
56
76
| |
57
77
| expected signature of `for<'r> fn(&'r (), std::boxed::Box<for<'s> std::ops::Fn(&'s ()) + 'static>) -> _`
58
78
|
59
- = note: required by `g1`
79
+ note: required by `g1`
80
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:33:1
81
+ |
82
+ 33 | fn g1<F>(_: F) where F: Fn(&(), Box<Fn(&())>) {}
83
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60
84
61
85
error[E0631]: type mismatch in closure arguments
62
86
--> $DIR/anonymous-higher-ranked-lifetime.rs:18:5
@@ -66,7 +90,11 @@ error[E0631]: type mismatch in closure arguments
66
90
| |
67
91
| expected signature of `for<'r> fn(&'r (), for<'s> fn(&'s ())) -> _`
68
92
|
69
- = note: required by `g2`
93
+ note: required by `g2`
94
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:34:1
95
+ |
96
+ 34 | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {}
97
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
70
98
71
99
error[E0631]: type mismatch in closure arguments
72
100
--> $DIR/anonymous-higher-ranked-lifetime.rs:19:5
@@ -76,7 +104,11 @@ error[E0631]: type mismatch in closure arguments
76
104
| |
77
105
| expected signature of `for<'s> fn(&'s (), std::boxed::Box<for<'r> std::ops::Fn(&'r ()) + 'static>) -> _`
78
106
|
79
- = note: required by `g3`
107
+ note: required by `g3`
108
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:35:1
109
+ |
110
+ 35 | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<Fn(&())>) {}
111
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80
112
81
113
error[E0631]: type mismatch in closure arguments
82
114
--> $DIR/anonymous-higher-ranked-lifetime.rs:20:5
@@ -86,7 +118,11 @@ error[E0631]: type mismatch in closure arguments
86
118
| |
87
119
| expected signature of `for<'s> fn(&'s (), for<'r> fn(&'r ())) -> _`
88
120
|
89
- = note: required by `g4`
121
+ note: required by `g4`
122
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:36:1
123
+ |
124
+ 36 | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {}
125
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
90
126
91
127
error[E0631]: type mismatch in closure arguments
92
128
--> $DIR/anonymous-higher-ranked-lifetime.rs:21:5
@@ -96,7 +132,11 @@ error[E0631]: type mismatch in closure arguments
96
132
| |
97
133
| 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
134
|
99
- = note: required by `h1`
135
+ note: required by `h1`
136
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:39:1
137
+ |
138
+ 39 | fn h1<F>(_: F) where F: Fn(&(), Box<Fn(&())>, &(), fn(&(), &())) {}
139
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
100
140
101
141
error[E0631]: type mismatch in closure arguments
102
142
--> $DIR/anonymous-higher-ranked-lifetime.rs:22:5
@@ -106,7 +146,11 @@ error[E0631]: type mismatch in closure arguments
106
146
| |
107
147
| 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
148
|
109
- = note: required by `h2`
149
+ note: required by `h2`
150
+ --> $DIR/anonymous-higher-ranked-lifetime.rs:40:1
151
+ |
152
+ 40 | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<Fn(&())>, &'t0 (), fn(&(), &())) {}
153
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
110
154
111
155
error: aborting due to 11 previous errors
112
156
0 commit comments