fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0277]: the trait bound `(): std::future::Future` is not satisfied 2 --> $DIR/async-error-span.rs:7:20 3 | 4LL | fn get_future() -> impl Future<Output = ()> { 5 | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `()` 6LL | 7LL | panic!() 8 | -------- this returned value is of type `!` 9 | 10 = note: the return type of a function must have a statically known size 11 12error[E0698]: type inside `async fn` body must be known in this context 13 --> $DIR/async-error-span.rs:13:9 14 | 15LL | let a; 16 | ^ cannot infer type 17 | 18note: the type is part of the `async fn` body because of this `await` 19 --> $DIR/async-error-span.rs:14:5 20 | 21LL | get_future().await; 22 | ^^^^^^^^^^^^^^^^^^ 23 24error: aborting due to 2 previous errors 25 26Some errors have detailed explanations: E0277, E0698. 27For more information about an error, try `rustc --explain E0277`.