fork/rust

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

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

master
605 B17 linesraw
1error[E0271]: type mismatch resolving `<{async block@$DIR/async.rs:12:17: 12:25} as Future>::Output == i32`
2  --> $DIR/async.rs:12:17
3   |
4LL |     needs_async(async {});
5   |     ----------- ^^^^^^^^ types differ
6   |     |
7   |     required by a bound introduced by this call
8   |
9note: required by a bound in `needs_async`
10  --> $DIR/async.rs:8:31
11   |
12LL | fn needs_async(_: impl Future<Output = i32>) {}
13   |                               ^^^^^^^^^^^^ required by this bound in `needs_async`
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0271`.