Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jpryne opened this issue Aug 1, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@jpryne
Copy link

jpryne commented Aug 1, 2020

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 jpryne added the bug Something isn't working label Aug 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant