|
1 | 1 | error[E0311]: the parameter type `U` may not live long enough
|
2 |
| - --> $DIR/async-generics-and-bounds.rs:12:28 |
| 2 | + --> $DIR/async-generics-and-bounds.rs:14:28 |
3 | 3 | |
|
4 | 4 | LL | async fn foo(&self) -> &(T, U) where T: Debug + Sized, U: Hash;
|
5 | 5 | | ^^^^^^^
|
6 | 6 | |
|
7 | 7 | note: the parameter type `U` must be valid for the anonymous lifetime defined here...
|
8 |
| - --> $DIR/async-generics-and-bounds.rs:12:18 |
| 8 | + --> $DIR/async-generics-and-bounds.rs:14:18 |
9 | 9 | |
|
10 | 10 | LL | async fn foo(&self) -> &(T, U) where T: Debug + Sized, U: Hash;
|
11 | 11 | | ^^^^^
|
12 | 12 | note: ...so that the reference type `&(T, U)` does not outlive the data it points at
|
13 |
| - --> $DIR/async-generics-and-bounds.rs:12:28 |
| 13 | + --> $DIR/async-generics-and-bounds.rs:14:28 |
14 | 14 | |
|
15 | 15 | LL | async fn foo(&self) -> &(T, U) where T: Debug + Sized, U: Hash;
|
16 | 16 | | ^^^^^^^
|
17 | 17 |
|
18 | 18 | error[E0311]: the parameter type `T` may not live long enough
|
19 |
| - --> $DIR/async-generics-and-bounds.rs:12:28 |
| 19 | + --> $DIR/async-generics-and-bounds.rs:14:28 |
20 | 20 | |
|
21 | 21 | LL | async fn foo(&self) -> &(T, U) where T: Debug + Sized, U: Hash;
|
22 | 22 | | ^^^^^^^
|
23 | 23 | |
|
24 | 24 | note: the parameter type `T` must be valid for the anonymous lifetime defined here...
|
25 |
| - --> $DIR/async-generics-and-bounds.rs:12:18 |
| 25 | + --> $DIR/async-generics-and-bounds.rs:14:18 |
26 | 26 | |
|
27 | 27 | LL | async fn foo(&self) -> &(T, U) where T: Debug + Sized, U: Hash;
|
28 | 28 | | ^^^^^
|
29 | 29 | note: ...so that the reference type `&(T, U)` does not outlive the data it points at
|
30 |
| - --> $DIR/async-generics-and-bounds.rs:12:28 |
| 30 | + --> $DIR/async-generics-and-bounds.rs:14:28 |
31 | 31 | |
|
32 | 32 | LL | async fn foo(&self) -> &(T, U) where T: Debug + Sized, U: Hash;
|
33 | 33 | | ^^^^^^^
|
|
0 commit comments