2024-02-29 06:21:20 -06:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-78722-2.rs:16:20
|
2023-06-15 04:41:14 -05:00
|
|
|
|
|
2024-02-29 06:21:20 -06:00
|
|
|
LL | type F = impl core::future::Future<Output = u8>;
|
|
|
|
| -------------------------------------- the expected future
|
|
|
|
...
|
2023-06-15 04:41:14 -05:00
|
|
|
LL | let f: F = async { 1 };
|
2024-02-29 06:21:20 -06:00
|
|
|
| - ^^^^^^^^^^^ expected future, found `async` block
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2023-06-15 04:41:14 -05:00
|
|
|
|
|
2024-02-29 06:21:20 -06:00
|
|
|
= note: expected opaque type `F`
|
2024-06-27 13:56:57 -05:00
|
|
|
found `async` block `{async block@$DIR/issue-78722-2.rs:16:20: 16:25}`
|
2023-10-26 06:36:49 -05:00
|
|
|
|
2024-08-21 19:55:09 -05:00
|
|
|
error[E0271]: expected `{async block@$DIR/issue-78722-2.rs:13:13: 13:18}` to be a future that resolves to `u8`, but it resolves to `()`
|
|
|
|
--> $DIR/issue-78722-2.rs:11:30
|
|
|
|
|
|
|
|
|
LL | fn concrete_use() -> F {
|
2024-10-16 12:44:56 -05:00
|
|
|
| ^ expected `u8`, found `()`
|
2024-08-21 19:55:09 -05:00
|
|
|
|
2024-02-29 06:21:20 -06:00
|
|
|
error: aborting due to 2 previous errors
|
2023-06-15 04:41:14 -05:00
|
|
|
|
2024-02-29 06:21:20 -06:00
|
|
|
Some errors have detailed explanations: E0271, E0308.
|
2023-06-15 04:41:14 -05:00
|
|
|
For more information about an error, try `rustc --explain E0271`.
|