fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0271]: type mismatch resolving `<Result<Result<(), Result<Result<(), Result<Result<(), Option<{integer}>>, ...>>, ...>>, ...> as Future>::Error == Foo` 2 --> $DIR/E0271.rs:18:5 3 | 4LL | / Box::new( 5LL | | Ok::<_, ()>( 6LL | | Err::<(), _>( 7LL | | Ok::<_, ()>( 8... | 9LL | | ) 10LL | | ) 11 | |_____^ type mismatch resolving `<Result<Result<(), Result<Result<(), ...>, ...>>, ...> as Future>::Error == Foo` 12 | 13note: expected this to be `Foo` 14 --> $DIR/E0271.rs:8:18 15 | 16LL | type Error = E; 17 | ^ 18 = note: required for the cast from `Box<Result<Result<(), Result<Result<(), Result<Result<(), Option<{integer}>>, ()>>, ()>>, ()>>` to `Box<(dyn Future<Error = Foo> + 'static)>` 19 20error: aborting due to previous error 21 22For more information about this error, try `rustc --explain E0271`.