2025-01-31 03:26:56 +00:00
|
|
|
error[E0271]: type mismatch resolving `<Result<..., ()> as Future>::Error == Foo`
|
2025-02-11 12:38:58 +00:00
|
|
|
╭▸ $DIR/E0271.rs:19:5
|
2024-06-17 15:14:07 +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`
|
2024-06-17 15:14:07 +00:00
|
|
|
╰╴
|
|
|
|
note: expected this to be `Foo`
|
2025-02-11 12:38:58 +00:00
|
|
|
╭▸ $DIR/E0271.rs:9:18
|
2024-06-17 15:14:07 +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 12:38:58 +00: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
|
2024-06-17 15:14:07 +00:00
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0271`.
|