]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/proper-span-for-type-error.stderr
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / 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`.