]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/new-solver/async.fail.stderr
Rollup merge of #107446 - clubby789:rustc-parse-diag-migrate, r=compiler-errors
[rust.git] / tests / ui / traits / new-solver / async.fail.stderr
1 error[E0271]: expected `[async block@$DIR/async.rs:12:17: 12:25]` to be a future that resolves to `i32`, but it resolves to `()`
2   --> $DIR/async.rs:12:17
3    |
4 LL |     needs_async(async {});
5    |     ----------- ^^^^^^^^ expected `i32`, found `()`
6    |     |
7    |     required by a bound introduced by this call
8    |
9 note: required by a bound in `needs_async`
10   --> $DIR/async.rs:8:31
11    |
12 LL | fn needs_async(_: impl Future<Output = i32>) {}
13    |                               ^^^^^^^^^^^^ required by this bound in `needs_async`
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0271`.