12101111 opened issue #14192:
Test Case
N/A
Steps to Reproduce
cargo +nightly b -p wasmtime-cliExpected Results
It should compile.
Actual Results
error[E0283]: type annotations needed ╭▸ crates/wasi-http/src/p3/bindings.rs:5:5 │ 5 │ ┏ wasmtime::component::bindgen!({ 6 │ ┃ path: "src/p3/wit", 7 │ ┃ world: "wasi:http/service", 8 │ ┃ imports: { ‡ ┃ 29 │ ┃ }, 30 │ ┃ }); │ ┗━━━━━━┛ cannot infer type ╰╴ note: multiple `impl`s or `where` clauses satisfying `_: HostRequestWithStore<T>` found ╭▸ crates/wasi-http/src/p3/bindings.rs:5:5 │ 5 │ ┏ wasmtime::component::bindgen!({ 6 │ ┃ path: "src/p3/wit", 7 │ ┃ world: "wasi:http/service", 8 │ ┃ imports: { ‡ ┃ 29 │ ┃ }, 30 │ ┃ }); │ ┗━━━━━━┛ │ ⸬ crates/wasi-http/src/p3/host/types.rs:215:1 │ 215 │ impl<T> HostRequestWithStore<T> for WasiHttp { │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ├ note: cannot satisfy `for<'a> <D as HasData>::Data<'a> == _` ╰ note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0283]: type annotations needed ╭▸ crates/wasi-http/src/p3/bindings.rs:5:5 │ 5 │ ┏ wasmtime::component::bindgen!({ 6 │ ┃ path: "src/p3/wit", 7 │ ┃ world: "wasi:http/service", 8 │ ┃ imports: { ‡ ┃ 29 │ ┃ }, 30 │ ┃ }); │ ┗━━━━━━┛ cannot infer type ╰╴ note: multiple `impl`s or `where` clauses satisfying `_: HostResponseWithStore<T>` found ╭▸ crates/wasi-http/src/p3/bindings.rs:5:5 │ 5 │ ┏ wasmtime::component::bindgen!({ 6 │ ┃ path: "src/p3/wit", 7 │ ┃ world: "wasi:http/service", 8 │ ┃ imports: { ‡ ┃ 29 │ ┃ }, 30 │ ┃ }); │ ┗━━━━━━┛ │ ⸬ crates/wasi-http/src/p3/host/types.rs:473:1 │ 473 │ impl<T> HostResponseWithStore<T> for WasiHttp { │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ╰ note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) For more information about this error, try `rustc --explain E0283`. error: could not compile `wasmtime-wasi-http` (lib) due to 2 previous errorsVersions and Environment
Wasmtime version or commit: e6b33de5139d915a48127fc78b790e2d306cf896
Operating system: Linux/macOS
Architecture: x86_64/arm64
Extra Info
Link to rust tracking issue: https://github.com/rust-lang/rust/issues/160895
12101111 added the bug label to Issue #14192.
fitzgen closed issue #14192:
Test Case
N/A
Steps to Reproduce
cargo +nightly b -p wasmtime-cliExpected Results
It should compile.
Actual Results
error[E0283]: type annotations needed ╭▸ crates/wasi-http/src/p3/bindings.rs:5:5 │ 5 │ ┏ wasmtime::component::bindgen!({ 6 │ ┃ path: "src/p3/wit", 7 │ ┃ world: "wasi:http/service", 8 │ ┃ imports: { ‡ ┃ 29 │ ┃ }, 30 │ ┃ }); │ ┗━━━━━━┛ cannot infer type ╰╴ note: multiple `impl`s or `where` clauses satisfying `_: HostRequestWithStore<T>` found ╭▸ crates/wasi-http/src/p3/bindings.rs:5:5 │ 5 │ ┏ wasmtime::component::bindgen!({ 6 │ ┃ path: "src/p3/wit", 7 │ ┃ world: "wasi:http/service", 8 │ ┃ imports: { ‡ ┃ 29 │ ┃ }, 30 │ ┃ }); │ ┗━━━━━━┛ │ ⸬ crates/wasi-http/src/p3/host/types.rs:215:1 │ 215 │ impl<T> HostRequestWithStore<T> for WasiHttp { │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ├ note: cannot satisfy `for<'a> <D as HasData>::Data<'a> == _` ╰ note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0283]: type annotations needed ╭▸ crates/wasi-http/src/p3/bindings.rs:5:5 │ 5 │ ┏ wasmtime::component::bindgen!({ 6 │ ┃ path: "src/p3/wit", 7 │ ┃ world: "wasi:http/service", 8 │ ┃ imports: { ‡ ┃ 29 │ ┃ }, 30 │ ┃ }); │ ┗━━━━━━┛ cannot infer type ╰╴ note: multiple `impl`s or `where` clauses satisfying `_: HostResponseWithStore<T>` found ╭▸ crates/wasi-http/src/p3/bindings.rs:5:5 │ 5 │ ┏ wasmtime::component::bindgen!({ 6 │ ┃ path: "src/p3/wit", 7 │ ┃ world: "wasi:http/service", 8 │ ┃ imports: { ‡ ┃ 29 │ ┃ }, 30 │ ┃ }); │ ┗━━━━━━┛ │ ⸬ crates/wasi-http/src/p3/host/types.rs:473:1 │ 473 │ impl<T> HostResponseWithStore<T> for WasiHttp { │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ╰ note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) For more information about this error, try `rustc --explain E0283`. error: could not compile `wasmtime-wasi-http` (lib) due to 2 previous errorsVersions and Environment
Wasmtime version or commit: e6b33de5139d915a48127fc78b790e2d306cf896
Operating system: Linux/macOS
Architecture: x86_64/arm64
Extra Info
Link to rust tracking issue: https://github.com/rust-lang/rust/issues/160895
fitzgen commented on issue #14192:
Fixed in https://github.com/bytecodealliance/wasmtime/pull/14193
Last updated: Aug 30 2026 at 09:07 UTC