futuretest/cargo.out

22 lines
976 B
Plaintext

Compiling futuretest v0.1.0 (/mnt/d/GIT/futuretest)
error[E0271]: type mismatch resolving `<Failed<(), String> as futures::IntoFuture>::Error == &str`
--> src/main.rs:13:10
2017-12-09 12:58:25 -06:00
|
13 | .and_then(|_|
| ^^^^^^^^ expected struct `String`, found `&str`
2017-12-09 12:58:25 -06:00
error[E0271]: type mismatch resolving `<Failed<(), String> as futures::IntoFuture>::Error == &str`
--> src/main.rs:20:10
2017-12-09 12:58:25 -06:00
|
20 | core.run(f).unwrap();
| ^^^ expected struct `String`, found `&str`
2017-12-09 12:58:25 -06:00
|
= note: required because of the requirements on the impl of `futures::Future` for `futures::AndThen<futures::Map<futures::MapErr<Failed<(), ()>, [closure@src/main.rs:11:18: 11:43]>, [closure@src/main.rs:12:14: 12:67]>, Failed<(), String>, [closure@src/main.rs:13:19: 16:14]>`
2017-12-09 12:58:25 -06:00
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0271`.
error: could not compile `futuretest`
2017-12-09 12:58:25 -06:00
To learn more, run the command again with --verbose.