| --------------------------------- ^^ expected u8, found ()
| |
| implicitly returns `()` as its body has no tail or `return` expression
- |
- = note: expected type `u8`
- found type `()`
error[E0271]: type mismatch resolving `<impl std::future::Future as std::future::Future>::Output == ()`
--> $DIR/async-block-control-flow-static-semantics.rs:18:39
|
LL | let _: &dyn Future<Output = ()> = █
- | ^^^^^^ expected u8, found ()
+ | ^^^^^^ expected (), found u8
|
- = note: expected type `u8`
- found type `()`
= note: required for the cast to the object type `dyn std::future::Future<Output = ()>`
error[E0308]: mismatched types
LL | |
LL | | }
| |_^ expected u8, found ()
- |
- = note: expected type `u8`
- found type `()`
error[E0271]: type mismatch resolving `<impl std::future::Future as std::future::Future>::Output == ()`
--> $DIR/async-block-control-flow-static-semantics.rs:27:39
|
LL | let _: &dyn Future<Output = ()> = █
- | ^^^^^^ expected u8, found ()
+ | ^^^^^^ expected (), found u8
|
- = note: expected type `u8`
- found type `()`
= note: required for the cast to the object type `dyn std::future::Future<Output = ()>`
error[E0308]: mismatched types
| |
| implicitly returns `()` as its body has no tail or `return` expression
|
- = note: expected type `std::result::Result<u8, MyErr>`
- found type `()`
+ = note: expected enum `std::result::Result<u8, MyErr>`
+ found unit type `()`
error[E0308]: mismatched types
--> $DIR/async-block-control-flow-static-semantics.rs:57:50
| |
| implicitly returns `()` as its body has no tail or `return` expression
|
- = note: expected type `std::result::Result<u8, MyErr>`
- found type `()`
+ = note: expected enum `std::result::Result<u8, MyErr>`
+ found unit type `()`
error: aborting due to 8 previous errors