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