2021-02-12 19:41:13 -06:00
Compiling futuretest v0.1.0 (/mnt/d/GIT/futuretest)
error[E0271]: type mismatch resolving `<Failed<(), String> as futures::IntoFuture>::Error == &str`
2017-12-09 13:13:51 -06:00
--> src/main.rs:13:10
2017-12-09 12:58:25 -06:00
|
2017-12-09 13:13:51 -06:00
13 | .and_then(|_|
2021-02-12 19:41:13 -06:00
| ^^^^^^^^ expected struct `String`, found `&str`
2017-12-09 12:58:25 -06:00
2021-02-12 19:41:13 -06:00
error[E0271]: type mismatch resolving `<Failed<(), String> as futures::IntoFuture>::Error == &str`
2017-12-09 13:13:51 -06:00
--> src/main.rs:20:10
2017-12-09 12:58:25 -06:00
|
2017-12-09 13:13:51 -06:00
20 | core.run(f).unwrap();
2021-02-12 19:41:13 -06:00
| ^^^ expected struct `String`, found `&str`
2017-12-09 12:58:25 -06:00
|
2021-02-12 19:41:13 -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
2021-02-12 19:41:13 -06:00
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.