|
1 | 1 | error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
|
2 |
| - --> $DIR/async-associated-types.rs:17:43 |
| 2 | + --> $DIR/async-associated-types.rs:19:43 |
3 | 3 | |
|
4 | 4 | LL | async fn foo(&'a self, key: &'b T) -> (&'a U, &'b T) {
|
5 | 5 | | ^^^^^^^^^^^^^^
|
6 | 6 | |
|
7 | 7 | note: first, the lifetime cannot outlive the lifetime `'a` as defined here...
|
8 |
| - --> $DIR/async-associated-types.rs:14:6 |
| 8 | + --> $DIR/async-associated-types.rs:16:6 |
9 | 9 | |
|
10 | 10 | LL | impl<'a, 'b, T: Debug + Sized + 'b, U: 'a> MyTrait<'a, 'b, T> for U {
|
11 | 11 | | ^^
|
12 | 12 | note: ...so that the types are compatible
|
13 |
| - --> $DIR/async-associated-types.rs:17:43 |
| 13 | + --> $DIR/async-associated-types.rs:19:43 |
14 | 14 | |
|
15 | 15 | LL | async fn foo(&'a self, key: &'b T) -> (&'a U, &'b T) {
|
16 | 16 | | ^^^^^^^^^^^^^^
|
17 | 17 | = note: expected `(&'a U, &'b T)`
|
18 | 18 | found `(&U, &T)`
|
19 | 19 | = note: but, the lifetime must be valid for the static lifetime...
|
20 | 20 | note: ...so that the types are compatible
|
21 |
| - --> $DIR/async-associated-types.rs:17:43 |
| 21 | + --> $DIR/async-associated-types.rs:19:43 |
22 | 22 | |
|
23 | 23 | LL | async fn foo(&'a self, key: &'b T) -> (&'a U, &'b T) {
|
24 | 24 | | ^^^^^^^^^^^^^^
|
25 | 25 | = note: expected `MyTrait<'static, 'static, T>`
|
26 | 26 | found `MyTrait<'_, '_, T>`
|
27 | 27 |
|
28 | 28 | error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'b` due to conflicting requirements
|
29 |
| - --> $DIR/async-associated-types.rs:17:43 |
| 29 | + --> $DIR/async-associated-types.rs:19:43 |
30 | 30 | |
|
31 | 31 | LL | async fn foo(&'a self, key: &'b T) -> (&'a U, &'b T) {
|
32 | 32 | | ^^^^^^^^^^^^^^
|
33 | 33 | |
|
34 | 34 | note: first, the lifetime cannot outlive the lifetime `'b` as defined here...
|
35 |
| - --> $DIR/async-associated-types.rs:14:10 |
| 35 | + --> $DIR/async-associated-types.rs:16:10 |
36 | 36 | |
|
37 | 37 | LL | impl<'a, 'b, T: Debug + Sized + 'b, U: 'a> MyTrait<'a, 'b, T> for U {
|
38 | 38 | | ^^
|
39 | 39 | note: ...so that the types are compatible
|
40 |
| - --> $DIR/async-associated-types.rs:17:43 |
| 40 | + --> $DIR/async-associated-types.rs:19:43 |
41 | 41 | |
|
42 | 42 | LL | async fn foo(&'a self, key: &'b T) -> (&'a U, &'b T) {
|
43 | 43 | | ^^^^^^^^^^^^^^
|
44 | 44 | = note: expected `(&'a U, &'b T)`
|
45 | 45 | found `(&U, &T)`
|
46 | 46 | = note: but, the lifetime must be valid for the static lifetime...
|
47 | 47 | note: ...so that the types are compatible
|
48 |
| - --> $DIR/async-associated-types.rs:17:43 |
| 48 | + --> $DIR/async-associated-types.rs:19:43 |
49 | 49 | |
|
50 | 50 | LL | async fn foo(&'a self, key: &'b T) -> (&'a U, &'b T) {
|
51 | 51 | | ^^^^^^^^^^^^^^
|
|
0 commit comments