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