rust-webpack-template icon indicating copy to clipboard operation
rust-webpack-template copied to clipboard

the trait `std::future::Future` is not implemented for `impl futures::future::Future`

Open jpryne opened this issue 4 years ago • 0 comments

the trait std::future::Future is not implemented for impl futures::future::Future

Steps to Reproduce

(I'm using Ubuntu MATE-64bit on a Raspberry Pi4.)

  1. Compile the template

Expected Behavior

The template compiles without error or warnings.

Actual Behavior

[INFO]: Checking for the Wasm target...
   Compiling wasm-bindgen-test-macro v0.3.17
   Compiling wasm-bindgen-futures v0.4.17
   Compiling wasm-bindgen-test v0.3.17
   Compiling rust-webpack-template v0.1.0 (/home/jack/Code/WASM/my-app)
error[E0277]: the trait bound `impl futures::future::Future: std::future::Future` is not satisfied
  --> tests/app.rs:24:1
   |
24 | #[wasm_bindgen_test(async)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::future::Future` is not implemented for `impl futures::future::Future`
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: could not compile `rust-webpack-template`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
Error: Compilation of your program failed
Caused by: failed to execute `cargo build`: exited with exit code: 101
  full command: "cargo" "build" "--tests" "--target" "wasm32-unknown-unknown"

jpryne avatar Aug 01 '20 13:08 jpryne