@@ -25,56 +25,47 @@ error[E0311]: the parameter type `G` may not live long enough
2525LL | fn bar<G, T>(g: G, dest: &mut T) -> impl FnOnce() + '_
2626 | ^^^^^^^^^^^^^^^^^^
2727 |
28- note: the parameter type `G` must be valid for the anonymous lifetime #1 defined on the function body at 25:1...
29- --> $DIR/missing-lifetimes-in-signature.rs:25:1
30- |
31- LL | / fn bar<G, T>(g: G, dest: &mut T) -> impl FnOnce() + '_
32- LL | |
33- LL | | where
34- LL | | G: Get<T>
35- | |_____________^
28+ note: the parameter type `G` must be valid for the anonymous lifetime defined on the function body at 25:26...
29+ --> $DIR/missing-lifetimes-in-signature.rs:25:26
30+ |
31+ LL | fn bar<G, T>(g: G, dest: &mut T) -> impl FnOnce() + '_
32+ | ^^^^^^
3633
3734error[E0311]: the parameter type `G` may not live long enough
3835 --> $DIR/missing-lifetimes-in-signature.rs:47:45
3936 |
4037LL | fn qux<'a, G: 'a, T>(g: G, dest: &mut T) -> impl FnOnce() + '_
4138 | ^^^^^^^^^^^^^^^^^^
4239 |
43- note: the parameter type `G` must be valid for the anonymous lifetime #1 defined on the function body at 47:1 ...
44- --> $DIR/missing-lifetimes-in-signature.rs:47:1
40+ note: the parameter type `G` must be valid for the anonymous lifetime defined on the function body at 47:34 ...
41+ --> $DIR/missing-lifetimes-in-signature.rs:47:34
4542 |
46- LL | / fn qux<'a, G: 'a, T>(g: G, dest: &mut T) -> impl FnOnce() + '_
47- LL | |
48- LL | | where
49- LL | | G: Get<T>
50- | |_____________^
43+ LL | fn qux<'a, G: 'a, T>(g: G, dest: &mut T) -> impl FnOnce() + '_
44+ | ^^^^^^
5145
5246error[E0311]: the parameter type `G` may not live long enough
5347 --> $DIR/missing-lifetimes-in-signature.rs:59:58
5448 |
5549LL | fn qux<'b, G: Get<T> + 'b, T>(g: G, dest: &mut T) -> impl FnOnce() + '_ {
5650 | ^^^^^^^^^^^^^^^^^^
5751 |
58- note: the parameter type `G` must be valid for the anonymous lifetime #1 defined on the method body at 59:5 ...
59- --> $DIR/missing-lifetimes-in-signature.rs:59:5
52+ note: the parameter type `G` must be valid for the anonymous lifetime defined on the method body at 59:47 ...
53+ --> $DIR/missing-lifetimes-in-signature.rs:59:47
6054 |
6155LL | fn qux<'b, G: Get<T> + 'b, T>(g: G, dest: &mut T) -> impl FnOnce() + '_ {
62- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^
56+ | ^^^^^^
6357
6458error[E0311]: the parameter type `G` may not live long enough
6559 --> $DIR/missing-lifetimes-in-signature.rs:68:45
6660 |
6761LL | fn bat<'a, G: 'a, T>(g: G, dest: &mut T) -> impl FnOnce() + '_ + 'a
6862 | ^^^^^^^^^^^^^^^^^^^^^^^
6963 |
70- note: the parameter type `G` must be valid for the anonymous lifetime #1 defined on the function body at 68:1 ...
71- --> $DIR/missing-lifetimes-in-signature.rs:68:1
64+ note: the parameter type `G` must be valid for the anonymous lifetime defined on the function body at 68:34 ...
65+ --> $DIR/missing-lifetimes-in-signature.rs:68:34
7266 |
73- LL | / fn bat<'a, G: 'a, T>(g: G, dest: &mut T) -> impl FnOnce() + '_ + 'a
74- LL | |
75- LL | | where
76- LL | | G: Get<T>
77- | |_____________^
67+ LL | fn bat<'a, G: 'a, T>(g: G, dest: &mut T) -> impl FnOnce() + '_ + 'a
68+ | ^^^^^^
7869
7970error[E0621]: explicit lifetime required in the type of `dest`
8071 --> $DIR/missing-lifetimes-in-signature.rs:73:5
0 commit comments