blob: 2c72a8eb5f643a57a235e11fbe1b2f8775d9fec6 (
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 `Result<(), i32>`, 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 1 previous error
For more information about this error, try `rustc --explain E0308`.
|