blob: 592ef7faf81379f4b54c619bf74621548504a66b (
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 previous error
For more information about this error, try `rustc --explain E0308`.
|