]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/proper-span-for-type-error.stderr
Rollup merge of #106971 - oli-obk:tait_error, r=davidtwco
[rust.git] / tests / ui / async-await / proper-span-for-type-error.stderr
1 error[E0308]: mismatched types
2   --> $DIR/proper-span-for-type-error.rs:8:5
3    |
4 LL |     a().await
5    |     ^^^^^^^^^ expected enum `Result`, found `()`
6    |
7    = note:   expected enum `Result<(), i32>`
8            found unit type `()`
9 help: try adding an expression at the end of the block
10    |
11 LL ~     a().await;
12 LL ~     Ok(())
13    |
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0308`.