]> git.lizzy.rs Git - rust.git/blob - tests/ui/diagnostic-width/E0271.stderr
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / ui / diagnostic-width / E0271.stderr
1 error[E0271]: type mismatch resolving `<Result<Result<(), Result<Result<(), Result<Result<(), Option<{integer}>>, ...>>, ...>>, ...> as Future>::Error == Foo`
2   --> $DIR/E0271.rs:18:5
3    |
4 LL | /     Box::new(
5 LL | |         Ok::<_, ()>(
6 LL | |             Err::<(), _>(
7 LL | |                 Ok::<_, ()>(
8 ...  |
9 LL | |         )
10 LL | |     )
11    | |_____^ type mismatch resolving `<Result<Result<(), Result<Result<(), ...>, ...>>, ...> as Future>::Error == Foo`
12    |
13 note: expected this to be `Foo`
14   --> $DIR/E0271.rs:8:18
15    |
16 LL |     type Error = E;
17    |                  ^
18    = note: required for the cast from `Result<Result<..., ...>, ...>` to the object type `dyn Future<Error = Foo>`
19    = note: the full name for the casted type has been written to '$TEST_BUILD_DIR/diagnostic-width/E0271/E0271.long-type-hash.txt'
20
21 error: aborting due to previous error
22
23 For more information about this error, try `rustc --explain E0271`.