[INFO] fetching crate parity-scale-codec 3.7.5... [INFO] testing parity-scale-codec-3.7.5 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate parity-scale-codec 3.7.5 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate parity-scale-codec 3.7.5 [INFO] finished tweaking crates.io crate parity-scale-codec 3.7.5 [INFO] tweaked toml for crates.io crate parity-scale-codec 3.7.5 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate parity-scale-codec 3.7.5 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 149 packages to latest compatible versions [INFO] [stderr] Adding criterion v0.5.1 (available: v0.7.0) [INFO] [stderr] Adding generic-array v0.14.7 (available: v1.2.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b7528a1c7aea4eac0cdbb414240ac2cc26658d6f46b7c7ad721a873fa6f019dd [INFO] running `Command { std: "docker" "start" "-a" "b7528a1c7aea4eac0cdbb414240ac2cc26658d6f46b7c7ad721a873fa6f019dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b7528a1c7aea4eac0cdbb414240ac2cc26658d6f46b7c7ad721a873fa6f019dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7528a1c7aea4eac0cdbb414240ac2cc26658d6f46b7c7ad721a873fa6f019dd", kill_on_drop: false }` [INFO] [stdout] b7528a1c7aea4eac0cdbb414240ac2cc26658d6f46b7c7ad721a873fa6f019dd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 46ee715a6f221ac339241b81b62d8ff3fbeea4555ffcbc2a8f119d488a3c6e8d [INFO] running `Command { std: "docker" "start" "-a" "46ee715a6f221ac339241b81b62d8ff3fbeea4555ffcbc2a8f119d488a3c6e8d", kill_on_drop: false }` [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling byte-slice-cast v1.2.3 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling const_format v0.2.34 [INFO] [stderr] Compiling parity-scale-codec v3.7.5 (/opt/rustwide/workdir) [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.3 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.47s [INFO] running `Command { std: "docker" "inspect" "46ee715a6f221ac339241b81b62d8ff3fbeea4555ffcbc2a8f119d488a3c6e8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46ee715a6f221ac339241b81b62d8ff3fbeea4555ffcbc2a8f119d488a3c6e8d", kill_on_drop: false }` [INFO] [stdout] 46ee715a6f221ac339241b81b62d8ff3fbeea4555ffcbc2a8f119d488a3c6e8d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 56c15280702d9ecae18993d1e74535aef3a3ca17753d05890d147563f4792e33 [INFO] running `Command { std: "docker" "start" "-a" "56c15280702d9ecae18993d1e74535aef3a3ca17753d05890d147563f4792e33", kill_on_drop: false }` [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling target-triple v0.1.4 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling clap_builder v4.5.46 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling wait-timeout v0.2.1 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling toml_parser v1.0.2 [INFO] [stderr] Compiling tempfile v3.21.0 [INFO] [stderr] Compiling toml_writer v1.0.2 [INFO] [stderr] Compiling bit-vec v0.8.0 [INFO] [stderr] Compiling bit-set v0.8.0 [INFO] [stderr] Compiling rusty-fork v0.3.0 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling clap v4.5.46 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling rand_xorshift v0.4.0 [INFO] [stderr] Compiling enumflags2_derive v0.7.12 [INFO] [stderr] Compiling unarray v0.1.4 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling proptest v1.7.0 [INFO] [stderr] Compiling enumflags2 v0.7.12 [INFO] [stderr] Compiling env_logger v0.8.4 [INFO] [stderr] Compiling quickcheck v1.0.3 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling serde_spanned v1.0.0 [INFO] [stderr] Compiling toml_datetime v0.7.0 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling parity-scale-codec v3.7.5 (/opt/rustwide/workdir) [INFO] [stderr] Compiling toml v0.9.5 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling trybuild v1.0.110 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/type_inference.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use parity_scale_codec_derive::{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `parity_scale_codec_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 18 - use parity_scale_codec_derive::{ [INFO] [stdout] 18 + use parity_scale_codec::{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/skip.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use parity_scale_codec_derive::{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `parity_scale_codec_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 2 - use parity_scale_codec_derive::{ [INFO] [stdout] 2 + use parity_scale_codec::{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/skip.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | use parity_scale_codec_derive::{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `parity_scale_codec_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 15 - use parity_scale_codec_derive::{ [INFO] [stdout] 15 + use parity_scale_codec::{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/skip.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/skip.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/skip.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | C(#[codec(skip)] T, u32), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/skip.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/skip.rs:39:42 [INFO] [stdout] | [INFO] [stdout] 39 | struct StructUnnamed(#[codec(skip)] T, u32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/skip.rs:69:6 [INFO] [stdout] | [INFO] [stdout] 69 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `parity-scale-codec` (test "type_inference") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/variant_number.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use parity_scale_codec_derive::Encode as DeriveEncode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `parity_scale_codec_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 2 - use parity_scale_codec_derive::Encode as DeriveEncode; [INFO] [stdout] 2 + use parity_scale_codec::Encode as DeriveEncode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for enum `enum_struct_test::Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:47:16 [INFO] [stdout] | [INFO] [stdout] 20 | enum Enum { [INFO] [stdout] | ---------------------------------------------------- method `encode` not found for this enum because it doesn't satisfy `::Target = _`, `enum_struct_test::Enum: Encode` or `enum_struct_test::Enum: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 47 | assert_eq!(ea.encode(), Vec::new()); [INFO] [stdout] | ^^^^^^ method cannot be called on `enum_struct_test::Enum` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `enum_struct_test::Enum: Encode` [INFO] [stdout] `enum_struct_test::Enum: WrapperTypeEncode` [INFO] [stdout] which is required by `enum_struct_test::Enum: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/clippy.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use parity_scale_codec_derive::{Decode, DecodeWithMemTracking, Encode}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `parity_scale_codec_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 19 - use parity_scale_codec_derive::{Decode, DecodeWithMemTracking, Encode}; [INFO] [stdout] 19 + use parity_scale_codec::{Decode, DecodeWithMemTracking, Encode}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for enum `enum_struct_test::Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:49:34 [INFO] [stdout] | [INFO] [stdout] 20 | enum Enum { [INFO] [stdout] | ---------------------------------------------------- method `encode` not found for this enum because it doesn't satisfy `::Target = _`, `enum_struct_test::Enum: Encode` or `enum_struct_test::Enum: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 49 | let mut eb_encoded: &[u8] = &eb.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `enum_struct_test::Enum` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `enum_struct_test::Enum: Encode` [INFO] [stdout] `enum_struct_test::Enum: WrapperTypeEncode` [INFO] [stdout] which is required by `enum_struct_test::Enum: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/chain-error.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use parity_scale_codec_derive::Decode as DeriveDecode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `parity_scale_codec_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 16 - use parity_scale_codec_derive::Decode as DeriveDecode; [INFO] [stdout] 16 + use parity_scale_codec::Decode as DeriveDecode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for enum `enum_struct_test::Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:50:34 [INFO] [stdout] | [INFO] [stdout] 20 | enum Enum { [INFO] [stdout] | ---------------------------------------------------- method `encode` not found for this enum because it doesn't satisfy `::Target = _`, `enum_struct_test::Enum: Encode` or `enum_struct_test::Enum: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 50 | let mut ec_encoded: &[u8] = &ec.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `enum_struct_test::Enum` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `enum_struct_test::Enum: Encode` [INFO] [stdout] `enum_struct_test::Enum: WrapperTypeEncode` [INFO] [stdout] which is required by `enum_struct_test::Enum: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `parity-scale-codec` (test "clippy") due to 1 previous error [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/single_field_struct_encoding.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use parity_scale_codec_derive::{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `parity_scale_codec_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 2 - use parity_scale_codec_derive::{ [INFO] [stdout] 2 + use parity_scale_codec::{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `StructNamed`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:51:34 [INFO] [stdout] | [INFO] [stdout] 32 | struct StructNamed { [INFO] [stdout] | ----------------------------------- method `encode` not found for this struct because it doesn't satisfy `::Target = _`, `StructNamed: Encode` or `StructNamed: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 51 | let mut sn_encoded: &[u8] = &sn.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `StructNamed` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `StructNamed: Encode` [INFO] [stdout] `StructNamed: WrapperTypeEncode` [INFO] [stdout] which is required by `StructNamed: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/variant_number.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `StructUnnamed`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:52:34 [INFO] [stdout] | [INFO] [stdout] 39 | struct StructUnnamed(#[codec(skip)] T, u32); [INFO] [stdout] | ------------------------------------- method `encode` not found for this struct because it doesn't satisfy `::Target = _`, `StructUnnamed: Encode` or `StructUnnamed: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 52 | let mut su_encoded: &[u8] = &su.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `StructUnnamed` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `StructUnnamed: Encode` [INFO] [stdout] `StructUnnamed: WrapperTypeEncode` [INFO] [stdout] which is required by `StructUnnamed: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `enum_struct_test::Enum<_, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 20 | enum Enum { [INFO] [stdout] | ---------------------------------------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `enum_struct_test::Enum<_, _>: Decode` or `enum_struct_test::Enum<_, _>: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 54 | assert_eq!(Enum::decode(&mut eb_encoded).unwrap(), eb); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `enum_struct_test::Enum<_, _>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `enum_struct_test::Enum<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `<&enum_struct_test::Enum<_, _> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `&enum_struct_test::Enum<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `&enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `<&mut enum_struct_test::Enum<_, _> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `&mut enum_struct_test::Enum<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | #[codec(compact)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | #[codec(encoded_as = "::Type")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | struct USkip(#[codec(skip)] u32, u32, #[codec(skip)] u32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `enum_struct_test::Enum<_, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 20 | enum Enum { [INFO] [stdout] | ---------------------------------------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `enum_struct_test::Enum<_, _>: Decode` or `enum_struct_test::Enum<_, _>: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 55 | assert_eq!(Enum::decode(&mut ec_encoded).unwrap(), ec); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `enum_struct_test::Enum<_, _>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `enum_struct_test::Enum<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `<&enum_struct_test::Enum<_, _> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `&enum_struct_test::Enum<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `&enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `<&mut enum_struct_test::Enum<_, _> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `&mut enum_struct_test::Enum<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:90:41 [INFO] [stdout] | [INFO] [stdout] 90 | struct USkip(#[codec(skip)] u32, u32, #[codec(skip)] u32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | struct Uc(#[codec(compact)] u32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:96:15 [INFO] [stdout] | [INFO] [stdout] 96 | struct Ucas(#[codec(compact)] U); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:99:19 [INFO] [stdout] | [INFO] [stdout] 99 | struct USkipcas(#[codec(compact)] USkip); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:102:19 [INFO] [stdout] | [INFO] [stdout] 102 | struct SSkipcas(#[codec(compact)] SSkip); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for enum `T`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/variant_number.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 7 | enum T { [INFO] [stdout] | ------ method `encode` not found for this enum because it doesn't satisfy `::Target = _`, `T: Encode` or `T: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 13 | assert_eq!(T::A.encode(), vec![]); [INFO] [stdout] | ^^^^^^ method cannot be called on `T` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `T: Encode` [INFO] [stdout] `T: WrapperTypeEncode` [INFO] [stdout] which is required by `T: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:105:28 [INFO] [stdout] | [INFO] [stdout] 105 | struct Uh(#[codec(encoded_as = "::Type")] T) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `StructNamed<_>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:56:26 [INFO] [stdout] | [INFO] [stdout] 32 | struct StructNamed { [INFO] [stdout] | ----------------------------------- function or associated item `decode` not found for this struct because it doesn't satisfy ` as WrapperTypeDecode>::Wrapped = _`, `StructNamed<_>: Decode` or `StructNamed<_>: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 56 | assert_eq!(StructNamed::decode(&mut sn_encoded).unwrap(), sn); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `StructNamed<_>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `StructNamed<_>: Decode` [INFO] [stdout] `StructNamed<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `StructNamed<_>: Decode` [INFO] [stdout] `<&StructNamed<_> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&StructNamed<_>: Decode` [INFO] [stdout] `&StructNamed<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `&StructNamed<_>: Decode` [INFO] [stdout] `<&mut StructNamed<_> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut StructNamed<_>: Decode` [INFO] [stdout] `&mut StructNamed<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut StructNamed<_>: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for enum `T`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/variant_number.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 7 | enum T { [INFO] [stdout] | ------ method `encode` not found for this enum because it doesn't satisfy `::Target = _`, `T: Encode` or `T: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 14 | assert_eq!(T::B.encode(), vec![0]); [INFO] [stdout] | ^^^^^^ method cannot be called on `T` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `T: Encode` [INFO] [stdout] `T: WrapperTypeEncode` [INFO] [stdout] which is required by `T: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Wrapper`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/chain-error.rs:44:27 [INFO] [stdout] | [INFO] [stdout] 19 | struct Wrapper(T); [INFO] [stdout] | ----------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `Wrapper: Decode` or `Wrapper: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 44 | Wrapper::::decode(&mut &encoded[..]).unwrap_err().to_string(), [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Wrapper` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `Wrapper: Decode` [INFO] [stdout] `Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `Wrapper: Decode` [INFO] [stdout] `<&Wrapper as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Wrapper: Decode` [INFO] [stdout] `&Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `&Wrapper: Decode` [INFO] [stdout] `<&mut Wrapper as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Wrapper: Decode` [INFO] [stdout] `&mut Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Wrapper: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `StructUnnamed<_>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:57:28 [INFO] [stdout] | [INFO] [stdout] 39 | struct StructUnnamed(#[codec(skip)] T, u32); [INFO] [stdout] | ------------------------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `StructUnnamed<_>: Decode` or `StructUnnamed<_>: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 57 | assert_eq!(StructUnnamed::decode(&mut su_encoded).unwrap(), su); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `StructUnnamed<_>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `StructUnnamed<_>: Decode` [INFO] [stdout] `StructUnnamed<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `StructUnnamed<_>: Decode` [INFO] [stdout] `<&StructUnnamed<_> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&StructUnnamed<_>: Decode` [INFO] [stdout] `&StructUnnamed<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `&StructUnnamed<_>: Decode` [INFO] [stdout] `<&mut StructUnnamed<_> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut StructUnnamed<_>: Decode` [INFO] [stdout] `&mut StructUnnamed<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut StructUnnamed<_>: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `parity-scale-codec` (test "variant_number") due to 4 previous errors [INFO] [stdout] error[E0599]: the method `encode` exists for enum `skip_enum_struct_inner_variant::Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:74:62 [INFO] [stdout] | [INFO] [stdout] 66 | enum Enum { [INFO] [stdout] | --------- method `encode` not found for this enum because it doesn't satisfy `<_ as __Deref>::Target = _`, `_: WrapperTypeEncode` or `skip_enum_struct_inner_variant::Enum: Encode` [INFO] [stdout] ... [INFO] [stdout] 74 | let encoded = Enum::Data { some_named: 1, ignore: Some(1) }.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `skip_enum_struct_inner_variant::Enum` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `skip_enum_struct_inner_variant::Enum: Encode` [INFO] [stdout] `skip_enum_struct_inner_variant::Enum: WrapperTypeEncode` [INFO] [stdout] which is required by `skip_enum_struct_inner_variant::Enum: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Wrapper`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/chain-error.rs:58:29 [INFO] [stdout] | [INFO] [stdout] 19 | struct Wrapper(T); [INFO] [stdout] | ----------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `Wrapper: Decode` or `Wrapper: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 58 | Wrapper::::decode(&mut &encoded[..]).unwrap_err().to_string(), [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Wrapper` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `Wrapper: Decode` [INFO] [stdout] `Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `Wrapper: Decode` [INFO] [stdout] `<&Wrapper as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Wrapper: Decode` [INFO] [stdout] `&Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `&Wrapper: Decode` [INFO] [stdout] `<&mut Wrapper as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Wrapper: Decode` [INFO] [stdout] `&mut Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Wrapper: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `E`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/chain-error.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 30 | enum E { [INFO] [stdout] | ------ variant or associated item `decode` not found for this enum because it doesn't satisfy `::Wrapped = _`, `E: Decode` or `E: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 68 | assert_eq!(E::decode(&mut &encoded[..]).unwrap_err().to_string(), String::from(err),); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `E` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `E: Decode` [INFO] [stdout] `E: WrapperTypeDecode` [INFO] [stdout] which is required by `E: Decode` [INFO] [stdout] `<&E as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&E: Decode` [INFO] [stdout] `&E: WrapperTypeDecode` [INFO] [stdout] which is required by `&E: Decode` [INFO] [stdout] `<&mut E as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut E: Decode` [INFO] [stdout] `&mut E: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut E: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `parity-scale-codec` (test "skip") due to 18 previous errors [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `E`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/chain-error.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 30 | enum E { [INFO] [stdout] | ------ variant or associated item `decode` not found for this enum because it doesn't satisfy `::Wrapped = _`, `E: Decode` or `E: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 78 | assert_eq!(E::decode(&mut &encoded[..]).unwrap_err().to_string(), String::from(err),); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `E` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `E: Decode` [INFO] [stdout] `E: WrapperTypeDecode` [INFO] [stdout] which is required by `E: Decode` [INFO] [stdout] `<&E as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&E: Decode` [INFO] [stdout] `&E: WrapperTypeDecode` [INFO] [stdout] which is required by `&E: Decode` [INFO] [stdout] `<&mut E as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut E: Decode` [INFO] [stdout] `&mut E: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut E: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `E`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/chain-error.rs:88:16 [INFO] [stdout] | [INFO] [stdout] 30 | enum E { [INFO] [stdout] | ------ variant or associated item `decode` not found for this enum because it doesn't satisfy `::Wrapped = _`, `E: Decode` or `E: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 88 | assert_eq!(E::decode(&mut &encoded[..]).unwrap_err().to_string(), String::from(err),); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `E` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `E: Decode` [INFO] [stdout] `E: WrapperTypeDecode` [INFO] [stdout] which is required by `E: Decode` [INFO] [stdout] `<&E as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&E: Decode` [INFO] [stdout] `&E: WrapperTypeDecode` [INFO] [stdout] which is required by `&E: Decode` [INFO] [stdout] `<&mut E as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut E: Decode` [INFO] [stdout] `&mut E: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut E: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `S`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:138:15 [INFO] [stdout] | [INFO] [stdout] 9 | struct S { [INFO] [stdout] | -------- method `encode` not found for this struct because it doesn't satisfy `::Target = _`, `S: Encode` or `S: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 138 | assert_eq!(s.encode(), s_encoded); [INFO] [stdout] | ^^^^^^ method cannot be called on `S` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `S: Encode` [INFO] [stdout] `S: WrapperTypeEncode` [INFO] [stdout] which is required by `S: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `parity-scale-codec` (test "chain-error") due to 6 previous errors [INFO] [stdout] error[E0599]: the method `encode` exists for struct `SSkip`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:139:20 [INFO] [stdout] | [INFO] [stdout] 25 | struct SSkip { [INFO] [stdout] | ------------ method `encode` not found for this struct because it doesn't satisfy `::Target = _`, `SSkip: Encode` or `SSkip: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 139 | assert_eq!(s_skip.encode(), s_skip_encoded); [INFO] [stdout] | ^^^^^^ method cannot be called on `SSkip` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `SSkip: Encode` [INFO] [stdout] `SSkip: WrapperTypeEncode` [INFO] [stdout] which is required by `SSkip: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `Sc`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:140:16 [INFO] [stdout] | [INFO] [stdout] 34 | struct Sc { [INFO] [stdout] | --------- method `encode` not found for this struct because it doesn't satisfy `::Target = _`, `Sc: Encode` or `Sc: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 140 | assert_eq!(sc.encode(), sc_encoded); [INFO] [stdout] | ^^^^^^ method cannot be called on `Sc` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `Sc: Encode` [INFO] [stdout] `Sc: WrapperTypeEncode` [INFO] [stdout] which is required by `Sc: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `Sh`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:141:16 [INFO] [stdout] | [INFO] [stdout] 40 | struct Sh [INFO] [stdout] | ------------------------ method `encode` not found for this struct because it doesn't satisfy ` as Deref>::Target = _`, `Sh: Encode` or `Sh: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 141 | assert_eq!(sh.encode(), sh_encoded); [INFO] [stdout] | ^^^^^^ method cannot be called on `Sh` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as Deref>::Target = _` [INFO] [stdout] which is required by `Sh: Encode` [INFO] [stdout] `Sh: WrapperTypeEncode` [INFO] [stdout] which is required by `Sh: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `U`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:142:15 [INFO] [stdout] | [INFO] [stdout] 60 | struct U(u32); [INFO] [stdout] | -------- method `encode` not found for this struct because it doesn't satisfy `::Target = _`, `U: Encode` or `U: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 142 | assert_eq!(u.encode(), u_encoded); [INFO] [stdout] | ^^^^^^ method cannot be called on `U` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `U: Encode` [INFO] [stdout] `U: WrapperTypeEncode` [INFO] [stdout] which is required by `U: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `USkip`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:143:20 [INFO] [stdout] | [INFO] [stdout] 90 | struct USkip(#[codec(skip)] u32, u32, #[codec(skip)] u32); [INFO] [stdout] | ------------ method `encode` not found for this struct because it doesn't satisfy `::Target = _`, `USkip: Encode` or `USkip: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 143 | assert_eq!(u_skip.encode(), u_skip_encoded); [INFO] [stdout] | ^^^^^^ method cannot be called on `USkip` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `USkip: Encode` [INFO] [stdout] `USkip: WrapperTypeEncode` [INFO] [stdout] which is required by `USkip: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `Uc`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:144:16 [INFO] [stdout] | [INFO] [stdout] 93 | struct Uc(#[codec(compact)] u32); [INFO] [stdout] | --------- method `encode` not found for this struct because it doesn't satisfy `::Target = _`, `Uc: Encode` or `Uc: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 144 | assert_eq!(uc.encode(), uc_encoded); [INFO] [stdout] | ^^^^^^ method cannot be called on `Uc` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `Uc: Encode` [INFO] [stdout] `Uc: WrapperTypeEncode` [INFO] [stdout] which is required by `Uc: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode` found for struct `Compact` in the current scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:145:18 [INFO] [stdout] | [INFO] [stdout] 145 | assert_eq!(ucom.encode(), ucom_encoded); [INFO] [stdout] | ^^^^^^ method not found in `Compact` [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 145 | assert_eq!(ucom.0.0.encode(), ucom_encoded); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `Ucas`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:146:18 [INFO] [stdout] | [INFO] [stdout] 96 | struct Ucas(#[codec(compact)] U); [INFO] [stdout] | ----------- method `encode` not found for this struct because it doesn't satisfy `::Target = _`, `Ucas: Encode` or `Ucas: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 146 | assert_eq!(ucas.encode(), ucas_encoded); [INFO] [stdout] | ^^^^^^ method cannot be called on `Ucas` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `Ucas: Encode` [INFO] [stdout] `Ucas: WrapperTypeEncode` [INFO] [stdout] which is required by `Ucas: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `USkipcas`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:147:24 [INFO] [stdout] | [INFO] [stdout] 99 | struct USkipcas(#[codec(compact)] USkip); [INFO] [stdout] | --------------- method `encode` not found for this struct because it doesn't satisfy `::Target = _`, `USkipcas: Encode` or `USkipcas: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 147 | assert_eq!(u_skip_cas.encode(), u_skip_cas_encoded); [INFO] [stdout] | ^^^^^^ method cannot be called on `USkipcas` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `USkipcas: Encode` [INFO] [stdout] `USkipcas: WrapperTypeEncode` [INFO] [stdout] which is required by `USkipcas: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `SSkipcas`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:148:24 [INFO] [stdout] | [INFO] [stdout] 102 | struct SSkipcas(#[codec(compact)] SSkip); [INFO] [stdout] | --------------- method `encode` not found for this struct because it doesn't satisfy `::Target = _`, `SSkipcas: Encode` or `SSkipcas: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 148 | assert_eq!(s_skip_cas.encode(), s_skip_cas_encoded); [INFO] [stdout] | ^^^^^^ method cannot be called on `SSkipcas` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `SSkipcas: Encode` [INFO] [stdout] `SSkipcas: WrapperTypeEncode` [INFO] [stdout] which is required by `SSkipcas: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `Uh`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:149:16 [INFO] [stdout] | [INFO] [stdout] 105 | struct Uh(#[codec(encoded_as = "::Type")] T) [INFO] [stdout] | ------------------------ method `encode` not found for this struct because it doesn't satisfy ` as Deref>::Target = _`, `Uh: Encode` or `Uh: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 149 | assert_eq!(uh.encode(), uh_encoded); [INFO] [stdout] | ^^^^^^ method cannot be called on `Uh` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as Deref>::Target = _` [INFO] [stdout] which is required by `Uh: Encode` [INFO] [stdout] `Uh: WrapperTypeEncode` [INFO] [stdout] which is required by `Uh: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `S`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:151:19 [INFO] [stdout] | [INFO] [stdout] 9 | struct S { [INFO] [stdout] | -------- function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `S: Decode` or `S: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 151 | assert_eq!(s, S::decode(&mut s_encoded).unwrap()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `S` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `S: Decode` [INFO] [stdout] `S: WrapperTypeDecode` [INFO] [stdout] which is required by `S: Decode` [INFO] [stdout] `<&S as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&S: Decode` [INFO] [stdout] `&S: WrapperTypeDecode` [INFO] [stdout] which is required by `&S: Decode` [INFO] [stdout] `<&mut S as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut S: Decode` [INFO] [stdout] `&mut S: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut S: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `SSkip`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:152:28 [INFO] [stdout] | [INFO] [stdout] 25 | struct SSkip { [INFO] [stdout] | ------------ function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `SSkip: Decode` or `SSkip: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 152 | assert_eq!(s_skip, SSkip::decode(&mut s_skip_encoded).unwrap()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `SSkip` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `SSkip: Decode` [INFO] [stdout] `SSkip: WrapperTypeDecode` [INFO] [stdout] which is required by `SSkip: Decode` [INFO] [stdout] `<&SSkip as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&SSkip: Decode` [INFO] [stdout] `&SSkip: WrapperTypeDecode` [INFO] [stdout] which is required by `&SSkip: Decode` [INFO] [stdout] `<&mut SSkip as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut SSkip: Decode` [INFO] [stdout] `&mut SSkip: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut SSkip: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Sc`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:153:21 [INFO] [stdout] | [INFO] [stdout] 34 | struct Sc { [INFO] [stdout] | --------- function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `Sc: Decode` or `Sc: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 153 | assert_eq!(sc, Sc::decode(&mut sc_encoded).unwrap()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Sc` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `Sc: Decode` [INFO] [stdout] `Sc: WrapperTypeDecode` [INFO] [stdout] which is required by `Sc: Decode` [INFO] [stdout] `<&Sc as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Sc: Decode` [INFO] [stdout] `&Sc: WrapperTypeDecode` [INFO] [stdout] which is required by `&Sc: Decode` [INFO] [stdout] `<&mut Sc as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Sc: Decode` [INFO] [stdout] `&mut Sc: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Sc: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Sh<_>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:154:21 [INFO] [stdout] | [INFO] [stdout] 40 | struct Sh [INFO] [stdout] | ------------------------ function or associated item `decode` not found for this struct because it doesn't satisfy ` as WrapperTypeDecode>::Wrapped = _`, `Sh<_>: Decode` or `Sh<_>: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 154 | assert_eq!(sh, Sh::decode(&mut sh_encoded).unwrap()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Sh<_>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `Sh<_>: Decode` [INFO] [stdout] `Sh<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `Sh<_>: Decode` [INFO] [stdout] `<&Sh<_> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Sh<_>: Decode` [INFO] [stdout] `&Sh<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `&Sh<_>: Decode` [INFO] [stdout] `<&mut Sh<_> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Sh<_>: Decode` [INFO] [stdout] `&mut Sh<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Sh<_>: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `U`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:155:19 [INFO] [stdout] | [INFO] [stdout] 60 | struct U(u32); [INFO] [stdout] | -------- function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `U: Decode` or `U: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 155 | assert_eq!(u, U::decode(&mut u_encoded).unwrap()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `U` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `U: Decode` [INFO] [stdout] `U: WrapperTypeDecode` [INFO] [stdout] which is required by `U: Decode` [INFO] [stdout] `<&U as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&U: Decode` [INFO] [stdout] `&U: WrapperTypeDecode` [INFO] [stdout] which is required by `&U: Decode` [INFO] [stdout] `<&mut U as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut U: Decode` [INFO] [stdout] `&mut U: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut U: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `USkip`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:156:28 [INFO] [stdout] | [INFO] [stdout] 90 | struct USkip(#[codec(skip)] u32, u32, #[codec(skip)] u32); [INFO] [stdout] | ------------ function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `USkip: Decode` or `USkip: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 156 | assert_eq!(u_skip, USkip::decode(&mut u_skip_encoded).unwrap()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `USkip` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `USkip: Decode` [INFO] [stdout] `USkip: WrapperTypeDecode` [INFO] [stdout] which is required by `USkip: Decode` [INFO] [stdout] `<&USkip as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&USkip: Decode` [INFO] [stdout] `&USkip: WrapperTypeDecode` [INFO] [stdout] which is required by `&USkip: Decode` [INFO] [stdout] `<&mut USkip as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut USkip: Decode` [INFO] [stdout] `&mut USkip: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut USkip: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Uc`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:157:21 [INFO] [stdout] | [INFO] [stdout] 93 | struct Uc(#[codec(compact)] u32); [INFO] [stdout] | --------- function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `Uc: Decode` or `Uc: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 157 | assert_eq!(uc, Uc::decode(&mut uc_encoded).unwrap()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Uc` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `Uc: Decode` [INFO] [stdout] `Uc: WrapperTypeDecode` [INFO] [stdout] which is required by `Uc: Decode` [INFO] [stdout] `<&Uc as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Uc: Decode` [INFO] [stdout] `&Uc: WrapperTypeDecode` [INFO] [stdout] which is required by `&Uc: Decode` [INFO] [stdout] `<&mut Uc as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Uc: Decode` [INFO] [stdout] `&mut Uc: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Uc: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Compact`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:158:35 [INFO] [stdout] | [INFO] [stdout] 158 | assert_eq!(ucom, >::decode(&mut ucom_encoded).unwrap()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Compact` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `<&Compact as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Compact: Decode` [INFO] [stdout] `&Compact: WrapperTypeDecode` [INFO] [stdout] which is required by `&Compact: Decode` [INFO] [stdout] `<&mut Compact as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Compact: Decode` [INFO] [stdout] `&mut Compact: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Compact: Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Ucas`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:159:25 [INFO] [stdout] | [INFO] [stdout] 96 | struct Ucas(#[codec(compact)] U); [INFO] [stdout] | ----------- function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `Ucas: Decode` or `Ucas: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 159 | assert_eq!(ucas, Ucas::decode(&mut ucas_encoded).unwrap()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Ucas` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `Ucas: Decode` [INFO] [stdout] `Ucas: WrapperTypeDecode` [INFO] [stdout] which is required by `Ucas: Decode` [INFO] [stdout] `<&Ucas as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Ucas: Decode` [INFO] [stdout] `&Ucas: WrapperTypeDecode` [INFO] [stdout] which is required by `&Ucas: Decode` [INFO] [stdout] `<&mut Ucas as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Ucas: Decode` [INFO] [stdout] `&mut Ucas: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Ucas: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `USkipcas`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:160:35 [INFO] [stdout] | [INFO] [stdout] 99 | struct USkipcas(#[codec(compact)] USkip); [INFO] [stdout] | --------------- function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `USkipcas: Decode` or `USkipcas: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 160 | assert_eq!(u_skip_cas, USkipcas::decode(&mut u_skip_cas_encoded).unwrap()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `USkipcas` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `USkipcas: Decode` [INFO] [stdout] `USkipcas: WrapperTypeDecode` [INFO] [stdout] which is required by `USkipcas: Decode` [INFO] [stdout] `<&USkipcas as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&USkipcas: Decode` [INFO] [stdout] `&USkipcas: WrapperTypeDecode` [INFO] [stdout] which is required by `&USkipcas: Decode` [INFO] [stdout] `<&mut USkipcas as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut USkipcas: Decode` [INFO] [stdout] `&mut USkipcas: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut USkipcas: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `SSkipcas`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:161:35 [INFO] [stdout] | [INFO] [stdout] 102 | struct SSkipcas(#[codec(compact)] SSkip); [INFO] [stdout] | --------------- function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `SSkipcas: Decode` or `SSkipcas: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 161 | assert_eq!(s_skip_cas, SSkipcas::decode(&mut s_skip_cas_encoded).unwrap()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `SSkipcas` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `SSkipcas: Decode` [INFO] [stdout] `SSkipcas: WrapperTypeDecode` [INFO] [stdout] which is required by `SSkipcas: Decode` [INFO] [stdout] `<&SSkipcas as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&SSkipcas: Decode` [INFO] [stdout] `&SSkipcas: WrapperTypeDecode` [INFO] [stdout] which is required by `&SSkipcas: Decode` [INFO] [stdout] `<&mut SSkipcas as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut SSkipcas: Decode` [INFO] [stdout] `&mut SSkipcas: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut SSkipcas: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Uh<_>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:162:21 [INFO] [stdout] | [INFO] [stdout] 105 | struct Uh(#[codec(encoded_as = "::Type")] T) [INFO] [stdout] | ------------------------ function or associated item `decode` not found for this struct because it doesn't satisfy ` as WrapperTypeDecode>::Wrapped = _`, `Uh<_>: Decode` or `Uh<_>: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 162 | assert_eq!(uh, Uh::decode(&mut uh_encoded).unwrap()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Uh<_>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `Uh<_>: Decode` [INFO] [stdout] `Uh<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `Uh<_>: Decode` [INFO] [stdout] `<&Uh<_> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Uh<_>: Decode` [INFO] [stdout] `&Uh<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `&Uh<_>: Decode` [INFO] [stdout] `<&mut Uh<_> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Uh<_>: Decode` [INFO] [stdout] `&mut Uh<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Uh<_>: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `parity-scale-codec` (test "single_field_struct_encoding") due to 36 previous errors [INFO] running `Command { std: "docker" "inspect" "56c15280702d9ecae18993d1e74535aef3a3ca17753d05890d147563f4792e33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56c15280702d9ecae18993d1e74535aef3a3ca17753d05890d147563f4792e33", kill_on_drop: false }` [INFO] [stdout] 56c15280702d9ecae18993d1e74535aef3a3ca17753d05890d147563f4792e33