2025-01-31 03:26:56 +00:00
|
|
|
error[E0271]: type mismatch resolving `<Result<..., ()> as Future>::Error == Foo`
|
2025-02-11 20:38:58 +08:00
|
|
|
--> $DIR/E0271.rs:19:5
|
2023-01-08 18:41:09 +00:00
|
|
|
|
|
|
|
|
|
LL | / Box::new(
|
|
|
|
|
LL | | Ok::<_, ()>(
|
|
|
|
|
LL | | Err::<(), _>(
|
|
|
|
|
LL | | Ok::<_, ()>(
|
|
|
|
|
... |
|
|
|
|
|
LL | | )
|
2025-01-31 03:26:56 +00:00
|
|
|
| |_____^ type mismatch resolving `<Result<..., ()> as Future>::Error == Foo`
|
2023-01-08 18:41:09 +00:00
|
|
|
|
|
|
|
|
|
note: expected this to be `Foo`
|
2025-02-11 20:38:58 +08:00
|
|
|
--> $DIR/E0271.rs:9:18
|
2023-01-08 18:41:09 +00:00
|
|
|
|
|
|
|
|
|
LL | type Error = E;
|
|
|
|
|
| ^
|
2025-01-31 03:26:56 +00:00
|
|
|
= note: required for the cast from `Box<Result<..., ()>>` to `Box<...>`
|
2025-02-11 20:38:58 +08:00
|
|
|
= note: the full name for the type has been written to '$TEST_BUILD_DIR/E0271.long-type-$LONG_TYPE_HASH.txt'
|
2025-01-31 03:26:56 +00:00
|
|
|
= note: consider using `--verbose` to print the full type name to the console
|
2023-01-08 18:41:09 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2023-01-08 18:41:09 +00:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0271`.
|