Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

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

Description

@jpryne

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions