@@ -25,56 +25,47 @@ error[E0311]: the parameter type `G` may not live long enough
25
25
LL | fn bar<G, T>(g: G, dest: &mut T) -> impl FnOnce() + '_
26
26
| ^^^^^^^^^^^^^^^^^^
27
27
|
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
+ | ^^^^^^
36
33
37
34
error[E0311]: the parameter type `G` may not live long enough
38
35
--> $DIR/missing-lifetimes-in-signature.rs:47:45
39
36
|
40
37
LL | fn qux<'a, G: 'a, T>(g: G, dest: &mut T) -> impl FnOnce() + '_
41
38
| ^^^^^^^^^^^^^^^^^^
42
39
|
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
45
42
|
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
+ | ^^^^^^
51
45
52
46
error[E0311]: the parameter type `G` may not live long enough
53
47
--> $DIR/missing-lifetimes-in-signature.rs:59:58
54
48
|
55
49
LL | fn qux<'b, G: Get<T> + 'b, T>(g: G, dest: &mut T) -> impl FnOnce() + '_ {
56
50
| ^^^^^^^^^^^^^^^^^^
57
51
|
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
60
54
|
61
55
LL | fn qux<'b, G: Get<T> + 'b, T>(g: G, dest: &mut T) -> impl FnOnce() + '_ {
62
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^
56
+ | ^^^^^^
63
57
64
58
error[E0311]: the parameter type `G` may not live long enough
65
59
--> $DIR/missing-lifetimes-in-signature.rs:68:45
66
60
|
67
61
LL | fn bat<'a, G: 'a, T>(g: G, dest: &mut T) -> impl FnOnce() + '_ + 'a
68
62
| ^^^^^^^^^^^^^^^^^^^^^^^
69
63
|
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
72
66
|
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
+ | ^^^^^^
78
69
79
70
error[E0621]: explicit lifetime required in the type of `dest`
80
71
--> $DIR/missing-lifetimes-in-signature.rs:73:5
0 commit comments