]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/proper-span-for-type-error.stderr
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[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 `Result<(), i32>`, 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`.