summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/proper-span-for-type-error.stderr
blob: 25f05156ce2bc57b4d60a55443a3dac2e8107b6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0308]: mismatched types
  --> $DIR/proper-span-for-type-error.rs:8:5
   |
LL |     a().await
   |     ^^^^^^^^^ expected enum `Result`, found `()`
   |
   = note:   expected enum `Result<(), i32>`
           found unit type `()`
help: try adding an expression at the end of the block
   |
LL ~     a().await;
LL ~     Ok(())
   |

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.