Skip to content

Instantly share code, notes, and snippets.

@tonidy
Last active June 19, 2024 04:30
Show Gist options
  • Save tonidy/e291ce9a83a0fe1854a0828b6c7c6623 to your computer and use it in GitHub Desktop.
Save tonidy/e291ce9a83a0fe1854a0828b6c7c6623 to your computer and use it in GitHub Desktop.
error[E0277]: the trait bound `AnalysedType: wasm_wave::wasm::WasmType` is not satisfied
--> /Users/toni/.cargo/registry/src/index.crates.io-6f17d22bba15001f/golem-wasm-rpc-0.0.26/src/text.rs:7:17
|
7 | type Type = AnalysedType;
| ^^^^^^^^^^^^ the trait `wasm_wave::wasm::WasmType` is not implemented for `AnalysedType`
|
= help: the following other types implement trait `wasm_wave::wasm::WasmType`:
wasm_wave::value::Type
wasmtime::ValType
wasmtime::component::Type
note: required by a bound in `wasm_wave::wasm::WasmValue::Type`
--> /Users/toni/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-wave-0.4.0/src/wasm/val.rs:14:16
|
14 | type Type: WasmType;
| ^^^^^^^^ required by this bound in `WasmValue::Type`
error[E0599]: no method named `kind` found for reference `&AnalysedType` in the current scope
--> /Users/toni/.cargo/registry/src/index.crates.io-6f17d22bba15001f/golem-wasm-rpc-0.0.26/src/text.rs:75:26
|
75 | kind: ty.kind(),
| ^^^^ method not found in `&AnalysedType`
|
= help: items from traits can only be used if the trait is in scope
help: trait `WasmType` which provides `kind` is implemented but not in scope; perhaps you want to import it
|
1 + use wasm_wave::wasm::ty::WasmType;
|
error[E0599]: no method named `kind` found for reference `&AnalysedType` in the current scope
--> /Users/toni/.cargo/registry/src/index.crates.io-6f17d22bba15001f/golem-wasm-rpc-0.0.26/src/text.rs:95:26
|
95 | kind: ty.kind(),
| ^^^^ method not found in `&AnalysedType`
|
= help: items from traits can only be used if the trait is in scope
help: trait `WasmType` which provides `kind` is implemented but not in scope; perhaps you want to import it
|
1 + use wasm_wave::wasm::ty::WasmType;
|
error[E0599]: no method named `kind` found for reference `&AnalysedType` in the current scope
--> /Users/toni/.cargo/registry/src/index.crates.io-6f17d22bba15001f/golem-wasm-rpc-0.0.26/src/text.rs:112:26
|
112 | kind: ty.kind(),
| ^^^^ method not found in `&AnalysedType`
|
= help: items from traits can only be used if the trait is in scope
help: trait `WasmType` which provides `kind` is implemented but not in scope; perhaps you want to import it
|
1 + use wasm_wave::wasm::ty::WasmType;
|
error[E0599]: no method named `kind` found for reference `&AnalysedType` in the current scope
--> /Users/toni/.cargo/registry/src/index.crates.io-6f17d22bba15001f/golem-wasm-rpc-0.0.26/src/text.rs:145:26
|
145 | kind: ty.kind(),
| ^^^^ method not found in `&AnalysedType`
|
= help: items from traits can only be used if the trait is in scope
help: trait `WasmType` which provides `kind` is implemented but not in scope; perhaps you want to import it
|
1 + use wasm_wave::wasm::ty::WasmType;
|
error[E0599]: no method named `kind` found for reference `&AnalysedType` in the current scope
--> /Users/toni/.cargo/registry/src/index.crates.io-6f17d22bba15001f/golem-wasm-rpc-0.0.26/src/text.rs:163:26
|
163 | kind: ty.kind(),
| ^^^^ method not found in `&AnalysedType`
|
= help: items from traits can only be used if the trait is in scope
help: trait `WasmType` which provides `kind` is implemented but not in scope; perhaps you want to import it
|
1 + use wasm_wave::wasm::ty::WasmType;
|
error[E0599]: no method named `kind` found for reference `&AnalysedType` in the current scope
--> /Users/toni/.cargo/registry/src/index.crates.io-6f17d22bba15001f/golem-wasm-rpc-0.0.26/src/text.rs:193:26
|
193 | kind: ty.kind(),
| ^^^^ method not found in `&AnalysedType`
|
= help: items from traits can only be used if the trait is in scope
help: trait `WasmType` which provides `kind` is implemented but not in scope; perhaps you want to import it
|
1 + use wasm_wave::wasm::ty::WasmType;
|
Compiling wasm-encoder v0.201.0
error[E0599]: no method named `kind` found for reference `&AnalysedType` in the current scope
--> /Users/toni/.cargo/registry/src/index.crates.io-6f17d22bba15001f/golem-wasm-rpc-0.0.26/src/text.rs:222:26
|
222 | kind: ty.kind(),
| ^^^^ method not found in `&AnalysedType`
|
= help: items from traits can only be used if the trait is in scope
help: trait `WasmType` which provides `kind` is implemented but not in scope; perhaps you want to import it
|
1 + use wasm_wave::wasm::ty::WasmType;
|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment