fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
718 B24 linesraw
1error[E0277]: `()` is not a future
2  --> $DIR/async-error-span.rs:7:20
3   |
4LL | fn get_future() -> impl Future<Output = ()> {
5   |                    ^^^^^^^^^^^^^^^^^^^^^^^^ `()` is not a future
6   |
7   = help: the trait `Future` is not implemented for `()`
8   = note: () must be a future or must implement `IntoFuture` to be awaited
9
10error[E0282]: type annotations needed
11  --> $DIR/async-error-span.rs:13:9
12   |
13LL |     let a;
14   |         ^
15   |
16help: consider giving `a` an explicit type
17   |
18LL |     let a: /* Type */;
19   |          ++++++++++++
20
21error: aborting due to 2 previous errors
22
23Some errors have detailed explanations: E0277, E0282.
24For more information about an error, try `rustc --explain E0277`.