]> git.proxmox.com Git - rustc.git/blob - tests/ui/async-await/in-trait/async-generics.next.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / async-await / in-trait / async-generics.next.stderr
1 error[E0311]: the parameter type `U` may not live long enough
2 --> $DIR/async-generics.rs:11:28
3 |
4 LL | async fn foo(&self) -> &(T, U);
5 | ^^^^^^^
6 |
7 note: the parameter type `U` must be valid for the anonymous lifetime defined here...
8 --> $DIR/async-generics.rs:11:18
9 |
10 LL | async fn foo(&self) -> &(T, U);
11 | ^^^^^
12 note: ...so that the reference type `&(T, U)` does not outlive the data it points at
13 --> $DIR/async-generics.rs:11:28
14 |
15 LL | async fn foo(&self) -> &(T, U);
16 | ^^^^^^^
17
18 error[E0311]: the parameter type `T` may not live long enough
19 --> $DIR/async-generics.rs:11:28
20 |
21 LL | async fn foo(&self) -> &(T, U);
22 | ^^^^^^^
23 |
24 note: the parameter type `T` must be valid for the anonymous lifetime defined here...
25 --> $DIR/async-generics.rs:11:18
26 |
27 LL | async fn foo(&self) -> &(T, U);
28 | ^^^^^
29 note: ...so that the reference type `&(T, U)` does not outlive the data it points at
30 --> $DIR/async-generics.rs:11:28
31 |
32 LL | async fn foo(&self) -> &(T, U);
33 | ^^^^^^^
34
35 error: aborting due to 2 previous errors
36
37 For more information about this error, try `rustc --explain E0311`.