@@ -4,7 +4,7 @@ error: implementation of `FnOnce` is not general enough
4
4
LL | type Bar = impl Baz<Self, Self>;
5
5
| ^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough
6
6
|
7
- = note: `[ closure@$DIR/issue-57611-trait-alias.rs:25:9: 25:14] ` must implement `FnOnce<(&'1 X,)>`, for any lifetime `'1`...
7
+ = note: closure with signature `fn(&'2 X) -> &X ` must implement `FnOnce<(&'1 X,)>`, for any lifetime `'1`...
8
8
= note: ...but it actually implements `FnOnce<(&'2 X,)>`, for some specific lifetime `'2`
9
9
10
10
error[E0308]: mismatched types
@@ -27,7 +27,7 @@ error: implementation of `FnOnce` is not general enough
27
27
LL | type Bar = impl Baz<Self, Self>;
28
28
| ^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough
29
29
|
30
- = note: `[ closure@$DIR/issue-57611-trait-alias.rs:25:9: 25:14] ` must implement `FnOnce<(&'1 X,)>`, for any lifetime `'1`...
30
+ = note: closure with signature `fn(&'2 X) -> &'2 X ` must implement `FnOnce<(&'1 X,)>`, for any lifetime `'1`...
31
31
= note: ...but it actually implements `FnOnce<(&'2 X,)>`, for some specific lifetime `'2`
32
32
33
33
error[E0308]: mismatched types
@@ -50,7 +50,7 @@ error: implementation of `FnOnce` is not general enough
50
50
LL | type Bar = impl Baz<Self, Self>;
51
51
| ^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough
52
52
|
53
- = note: `[ closure@$DIR/issue-57611-trait-alias.rs:25:9: 25:14] ` must implement `FnOnce<(&'1 X,)>`, for any lifetime `'1`...
53
+ = note: closure with signature `fn(&'2 X) -> &'2 X ` must implement `FnOnce<(&'1 X,)>`, for any lifetime `'1`...
54
54
= note: ...but it actually implements `FnOnce<(&'2 X,)>`, for some specific lifetime `'2`
55
55
56
56
error: aborting due to 5 previous errors
0 commit comments