[INFO] fetching crate parity-scale-codec 3.7.5... [INFO] testing parity-scale-codec-3.7.5 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate parity-scale-codec 3.7.5 into /workspace/builds/worker-7-tc1/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-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate parity-scale-codec 3.7.5 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 146 packages to latest compatible versions [INFO] [stderr] Adding criterion v0.5.1 (available: v0.6.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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 92911d46b1cb9683a35c8e65d4232d3c129d1c0d42f48a0c69fde144b7b89d6d [INFO] running `Command { std: "docker" "start" "-a" "92911d46b1cb9683a35c8e65d4232d3c129d1c0d42f48a0c69fde144b7b89d6d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "92911d46b1cb9683a35c8e65d4232d3c129d1c0d42f48a0c69fde144b7b89d6d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92911d46b1cb9683a35c8e65d4232d3c129d1c0d42f48a0c69fde144b7b89d6d", kill_on_drop: false }` [INFO] [stdout] 92911d46b1cb9683a35c8e65d4232d3c129d1c0d42f48a0c69fde144b7b89d6d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 181c99e37161ede59f8057617a81344b336aa8c567d184b9aa073be03cc8b3b5 [INFO] running `Command { std: "docker" "start" "-a" "181c99e37161ede59f8057617a81344b336aa8c567d184b9aa073be03cc8b3b5", kill_on_drop: false }` [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling byte-slice-cast v1.2.3 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.3 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Compiling parity-scale-codec v3.7.5 (/opt/rustwide/workdir) [INFO] [stderr] Compiling const_format v0.2.34 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.75s [INFO] running `Command { std: "docker" "inspect" "181c99e37161ede59f8057617a81344b336aa8c567d184b9aa073be03cc8b3b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "181c99e37161ede59f8057617a81344b336aa8c567d184b9aa073be03cc8b3b5", kill_on_drop: false }` [INFO] [stdout] 181c99e37161ede59f8057617a81344b336aa8c567d184b9aa073be03cc8b3b5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 80e5a2356faed4c1ddf6883abdf24f94e64683137a164e0f0cd7e8de69ff33a8 [INFO] running `Command { std: "docker" "start" "-a" "80e5a2356faed4c1ddf6883abdf24f94e64683137a164e0f0cd7e8de69ff33a8", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling winnow v0.7.11 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling target-triple v0.1.4 [INFO] [stderr] Compiling clap_builder v4.5.40 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling wait-timeout v0.2.1 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling bit-vec v0.8.0 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling rand_xorshift v0.4.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling enumflags2_derive v0.7.12 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling bit-set v0.8.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling unarray v0.1.4 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling enumflags2 v0.7.12 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling rusty-fork v0.3.0 [INFO] [stderr] Compiling proptest v1.7.0 [INFO] [stderr] Compiling clap v4.5.40 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_logger v0.8.4 [INFO] [stderr] Compiling quickcheck v1.0.3 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling parity-scale-codec v3.7.5 (/opt/rustwide/workdir) [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling trybuild v1.0.105 [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/mod.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | 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] 21 - use parity_scale_codec_derive::{ [INFO] [stdout] 21 + use parity_scale_codec::{ [INFO] [stdout] | [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] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/bitflags.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use parity_scale_codec_derive::{Decode, 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] 15 - use parity_scale_codec_derive::{Decode, Encode}; [INFO] [stdout] 15 + use parity_scale_codec::{Decode, Encode}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/size_hint.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[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[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] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/mem_tracking.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | 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] 24 - use parity_scale_codec_derive::{ [INFO] [stdout] 24 + use parity_scale_codec::{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/size_hint.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [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/bounds.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use parity_scale_codec_derive::{Decode as DeriveDecode, 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] 16 - use parity_scale_codec_derive::{Decode as DeriveDecode, Encode as DeriveEncode}; [INFO] [stdout] 16 + use parity_scale_codec::{Decode as DeriveDecode, Encode as DeriveEncode}; [INFO] [stdout] | [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[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: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/size_hint.rs:21:35 [INFO] [stdout] | [INFO] [stdout] 21 | struct Tuple(String, Vec, #[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: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[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[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/single_field_struct_encoding.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | #[codec(encoded_as = "::Type")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [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: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | #[codec(index = 15)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/size_hint.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | #[codec(index = 15)] [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:41 [INFO] [stdout] | [INFO] [stdout] 90 | struct USkip(#[codec(skip)] u32, u32, #[codec(skip)] u32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `parity-scale-codec` (test "bitflags") due to 1 previous error [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] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | #[codec(encoded_as = "::Type")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | #[codec(compact)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | Unnamed(#[codec(encoded_as = "::Type")] T), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `parity-scale-codec` (test "clippy") due to 1 previous error [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | #[codec(encoded_as = "::Type")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:95:19 [INFO] [stdout] | [INFO] [stdout] 95 | UnnamedCompact(#[codec(compact)] T), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 97 | #[codec(compact)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | #[codec(compact)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | Unnamed(#[codec(compact)] u64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ComplexStruct: DecodeWithMemTracking` is not satisfied [INFO] [stdout] --> tests/mem_tracking.rs:117:3 [INFO] [stdout] | [INFO] [stdout] 116 | assert!(decode_object( [INFO] [stdout] | ------------- required by a bound introduced by this call [INFO] [stdout] 117 | / ComplexStruct { [INFO] [stdout] 118 | | test_enum: TestEnum::Array([0; 1000]), [INFO] [stdout] 119 | | boxed_test_enum: Box::new(TestEnum::Empty), [INFO] [stdout] 120 | | box_field: Box::new(1), [INFO] [stdout] 121 | | vec: vec![1; 10], [INFO] [stdout] 122 | | }, [INFO] [stdout] | |_________^ the trait `DecodeWithMemTracking` is not implemented for `ComplexStruct` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeWithMemTracking`: [INFO] [stdout] () [INFO] [stdout] (TupleElement0, TupleElement1) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, TupleElement3) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7) [INFO] [stdout] and 60 others [INFO] [stdout] note: required by a bound in `decode_object` [INFO] [stdout] --> tests/mem_tracking.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 46 | fn decode_object(obj: T, mem_limit: usize, expected_used_mem: usize) -> Result [INFO] [stdout] | ------------- required by a bound in this function [INFO] [stdout] 47 | where [INFO] [stdout] 48 | T: Encode + DecodeWithMemTracking + DecodeWithMemLimit + PartialEq + Debug, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `decode_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | #[codec(compact)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/bounds.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | #[codec(compact)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:408:5 [INFO] [stdout] | [INFO] [stdout] 408 | #[codec(encoded_as = "u32")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:442:6 [INFO] [stdout] | [INFO] [stdout] 442 | #[codec(compact)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:519:4 [INFO] [stdout] | [INFO] [stdout] 519 | #[codec(dumb_trait_bound)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:617:4 [INFO] [stdout] | [INFO] [stdout] 617 | #[codec(encode_bound(N: Encode, T: Default))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:618:4 [INFO] [stdout] | [INFO] [stdout] 618 | #[codec(decode_bound(N: Decode, T: Default))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ComplexStruct: Encode` is not satisfied [INFO] [stdout] --> tests/mem_tracking.rs:117:3 [INFO] [stdout] | [INFO] [stdout] 116 | assert!(decode_object( [INFO] [stdout] | ------------- required by a bound introduced by this call [INFO] [stdout] 117 | / ComplexStruct { [INFO] [stdout] 118 | | test_enum: TestEnum::Array([0; 1000]), [INFO] [stdout] 119 | | boxed_test_enum: Box::new(TestEnum::Empty), [INFO] [stdout] 120 | | box_field: Box::new(1), [INFO] [stdout] 121 | | vec: vec![1; 10], [INFO] [stdout] 122 | | }, [INFO] [stdout] | |_________^ the trait `WrapperTypeEncode` is not implemented for `ComplexStruct` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `WrapperTypeEncode`: [INFO] [stdout] &T [INFO] [stdout] &mut T [INFO] [stdout] Arc [INFO] [stdout] Box [INFO] [stdout] Cow<'_, T> [INFO] [stdout] Rc [INFO] [stdout] String [INFO] [stdout] Vec [INFO] [stdout] parity_scale_codec::Ref<'_, T, U> [INFO] [stdout] = note: required for `ComplexStruct` to implement `Encode` [INFO] [stdout] note: required by a bound in `decode_object` [INFO] [stdout] --> tests/mem_tracking.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 46 | fn decode_object(obj: T, mem_limit: usize, expected_used_mem: usize) -> Result [INFO] [stdout] | ------------- required by a bound in this function [INFO] [stdout] 47 | where [INFO] [stdout] 48 | T: Encode + DecodeWithMemTracking + DecodeWithMemLimit + PartialEq + Debug, [INFO] [stdout] | ^^^^^^ required by this bound in `decode_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:619:4 [INFO] [stdout] | [INFO] [stdout] 619 | #[codec(decode_with_mem_tracking_bound(N: DecodeWithMemTracking, T: Default))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:626:4 [INFO] [stdout] | [INFO] [stdout] 626 | #[codec(encode_bound())] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:627:4 [INFO] [stdout] | [INFO] [stdout] 627 | #[codec(decode_bound())] [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[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] error[E0599]: the method `size_hint` exists for struct `Struct, u32>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/size_hint.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 7 | struct Struct { [INFO] [stdout] | ---------------------- method `size_hint` not found for this struct because it doesn't satisfy `<_ as __Deref>::Target = _`, `Struct, u32>: Encode` or `Struct, u32>: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 15 | assert_eq!(v.size_hint(), 23); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `Struct, u32>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `, u32> as Deref>::Target = _` [INFO] [stdout] which is required by `Struct, u32>: Encode` [INFO] [stdout] `Struct, u32>: WrapperTypeEncode` [INFO] [stdout] which is required by `Struct, u32>: 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 traits define an item `size_hint`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] candidate #2: `Iterator` [INFO] [stdout] candidate #3: `serde::de::MapAccess` [INFO] [stdout] candidate #4: `serde::de::SeqAccess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `size_hint` exists for struct `size_hint_for_tuple_struct::Tuple`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/size_hint.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 21 | struct Tuple(String, Vec, #[codec(skip)] u32); [INFO] [stdout] | ------------ method `size_hint` not found for this struct because it doesn't satisfy `<_ as __Deref>::Target = _`, `_: WrapperTypeEncode` or `size_hint_for_tuple_struct::Tuple: Encode` [INFO] [stdout] ... [INFO] [stdout] 24 | assert_eq!(v.size_hint(), 23); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `size_hint_for_tuple_struct::Tuple` 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 `size_hint_for_tuple_struct::Tuple: Encode` [INFO] [stdout] `size_hint_for_tuple_struct::Tuple: WrapperTypeEncode` [INFO] [stdout] which is required by `size_hint_for_tuple_struct::Tuple: 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 traits define an item `size_hint`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] candidate #2: `Iterator` [INFO] [stdout] candidate #3: `serde::de::MapAccess` [INFO] [stdout] candidate #4: `serde::de::SeqAccess` [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[E0277]: the trait bound `ComplexStruct: DecodeWithMemTracking` is not satisfied [INFO] [stdout] --> tests/mem_tracking.rs:140:4 [INFO] [stdout] | [INFO] [stdout] 139 | decode_object( [INFO] [stdout] | ------------- required by a bound introduced by this call [INFO] [stdout] 140 | / ComplexStruct { [INFO] [stdout] 141 | | test_enum: TestEnum::Array([0; 1000]), [INFO] [stdout] 142 | | boxed_test_enum: Box::new(TestEnum::Empty), [INFO] [stdout] 143 | | box_field: Box::new(1), [INFO] [stdout] 144 | | vec: vec![1; 10], [INFO] [stdout] 145 | | }, [INFO] [stdout] | |_____________^ the trait `DecodeWithMemTracking` is not implemented for `ComplexStruct` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeWithMemTracking`: [INFO] [stdout] () [INFO] [stdout] (TupleElement0, TupleElement1) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, TupleElement3) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7) [INFO] [stdout] and 60 others [INFO] [stdout] note: required by a bound in `decode_object` [INFO] [stdout] --> tests/mem_tracking.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 46 | fn decode_object(obj: T, mem_limit: usize, expected_used_mem: usize) -> Result [INFO] [stdout] | ------------- required by a bound in this function [INFO] [stdout] 47 | where [INFO] [stdout] 48 | T: Encode + DecodeWithMemTracking + DecodeWithMemLimit + PartialEq + Debug, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `decode_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ComplexStruct: Encode` is not satisfied [INFO] [stdout] --> tests/mem_tracking.rs:140:4 [INFO] [stdout] | [INFO] [stdout] 139 | decode_object( [INFO] [stdout] | ------------- required by a bound introduced by this call [INFO] [stdout] 140 | / ComplexStruct { [INFO] [stdout] 141 | | test_enum: TestEnum::Array([0; 1000]), [INFO] [stdout] 142 | | boxed_test_enum: Box::new(TestEnum::Empty), [INFO] [stdout] 143 | | box_field: Box::new(1), [INFO] [stdout] 144 | | vec: vec![1; 10], [INFO] [stdout] 145 | | }, [INFO] [stdout] | |_____________^ the trait `WrapperTypeEncode` is not implemented for `ComplexStruct` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `WrapperTypeEncode`: [INFO] [stdout] &T [INFO] [stdout] &mut T [INFO] [stdout] Arc [INFO] [stdout] Box [INFO] [stdout] Cow<'_, T> [INFO] [stdout] Rc [INFO] [stdout] String [INFO] [stdout] Vec [INFO] [stdout] parity_scale_codec::Ref<'_, T, U> [INFO] [stdout] = note: required for `ComplexStruct` to implement `Encode` [INFO] [stdout] note: required by a bound in `decode_object` [INFO] [stdout] --> tests/mem_tracking.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 46 | fn decode_object(obj: T, mem_limit: usize, expected_used_mem: usize) -> Result [INFO] [stdout] | ------------- required by a bound in this function [INFO] [stdout] 47 | where [INFO] [stdout] 48 | T: Encode + DecodeWithMemTracking + DecodeWithMemLimit + PartialEq + Debug, [INFO] [stdout] | ^^^^^^ required by this bound in `decode_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `size_hint` exists for struct `Unit`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/size_hint.rs:33:15 [INFO] [stdout] | [INFO] [stdout] 30 | struct Unit; [INFO] [stdout] | ----------- method `size_hint` not found for this struct because it doesn't satisfy `::Target = _`, `Unit: Encode` or `Unit: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 33 | assert_eq!(v.size_hint(), 0); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `Unit` 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 `Unit: Encode` [INFO] [stdout] `Unit: WrapperTypeEncode` [INFO] [stdout] which is required by `Unit: 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 traits define an item `size_hint`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] candidate #2: `Iterator` [INFO] [stdout] candidate #3: `serde::de::MapAccess` [INFO] [stdout] candidate #4: `serde::de::SeqAccess` [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[E0277]: the trait bound `Header: Decode` is not satisfied [INFO] [stdout] --> tests/bounds.rs:28:47 [INFO] [stdout] | [INFO] [stdout] 28 | impl _IsEncodeDecode for Header {} [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `WrapperTypeDecode` is not implemented for `Header` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `WrapperTypeDecode`: [INFO] [stdout] Arc [INFO] [stdout] Box [INFO] [stdout] Rc [INFO] [stdout] = note: required for `Header` to implement `Decode` [INFO] [stdout] note: required by a bound in `_IsEncodeDecode` [INFO] [stdout] --> tests/bounds.rs:26:34 [INFO] [stdout] | [INFO] [stdout] 26 | trait _IsEncodeDecode: Encode + Decode {} [INFO] [stdout] | ^^^^^^ required by this bound in `_IsEncodeDecode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `size_hint` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/size_hint.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 39 | enum EnumType { [INFO] [stdout] | ------------- method `size_hint` not found for this enum because it doesn't satisfy `::Target = _`, `EnumType: Encode` or `EnumType: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 50 | assert_eq!(v.size_hint(), 1); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `EnumType` 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 `EnumType: Encode` [INFO] [stdout] `EnumType: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumType: 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 traits define an item `size_hint`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] candidate #2: `Iterator` [INFO] [stdout] candidate #3: `serde::de::MapAccess` [INFO] [stdout] candidate #4: `serde::de::SeqAccess` [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: 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[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] 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[E0277]: the trait bound `Header: Encode` is not satisfied [INFO] [stdout] --> tests/bounds.rs:28:47 [INFO] [stdout] | [INFO] [stdout] 28 | impl _IsEncodeDecode for Header {} [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Header` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `WrapperTypeEncode`: [INFO] [stdout] &T [INFO] [stdout] &mut T [INFO] [stdout] Arc [INFO] [stdout] Box [INFO] [stdout] Cow<'_, T> [INFO] [stdout] Rc [INFO] [stdout] String [INFO] [stdout] Vec [INFO] [stdout] parity_scale_codec::Ref<'_, T, U> [INFO] [stdout] = note: required for `Header` to implement `Encode` [INFO] [stdout] note: required by a bound in `_IsEncodeDecode` [INFO] [stdout] --> tests/bounds.rs:26:25 [INFO] [stdout] | [INFO] [stdout] 26 | trait _IsEncodeDecode: Encode + Decode {} [INFO] [stdout] | ^^^^^^ required by this bound in `_IsEncodeDecode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `parity-scale-codec` (test "bounds") due to 4 previous errors [INFO] [stdout] error[E0599]: the method `size_hint` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/size_hint.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 39 | enum EnumType { [INFO] [stdout] | ------------- method `size_hint` not found for this enum because it doesn't satisfy `::Target = _`, `EnumType: Encode` or `EnumType: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 53 | assert_eq!(v.size_hint(), 13); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `EnumType` 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 `EnumType: Encode` [INFO] [stdout] `EnumType: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumType: 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 traits define an item `size_hint`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] candidate #2: `Iterator` [INFO] [stdout] candidate #3: `serde::de::MapAccess` [INFO] [stdout] candidate #4: `serde::de::SeqAccess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `size_hint` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/size_hint.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 39 | enum EnumType { [INFO] [stdout] | ------------- method `size_hint` not found for this enum because it doesn't satisfy `::Target = _`, `EnumType: Encode` or `EnumType: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 56 | assert_eq!(v.size_hint(), 13); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `EnumType` 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 `EnumType: Encode` [INFO] [stdout] `EnumType: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumType: 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 traits define an item `size_hint`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] candidate #2: `Iterator` [INFO] [stdout] candidate #3: `serde::de::MapAccess` [INFO] [stdout] candidate #4: `serde::de::SeqAccess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `size_hint` exists for enum `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/size_hint.rs:71:15 [INFO] [stdout] | [INFO] [stdout] 62 | enum EnumWithDiscriminant { [INFO] [stdout] | ------------------------- method `size_hint` not found for this enum because it doesn't satisfy `::Target = _`, `EnumWithDiscriminant: Encode` or `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 71 | assert_eq!(v.size_hint(), discriminant); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `EnumWithDiscriminant` 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 `EnumWithDiscriminant: Encode` [INFO] [stdout] `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumWithDiscriminant: 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 traits define an item `size_hint`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] candidate #2: `Iterator` [INFO] [stdout] candidate #3: `serde::de::MapAccess` [INFO] [stdout] candidate #4: `serde::de::SeqAccess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `size_hint` exists for enum `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/size_hint.rs:74:15 [INFO] [stdout] | [INFO] [stdout] 62 | enum EnumWithDiscriminant { [INFO] [stdout] | ------------------------- method `size_hint` not found for this enum because it doesn't satisfy `::Target = _`, `EnumWithDiscriminant: Encode` or `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 74 | assert_eq!(v.size_hint(), discriminant); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `EnumWithDiscriminant` 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 `EnumWithDiscriminant: Encode` [INFO] [stdout] `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumWithDiscriminant: 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 traits define an item `size_hint`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] candidate #2: `Iterator` [INFO] [stdout] candidate #3: `serde::de::MapAccess` [INFO] [stdout] candidate #4: `serde::de::SeqAccess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `size_hint` exists for enum `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/size_hint.rs:77:15 [INFO] [stdout] | [INFO] [stdout] 62 | enum EnumWithDiscriminant { [INFO] [stdout] | ------------------------- method `size_hint` not found for this enum because it doesn't satisfy `::Target = _`, `EnumWithDiscriminant: Encode` or `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 77 | assert_eq!(v.size_hint(), discriminant); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `EnumWithDiscriminant` 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 `EnumWithDiscriminant: Encode` [INFO] [stdout] `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumWithDiscriminant: 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 traits define an item `size_hint`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] candidate #2: `Iterator` [INFO] [stdout] candidate #3: `serde::de::MapAccess` [INFO] [stdout] candidate #4: `serde::de::SeqAccess` [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] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [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: 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[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 "mem_tracking") due to 5 previous errors [INFO] [stderr] error: could not compile `parity-scale-codec` (test "size_hint") due to 13 previous errors [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] error[E0599]: the method `using_encoded` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:142:4 [INFO] [stdout] | [INFO] [stdout] 56 | enum EnumType { [INFO] [stdout] | ------------- method `using_encoded` not found for this enum because it doesn't satisfy `::Target = _`, `EnumType: Encode` or `EnumType: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 142 | a.using_encoded(|ref slice| { [INFO] [stdout] | --^^^^^^^^^^^^^ method cannot be called on `EnumType` 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 `EnumType: Encode` [INFO] [stdout] `EnumType: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumType: 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 `using_encoded`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `using_encoded` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:145:4 [INFO] [stdout] | [INFO] [stdout] 56 | enum EnumType { [INFO] [stdout] | ------------- method `using_encoded` not found for this enum because it doesn't satisfy `::Target = _`, `EnumType: Encode` or `EnumType: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 145 | b.using_encoded(|ref slice| { [INFO] [stdout] | --^^^^^^^^^^^^^ method cannot be called on `EnumType` 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 `EnumType: Encode` [INFO] [stdout] `EnumType: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumType: 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 `using_encoded`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `using_encoded` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:148:4 [INFO] [stdout] | [INFO] [stdout] 56 | enum EnumType { [INFO] [stdout] | ------------- method `using_encoded` not found for this enum because it doesn't satisfy `::Target = _`, `EnumType: Encode` or `EnumType: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 148 | c.using_encoded(|ref slice| { [INFO] [stdout] | --^^^^^^^^^^^^^ method cannot be called on `EnumType` 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 `EnumType: Encode` [INFO] [stdout] `EnumType: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumType: 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 `using_encoded`, 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 `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] 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 variant or associated item `decode` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:153:23 [INFO] [stdout] | [INFO] [stdout] 56 | enum EnumType { [INFO] [stdout] | ------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `::Wrapped = _`, `EnumType: Decode` or `EnumType: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 153 | assert_eq!(EnumType::decode(&mut da).ok(), Some(a)); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumType` 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 `EnumType: Decode` [INFO] [stdout] `EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumType: Decode` [INFO] [stdout] `<&EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `&EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `<&mut EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumType: Decode` [INFO] [stdout] `&mut EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumType: 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: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[E0599]: the variant or associated item `decode` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:155:23 [INFO] [stdout] | [INFO] [stdout] 56 | enum EnumType { [INFO] [stdout] | ------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `::Wrapped = _`, `EnumType: Decode` or `EnumType: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 155 | assert_eq!(EnumType::decode(&mut db).ok(), Some(b)); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumType` 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 `EnumType: Decode` [INFO] [stdout] `EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumType: Decode` [INFO] [stdout] `<&EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `&EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `<&mut EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumType: Decode` [INFO] [stdout] `&mut EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumType: 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 `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:157:23 [INFO] [stdout] | [INFO] [stdout] 56 | enum EnumType { [INFO] [stdout] | ------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `::Wrapped = _`, `EnumType: Decode` or `EnumType: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 157 | assert_eq!(EnumType::decode(&mut dc).ok(), Some(c)); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumType` 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 `EnumType: Decode` [INFO] [stdout] `EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumType: Decode` [INFO] [stdout] `<&EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `&EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `<&mut EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumType: Decode` [INFO] [stdout] `&mut EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumType: 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 variant or associated item `decode` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:159:23 [INFO] [stdout] | [INFO] [stdout] 56 | enum EnumType { [INFO] [stdout] | ------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `::Wrapped = _`, `EnumType: Decode` or `EnumType: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 159 | assert_eq!(EnumType::decode(&mut dz).ok(), None); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumType` 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 `EnumType: Decode` [INFO] [stdout] `EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumType: Decode` [INFO] [stdout] `<&EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `&EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `<&mut EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumType: Decode` [INFO] [stdout] `&mut EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumType: 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 method `using_encoded` exists for enum `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:164:26 [INFO] [stdout] | [INFO] [stdout] 67 | enum EnumWithDiscriminant { [INFO] [stdout] | ------------------------- method `using_encoded` not found for this enum because it doesn't satisfy `::Target = _`, `EnumWithDiscriminant: Encode` or `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 164 | EnumWithDiscriminant::A.using_encoded(|ref slice| { [INFO] [stdout] | ------------------------^^^^^^^^^^^^^ method cannot be called on `EnumWithDiscriminant` 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 `EnumWithDiscriminant: Encode` [INFO] [stdout] `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumWithDiscriminant: 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 `using_encoded`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [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[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] error[E0599]: the method `using_encoded` exists for enum `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:167:26 [INFO] [stdout] | [INFO] [stdout] 67 | enum EnumWithDiscriminant { [INFO] [stdout] | ------------------------- method `using_encoded` not found for this enum because it doesn't satisfy `::Target = _`, `EnumWithDiscriminant: Encode` or `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 167 | EnumWithDiscriminant::B.using_encoded(|ref slice| { [INFO] [stdout] | ------------------------^^^^^^^^^^^^^ method cannot be called on `EnumWithDiscriminant` 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 `EnumWithDiscriminant: Encode` [INFO] [stdout] `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumWithDiscriminant: 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 `using_encoded`, 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 "variant_number") due to 4 previous errors [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[E0599]: the method `using_encoded` exists for enum `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:170:26 [INFO] [stdout] | [INFO] [stdout] 67 | enum EnumWithDiscriminant { [INFO] [stdout] | ------------------------- method `using_encoded` not found for this enum because it doesn't satisfy `::Target = _`, `EnumWithDiscriminant: Encode` or `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 170 | EnumWithDiscriminant::C.using_encoded(|ref slice| { [INFO] [stdout] | ------------------------^^^^^^^^^^^^^ method cannot be called on `EnumWithDiscriminant` 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 `EnumWithDiscriminant: Encode` [INFO] [stdout] `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumWithDiscriminant: 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 `using_encoded`, 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 `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 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] [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[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 `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:175:35 [INFO] [stdout] | [INFO] [stdout] 67 | enum EnumWithDiscriminant { [INFO] [stdout] | ------------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `EnumWithDiscriminant: Decode` or `EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 175 | assert_eq!(EnumWithDiscriminant::decode(&mut da), Ok(EnumWithDiscriminant::A)); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumWithDiscriminant` 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 `EnumWithDiscriminant: Decode` [INFO] [stdout] `EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumWithDiscriminant: Decode` [INFO] [stdout] `<&EnumWithDiscriminant as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumWithDiscriminant: Decode` [INFO] [stdout] `&EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumWithDiscriminant: Decode` [INFO] [stdout] `<&mut EnumWithDiscriminant as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumWithDiscriminant: Decode` [INFO] [stdout] `&mut EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumWithDiscriminant: 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 `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 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[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[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 variant or associated item `decode` exists for enum `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:177:35 [INFO] [stdout] | [INFO] [stdout] 67 | enum EnumWithDiscriminant { [INFO] [stdout] | ------------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `EnumWithDiscriminant: Decode` or `EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 177 | assert_eq!(EnumWithDiscriminant::decode(&mut db), Ok(EnumWithDiscriminant::B)); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumWithDiscriminant` 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 `EnumWithDiscriminant: Decode` [INFO] [stdout] `EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumWithDiscriminant: Decode` [INFO] [stdout] `<&EnumWithDiscriminant as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumWithDiscriminant: Decode` [INFO] [stdout] `&EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumWithDiscriminant: Decode` [INFO] [stdout] `<&mut EnumWithDiscriminant as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumWithDiscriminant: Decode` [INFO] [stdout] `&mut EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumWithDiscriminant: 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 `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 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 variant or associated item `decode` exists for enum `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:179:35 [INFO] [stdout] | [INFO] [stdout] 67 | enum EnumWithDiscriminant { [INFO] [stdout] | ------------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `EnumWithDiscriminant: Decode` or `EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 179 | assert_eq!(EnumWithDiscriminant::decode(&mut dc), Ok(EnumWithDiscriminant::C)); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumWithDiscriminant` 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 `EnumWithDiscriminant: Decode` [INFO] [stdout] `EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumWithDiscriminant: Decode` [INFO] [stdout] `<&EnumWithDiscriminant as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumWithDiscriminant: Decode` [INFO] [stdout] `&EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumWithDiscriminant: Decode` [INFO] [stdout] `<&mut EnumWithDiscriminant as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumWithDiscriminant: Decode` [INFO] [stdout] `&mut EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumWithDiscriminant: 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 `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 variant or associated item `decode` exists for enum `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:181:35 [INFO] [stdout] | [INFO] [stdout] 67 | enum EnumWithDiscriminant { [INFO] [stdout] | ------------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `EnumWithDiscriminant: Decode` or `EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 181 | assert_eq!(EnumWithDiscriminant::decode(&mut dz).ok(), None); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumWithDiscriminant` 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 `EnumWithDiscriminant: Decode` [INFO] [stdout] `EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumWithDiscriminant: Decode` [INFO] [stdout] `<&EnumWithDiscriminant as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumWithDiscriminant: Decode` [INFO] [stdout] `&EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumWithDiscriminant: Decode` [INFO] [stdout] `<&mut EnumWithDiscriminant as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumWithDiscriminant: Decode` [INFO] [stdout] `&mut EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumWithDiscriminant: 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 `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] [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]: the method `using_encoded` exists for struct `Struct>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:188:4 [INFO] [stdout] | [INFO] [stdout] 34 | struct Struct { [INFO] [stdout] | ---------------------- method `using_encoded` not found for this struct because it doesn't satisfy `> as Deref>::Target = _`, `Struct>: Encode` or `Struct>: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 188 | v.using_encoded(|ref slice| assert_eq!(slice, &b"\x0f\0\0\0\x09\0\0\0\0\0\0\0\x2cHello world")); [INFO] [stdout] | ^^^^^^^^^^^^^ method cannot be called on `Struct>` 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 `Struct>: Encode` [INFO] [stdout] `Struct>: WrapperTypeEncode` [INFO] [stdout] which is required by `Struct>: 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 `using_encoded`, 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 `Struct>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:195:20 [INFO] [stdout] | [INFO] [stdout] 34 | struct Struct { [INFO] [stdout] | ---------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `Struct>: Decode` or `Struct>: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 195 | let v = TestType::decode(&mut &*slice); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Struct>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Struct>`, consider using `Struct::::new` which returns `Struct<_, _, _>` [INFO] [stdout] --> tests/mod.rs:50:2 [INFO] [stdout] | [INFO] [stdout] 50 | fn new(a: A, b: B, c: C) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `Struct>: Decode` [INFO] [stdout] `Struct>: WrapperTypeDecode` [INFO] [stdout] which is required by `Struct>: Decode` [INFO] [stdout] `<&Struct> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Struct>: Decode` [INFO] [stdout] `&Struct>: WrapperTypeDecode` [INFO] [stdout] which is required by `&Struct>: Decode` [INFO] [stdout] `<&mut Struct> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Struct>: Decode` [INFO] [stdout] `&mut Struct>: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Struct>: 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]: 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 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 method `using_encoded` exists for struct `Unit`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 28 | struct Unit; [INFO] [stdout] | ----------- method `using_encoded` not found for this struct because it doesn't satisfy `::Target = _`, `Unit: Encode` or `Unit: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 204 | v.using_encoded(|ref slice| { [INFO] [stdout] | --^^^^^^^^^^^^^ method cannot be called on `Unit` 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 `Unit: Encode` [INFO] [stdout] `Unit: WrapperTypeEncode` [INFO] [stdout] which is required by `Unit: 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 `using_encoded`, 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 `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 function or associated item `decode` exists for struct `Unit`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:209:19 [INFO] [stdout] | [INFO] [stdout] 28 | struct Unit; [INFO] [stdout] | ----------- function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `Unit: Decode` or `Unit: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 209 | assert_eq!(Unit::decode(&mut a), Ok(Unit)); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Unit` 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 `Unit: Decode` [INFO] [stdout] `Unit: WrapperTypeDecode` [INFO] [stdout] which is required by `Unit: Decode` [INFO] [stdout] `<&Unit as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Unit: Decode` [INFO] [stdout] `&Unit: WrapperTypeDecode` [INFO] [stdout] which is required by `&Unit: Decode` [INFO] [stdout] `<&mut Unit as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Unit: Decode` [INFO] [stdout] `&mut Unit: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Unit: 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 method `using_encoded` exists for struct `Indexed`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:216:4 [INFO] [stdout] | [INFO] [stdout] 31 | struct Indexed(u32, u64); [INFO] [stdout] | -------------- method `using_encoded` not found for this struct because it doesn't satisfy `::Target = _`, `Indexed: Encode` or `Indexed: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 216 | v.using_encoded(|ref slice| assert_eq!(slice, &b"\x01\0\0\0\x02\0\0\0\0\0\0\0")); [INFO] [stdout] | ^^^^^^^^^^^^^ method cannot be called on `Indexed` 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 `Indexed: Encode` [INFO] [stdout] `Indexed: WrapperTypeEncode` [INFO] [stdout] which is required by `Indexed: 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 `using_encoded`, 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] [stderr] error: could not compile `parity-scale-codec` (test "skip") due to 18 previous errors [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 `Indexed`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:219:22 [INFO] [stdout] | [INFO] [stdout] 31 | struct Indexed(u32, u64); [INFO] [stdout] | -------------- function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `Indexed: Decode` or `Indexed: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 219 | assert_eq!(Indexed::decode(&mut v), Ok(Indexed(1, 2))); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Indexed` 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 `Indexed: Decode` [INFO] [stdout] `Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `Indexed: Decode` [INFO] [stdout] `<&Indexed as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Indexed: Decode` [INFO] [stdout] `&Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `&Indexed: Decode` [INFO] [stdout] `<&mut Indexed as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Indexed: Decode` [INFO] [stdout] `&mut Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Indexed: 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 `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 `Indexed`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:226:11 [INFO] [stdout] | [INFO] [stdout] 31 | struct Indexed(u32, u64); [INFO] [stdout] | -------------- function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `Indexed: Decode` or `Indexed: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 226 | Indexed::decode(&mut wrong).unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Indexed` 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 `Indexed: Decode` [INFO] [stdout] `Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `Indexed: Decode` [INFO] [stdout] `<&Indexed as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Indexed: Decode` [INFO] [stdout] `&Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `&Indexed: Decode` [INFO] [stdout] `<&mut Indexed as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Indexed: Decode` [INFO] [stdout] `&mut Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Indexed: 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 `Indexed`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:233:11 [INFO] [stdout] | [INFO] [stdout] 31 | struct Indexed(u32, u64); [INFO] [stdout] | -------------- function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `Indexed: Decode` or `Indexed: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 233 | Indexed::decode(&mut wrong).unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Indexed` 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 `Indexed: Decode` [INFO] [stdout] `Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `Indexed: Decode` [INFO] [stdout] `<&Indexed as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Indexed: Decode` [INFO] [stdout] `&Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `&Indexed: Decode` [INFO] [stdout] `<&mut Indexed as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Indexed: Decode` [INFO] [stdout] `&mut Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Indexed: 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 variant or associated item `decode` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:240:12 [INFO] [stdout] | [INFO] [stdout] 56 | enum EnumType { [INFO] [stdout] | ------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `::Wrapped = _`, `EnumType: Decode` or `EnumType: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 240 | EnumType::decode(&mut wrong).unwrap(); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumType` 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 `EnumType: Decode` [INFO] [stdout] `EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumType: Decode` [INFO] [stdout] `<&EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `&EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `<&mut EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumType: Decode` [INFO] [stdout] `&mut EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumType: 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 `Struct`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:247:27 [INFO] [stdout] | [INFO] [stdout] 34 | struct Struct { [INFO] [stdout] | ---------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `Struct: Decode` or `Struct: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 247 | Struct::::decode(&mut wrong).unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Struct` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Struct`, consider using `Struct::::new` which returns `Struct<_, _, _>` [INFO] [stdout] --> tests/mod.rs:50:2 [INFO] [stdout] | [INFO] [stdout] 50 | fn new(a: A, b: B, c: C) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `Struct: Decode` [INFO] [stdout] `Struct: WrapperTypeDecode` [INFO] [stdout] which is required by `Struct: Decode` [INFO] [stdout] `<&Struct as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Struct: Decode` [INFO] [stdout] `&Struct: WrapperTypeDecode` [INFO] [stdout] which is required by `&Struct: Decode` [INFO] [stdout] `<&mut Struct as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Struct: Decode` [INFO] [stdout] `&mut Struct: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Struct: 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 `Struct`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:254:27 [INFO] [stdout] | [INFO] [stdout] 34 | struct Struct { [INFO] [stdout] | ---------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `Struct: Decode` or `Struct: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 254 | Struct::::decode(&mut wrong).unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Struct` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Struct`, consider using `Struct::::new` which returns `Struct<_, _, _>` [INFO] [stdout] --> tests/mod.rs:50:2 [INFO] [stdout] | [INFO] [stdout] 50 | fn new(a: A, b: B, c: C) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `Struct: Decode` [INFO] [stdout] `Struct: WrapperTypeDecode` [INFO] [stdout] which is required by `Struct: Decode` [INFO] [stdout] `<&Struct as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Struct: Decode` [INFO] [stdout] `&Struct: WrapperTypeDecode` [INFO] [stdout] which is required by `&Struct: Decode` [INFO] [stdout] `<&mut Struct as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Struct: Decode` [INFO] [stdout] `&mut Struct: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Struct: 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 `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 method `encode` exists for struct `TestHasCompact`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:294:43 [INFO] [stdout] | [INFO] [stdout] 74 | struct TestHasCompact [INFO] [stdout] | ------------------------------------ method `encode` not found for this struct because it doesn't satisfy ` as Deref>::Target = _`, `TestHasCompact: Encode` or `TestHasCompact: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 294 | let encoded = TestHasCompact { bar: n }.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `TestHasCompact` 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 `TestHasCompact: Encode` [INFO] [stdout] `TestHasCompact: WrapperTypeEncode` [INFO] [stdout] which is required by `TestHasCompact: 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 `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] error[E0599]: the function or associated item `decode` exists for struct `TestHasCompact`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:297:37 [INFO] [stdout] | [INFO] [stdout] 74 | struct TestHasCompact [INFO] [stdout] | ------------------------------------ function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `TestHasCompact: Decode` or `TestHasCompact: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 297 | assert_eq!(>::decode(&mut &encoded[..]).unwrap().bar, n); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `TestHasCompact` 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 `TestHasCompact: Decode` [INFO] [stdout] `TestHasCompact: WrapperTypeDecode` [INFO] [stdout] which is required by `TestHasCompact: Decode` [INFO] [stdout] `<&TestHasCompact as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&TestHasCompact: Decode` [INFO] [stdout] `&TestHasCompact: WrapperTypeDecode` [INFO] [stdout] which is required by `&TestHasCompact: Decode` [INFO] [stdout] `<&mut TestHasCompact as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut TestHasCompact: Decode` [INFO] [stdout] `&mut TestHasCompact: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut TestHasCompact: 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 `TestHasCompact`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:304:43 [INFO] [stdout] | [INFO] [stdout] 74 | struct TestHasCompact [INFO] [stdout] | ------------------------------------ method `encode` not found for this struct because it doesn't satisfy ` as Deref>::Target = _`, `TestHasCompact: Encode` or `TestHasCompact: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 304 | let encoded = TestHasCompact { bar: n }.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `TestHasCompact` 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 `TestHasCompact: Encode` [INFO] [stdout] `TestHasCompact: WrapperTypeEncode` [INFO] [stdout] which is required by `TestHasCompact: 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] [stdout] error[E0599]: the function or associated item `decode` exists for struct `TestCompactHasCompact`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:307:44 [INFO] [stdout] | [INFO] [stdout] 83 | struct TestCompactHasCompact { [INFO] [stdout] | ------------------------------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `TestCompactHasCompact: Decode` or `TestCompactHasCompact: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 307 | assert_eq!(>::decode(&mut &encoded[..]).unwrap().bar, n); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `TestCompactHasCompact` 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 `TestCompactHasCompact: Decode` [INFO] [stdout] `TestCompactHasCompact: WrapperTypeDecode` [INFO] [stdout] which is required by `TestCompactHasCompact: Decode` [INFO] [stdout] `<&TestCompactHasCompact as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&TestCompactHasCompact: Decode` [INFO] [stdout] `&TestCompactHasCompact: WrapperTypeDecode` [INFO] [stdout] which is required by `&TestCompactHasCompact: Decode` [INFO] [stdout] `<&mut TestCompactHasCompact as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut TestCompactHasCompact: Decode` [INFO] [stdout] `&mut TestCompactHasCompact: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut TestCompactHasCompact: 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 "single_field_struct_encoding") due to 36 previous errors [INFO] [stdout] error[E0599]: the method `encode` exists for reference `&TestHasCompactEnum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:322:24 [INFO] [stdout] | [INFO] [stdout] 89 | enum TestHasCompactEnum { [INFO] [stdout] | -------------------------------------- doesn't satisfy ` as Deref>::Target = _`, `TestHasCompactEnum: Encode` or `TestHasCompactEnum: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 322 | let encoded = value.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `&TestHasCompactEnum` 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 `TestHasCompactEnum: Encode` [INFO] [stdout] `TestHasCompactEnum: WrapperTypeEncode` [INFO] [stdout] which is required by `TestHasCompactEnum: 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 `TestHasCompactEnum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:325:43 [INFO] [stdout] | [INFO] [stdout] 89 | enum TestHasCompactEnum { [INFO] [stdout] | -------------------------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `TestHasCompactEnum: Decode` or `TestHasCompactEnum: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 325 | assert_eq!(&>::decode(&mut &encoded[..]).unwrap(), value); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `TestHasCompactEnum` 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 `TestHasCompactEnum: Decode` [INFO] [stdout] `TestHasCompactEnum: WrapperTypeDecode` [INFO] [stdout] which is required by `TestHasCompactEnum: Decode` [INFO] [stdout] `<&TestHasCompactEnum as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&TestHasCompactEnum: Decode` [INFO] [stdout] `&TestHasCompactEnum: WrapperTypeDecode` [INFO] [stdout] which is required by `&TestHasCompactEnum: Decode` [INFO] [stdout] `<&mut TestHasCompactEnum as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut TestHasCompactEnum: Decode` [INFO] [stdout] `&mut TestHasCompactEnum: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut TestHasCompactEnum: 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 `TestCompactAttribute`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:333:49 [INFO] [stdout] | [INFO] [stdout] 103 | struct TestCompactAttribute { [INFO] [stdout] | --------------------------- method `encode` not found for this struct because it doesn't satisfy `::Target = _`, `TestCompactAttribute: Encode` or `TestCompactAttribute: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 333 | let encoded = TestCompactAttribute { bar: n }.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `TestCompactAttribute` 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 `TestCompactAttribute: Encode` [INFO] [stdout] `TestCompactAttribute: WrapperTypeEncode` [INFO] [stdout] which is required by `TestCompactAttribute: 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 `TestCompactAttribute`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:335:36 [INFO] [stdout] | [INFO] [stdout] 103 | struct TestCompactAttribute { [INFO] [stdout] | --------------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `TestCompactAttribute: Decode` or `TestCompactAttribute: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 335 | assert_eq!(TestCompactAttribute::decode(&mut &encoded[..]).unwrap().bar, n); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `TestCompactAttribute` 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 `TestCompactAttribute: Decode` [INFO] [stdout] `TestCompactAttribute: WrapperTypeDecode` [INFO] [stdout] which is required by `TestCompactAttribute: Decode` [INFO] [stdout] `<&TestCompactAttribute as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&TestCompactAttribute: Decode` [INFO] [stdout] `&TestCompactAttribute: WrapperTypeDecode` [INFO] [stdout] which is required by `&TestCompactAttribute: Decode` [INFO] [stdout] `<&mut TestCompactAttribute as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut TestCompactAttribute: Decode` [INFO] [stdout] `&mut TestCompactAttribute: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut TestCompactAttribute: 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 reference `&TestCompactAttributeEnum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:346:24 [INFO] [stdout] | [INFO] [stdout] 109 | enum TestCompactAttributeEnum { [INFO] [stdout] | ----------------------------- doesn't satisfy `::Target = _`, `TestCompactAttributeEnum: Encode` or `TestCompactAttributeEnum: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 346 | let encoded = value.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `&TestCompactAttributeEnum` 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 `TestCompactAttributeEnum: Encode` [INFO] [stdout] `TestCompactAttributeEnum: WrapperTypeEncode` [INFO] [stdout] which is required by `TestCompactAttributeEnum: 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 `TestCompactAttributeEnum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:348:42 [INFO] [stdout] | [INFO] [stdout] 109 | enum TestCompactAttributeEnum { [INFO] [stdout] | ----------------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `TestCompactAttributeEnum: Decode` or `TestCompactAttributeEnum: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 348 | assert_eq!(&TestCompactAttributeEnum::decode(&mut &encoded[..]).unwrap(), value); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `TestCompactAttributeEnum` 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 `TestCompactAttributeEnum: Decode` [INFO] [stdout] `TestCompactAttributeEnum: WrapperTypeDecode` [INFO] [stdout] which is required by `TestCompactAttributeEnum: Decode` [INFO] [stdout] `<&TestCompactAttributeEnum as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&TestCompactAttributeEnum: Decode` [INFO] [stdout] `&TestCompactAttributeEnum: WrapperTypeDecode` [INFO] [stdout] which is required by `&TestCompactAttributeEnum: Decode` [INFO] [stdout] `<&mut TestCompactAttributeEnum as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut TestCompactAttributeEnum: Decode` [INFO] [stdout] `&mut TestCompactAttributeEnum: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut TestCompactAttributeEnum: 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 `associated_type_bounds::Struct`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:376:22 [INFO] [stdout] | [INFO] [stdout] 361 | struct Struct { [INFO] [stdout] | ----------------------------- method `encode` not found for this struct because it doesn't satisfy `<_ as __Deref>::Target = _`, `_: Encode` or `_: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 376 | let encoded = value.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called 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 `associated_type_bounds::Struct: Encode` [INFO] [stdout] `associated_type_bounds::Struct: WrapperTypeEncode` [INFO] [stdout] which is required by `associated_type_bounds::Struct: 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 `associated_type_bounds::Struct<_, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:377:55 [INFO] [stdout] | [INFO] [stdout] 361 | struct Struct { [INFO] [stdout] | ----------------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `_: WrapperTypeDecode` or `associated_type_bounds::Struct<_, _>: Decode` [INFO] [stdout] ... [INFO] [stdout] 377 | let decoded: Struct = Struct::decode(&mut &encoded[..]).unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `associated_type_bounds::Struct<_, _>` 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 `associated_type_bounds::Struct<_, _>: Decode` [INFO] [stdout] `associated_type_bounds::Struct<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `associated_type_bounds::Struct<_, _>: Decode` [INFO] [stdout] `<&associated_type_bounds::Struct<_, _> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&associated_type_bounds::Struct<_, _>: Decode` [INFO] [stdout] `&associated_type_bounds::Struct<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `&associated_type_bounds::Struct<_, _>: Decode` [INFO] [stdout] `<&mut associated_type_bounds::Struct<_, _> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut associated_type_bounds::Struct<_, _>: Decode` [INFO] [stdout] `&mut associated_type_bounds::Struct<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut associated_type_bounds::Struct<_, _>: 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 `TestGeneric`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:413:4 [INFO] [stdout] | [INFO] [stdout] 404 | struct TestGeneric> [INFO] [stdout] | -------------------------------- method `encode` not found for this struct because it doesn't satisfy `<_ as __Deref>::Target = _`, `TestGeneric: Encode` or `TestGeneric: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 413 | a.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `TestGeneric` 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 `TestGeneric: Encode` [INFO] [stdout] `TestGeneric: WrapperTypeEncode` [INFO] [stdout] which is required by `TestGeneric: 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 enum `TestGenericHasCompact`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:449:4 [INFO] [stdout] | [INFO] [stdout] 440 | enum TestGenericHasCompact { [INFO] [stdout] | ----------------------------- method `encode` not found for this enum because it doesn't satisfy `<_ as __Deref>::Target = _`, `TestGenericHasCompact: Encode` or `_: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 449 | a.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `TestGenericHasCompact` 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 `TestGenericHasCompact: Encode` [INFO] [stdout] `TestGenericHasCompact: WrapperTypeEncode` [INFO] [stdout] which is required by `TestGenericHasCompact: 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 `TestGenericTrait`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:474:4 [INFO] [stdout] | [INFO] [stdout] 468 | struct TestGenericTrait { [INFO] [stdout] | ---------------------------------------- method `encode` not found for this struct because it doesn't satisfy `<_ as __Deref>::Target = _`, `TestGenericTrait: Encode` or `TestGenericTrait: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 474 | a.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `TestGenericTrait` 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 `TestGenericTrait: Encode` [INFO] [stdout] `TestGenericTrait: WrapperTypeEncode` [INFO] [stdout] which is required by `TestGenericTrait: 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 `recursive_variant_1_encode_works::Recursive`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:488:6 [INFO] [stdout] | [INFO] [stdout] 482 | struct Recursive { [INFO] [stdout] | ------------------- method `encode` not found for this struct because it doesn't satisfy `<_ as __Deref>::Target = _`, `_: Encode` or `_: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 488 | val.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `recursive_variant_1_encode_works::Recursive` 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 `recursive_variant_1_encode_works::Recursive: Encode` [INFO] [stdout] `recursive_variant_1_encode_works::Recursive: WrapperTypeEncode` [INFO] [stdout] which is required by `recursive_variant_1_encode_works::Recursive: 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 `recursive_variant_2_encode_works::Recursive`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:502:6 [INFO] [stdout] | [INFO] [stdout] 496 | struct Recursive { [INFO] [stdout] | ------------------------- method `encode` not found for this struct because it doesn't satisfy `<_ as __Deref>::Target = _`, `_: Encode` or `_: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 502 | val.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called 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 `recursive_variant_2_encode_works::Recursive: Encode` [INFO] [stdout] `recursive_variant_2_encode_works::Recursive: WrapperTypeEncode` [INFO] [stdout] which is required by `recursive_variant_2_encode_works::Recursive: 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 `Test`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:525:6 [INFO] [stdout] | [INFO] [stdout] 520 | pub struct Test { [INFO] [stdout] | ------------------ method `encode` not found for this struct because it doesn't satisfy ` as Deref>::Target = _`, `Test: Encode` or `Test: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 525 | val.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `Test` 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 `Test: Encode` [INFO] [stdout] `Test: WrapperTypeEncode` [INFO] [stdout] which is required by `Test: 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[E0277]: the trait bound `EmptyEnumDerive: Encode` is not satisfied [INFO] [stdout] --> tests/mod.rs:534:24 [INFO] [stdout] | [INFO] [stdout] 534 | impls_encode_decode::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `EmptyEnumDerive` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `WrapperTypeEncode`: [INFO] [stdout] &T [INFO] [stdout] &mut T [INFO] [stdout] Arc [INFO] [stdout] Box [INFO] [stdout] Cow<'_, T> [INFO] [stdout] Rc [INFO] [stdout] Vec [INFO] [stdout] parity_scale_codec::Ref<'_, T, U> [INFO] [stdout] std::string::String [INFO] [stdout] = note: required for `EmptyEnumDerive` to implement `Encode` [INFO] [stdout] note: required by a bound in `impls_encode_decode` [INFO] [stdout] --> tests/mod.rs:533:28 [INFO] [stdout] | [INFO] [stdout] 533 | fn impls_encode_decode() {} [INFO] [stdout] | ^^^^^^ required by this bound in `impls_encode_decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `EmptyEnumDerive: Decode` is not satisfied [INFO] [stdout] --> tests/mod.rs:534:24 [INFO] [stdout] | [INFO] [stdout] 534 | impls_encode_decode::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `WrapperTypeDecode` is not implemented for `EmptyEnumDerive` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `WrapperTypeDecode`: [INFO] [stdout] Arc [INFO] [stdout] Box [INFO] [stdout] Rc [INFO] [stdout] = note: required for `EmptyEnumDerive` to implement `Decode` [INFO] [stdout] note: required by a bound in `impls_encode_decode` [INFO] [stdout] --> tests/mod.rs:533:37 [INFO] [stdout] | [INFO] [stdout] 533 | fn impls_encode_decode() {} [INFO] [stdout] | ^^^^^^ required by this bound in `impls_encode_decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `EmptyEnumDerive`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:537:20 [INFO] [stdout] | [INFO] [stdout] 531 | enum EmptyEnumDerive {} [INFO] [stdout] | -------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `EmptyEnumDerive: Decode` or `EmptyEnumDerive: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 537 | EmptyEnumDerive::decode(&mut &[1, 2, 3][..]), [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EmptyEnumDerive` 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 `EmptyEnumDerive: Decode` [INFO] [stdout] `EmptyEnumDerive: WrapperTypeDecode` [INFO] [stdout] which is required by `EmptyEnumDerive: Decode` [INFO] [stdout] `<&EmptyEnumDerive as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EmptyEnumDerive: Decode` [INFO] [stdout] `&EmptyEnumDerive: WrapperTypeDecode` [INFO] [stdout] which is required by `&EmptyEnumDerive: Decode` [INFO] [stdout] `<&mut EmptyEnumDerive as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EmptyEnumDerive: Decode` [INFO] [stdout] `&mut EmptyEnumDerive: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EmptyEnumDerive: 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 `Something`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:637:5 [INFO] [stdout] | [INFO] [stdout] 620 | struct Something { [INFO] [stdout] | ---------------------- method `encode` not found for this struct because it doesn't satisfy ` as Deref>::Target = _`, `Something: Encode` or `Something: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 636 | / Something:: { hello: Hello { _phantom: Default::default() }, val: 32u32 } [INFO] [stdout] 637 | | .encode(); [INFO] [stdout] | | -^^^^^^ method cannot be called on `Something` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as Deref>::Target = _` [INFO] [stdout] which is required by `Something: Encode` [INFO] [stdout] `Something: WrapperTypeEncode` [INFO] [stdout] which is required by `Something: 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 `Something`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:639:31 [INFO] [stdout] | [INFO] [stdout] 620 | struct Something { [INFO] [stdout] | ---------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `Something: Decode` or `Something: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 639 | Something::::decode(&mut &encoded[..]).unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Something` 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 `Something: Decode` [INFO] [stdout] `Something: WrapperTypeDecode` [INFO] [stdout] which is required by `Something: Decode` [INFO] [stdout] `<&Something as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Something: Decode` [INFO] [stdout] `&Something: WrapperTypeDecode` [INFO] [stdout] which is required by `&Something: Decode` [INFO] [stdout] `<&mut Something as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Something: Decode` [INFO] [stdout] `&mut Something: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Something: 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 `HugeArrayNewtypeBox`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:713:31 [INFO] [stdout] | [INFO] [stdout] 710 | struct HugeArrayNewtypeBox(#[allow(dead_code)] Box); [INFO] [stdout] | -------------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `HugeArrayNewtypeBox: Decode` or `HugeArrayNewtypeBox: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 713 | assert!(HugeArrayNewtypeBox::decode(&mut data.as_slice()).is_err()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `HugeArrayNewtypeBox` 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 `HugeArrayNewtypeBox: Decode` [INFO] [stdout] `HugeArrayNewtypeBox: WrapperTypeDecode` [INFO] [stdout] which is required by `HugeArrayNewtypeBox: Decode` [INFO] [stdout] `<&HugeArrayNewtypeBox as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&HugeArrayNewtypeBox: Decode` [INFO] [stdout] `&HugeArrayNewtypeBox: WrapperTypeDecode` [INFO] [stdout] which is required by `&HugeArrayNewtypeBox: Decode` [INFO] [stdout] `<&mut HugeArrayNewtypeBox as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut HugeArrayNewtypeBox: Decode` [INFO] [stdout] `&mut HugeArrayNewtypeBox: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut HugeArrayNewtypeBox: 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 `SmallArraysBox`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:728:20 [INFO] [stdout] | [INFO] [stdout] 724 | struct SmallArraysBox(Box); [INFO] [stdout] | --------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `SmallArraysBox: Decode` or `SmallArraysBox: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 728 | *SmallArraysBox::decode(&mut data.as_slice()).unwrap().0, [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `SmallArraysBox` 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 `SmallArraysBox: Decode` [INFO] [stdout] `SmallArraysBox: WrapperTypeDecode` [INFO] [stdout] which is required by `SmallArraysBox: Decode` [INFO] [stdout] `<&SmallArraysBox as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&SmallArraysBox: Decode` [INFO] [stdout] `&SmallArraysBox: WrapperTypeDecode` [INFO] [stdout] which is required by `&SmallArraysBox: Decode` [INFO] [stdout] `<&mut SmallArraysBox as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut SmallArraysBox: Decode` [INFO] [stdout] `&mut SmallArraysBox: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut SmallArraysBox: 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 `zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:768:29 [INFO] [stdout] | [INFO] [stdout] 746 | struct NewtypeWithZst { [INFO] [stdout] | --------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `_: Decode` or `_: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 768 | assert_eq!(NewtypeWithZst::decode(&mut data.as_slice()).unwrap().field, [2]); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called 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 `zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: Decode` [INFO] [stdout] `zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: WrapperTypeDecode` [INFO] [stdout] which is required by `zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: Decode` [INFO] [stdout] `<&zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: Decode` [INFO] [stdout] `&zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: WrapperTypeDecode` [INFO] [stdout] which is required by `&zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: Decode` [INFO] [stdout] `<&mut zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: Decode` [INFO] [stdout] `&mut zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: 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 `NewtypeWithZst`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:786:26 [INFO] [stdout] | [INFO] [stdout] 779 | struct NewtypeWithZst(Zst); [INFO] [stdout] | --------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `_: Decode` or `_: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 786 | assert!(NewtypeWithZst::decode(&mut data.as_slice()).is_ok()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `NewtypeWithZst` 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 `boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: Decode` [INFO] [stdout] `boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: WrapperTypeDecode` [INFO] [stdout] which is required by `boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: Decode` [INFO] [stdout] `<&boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: Decode` [INFO] [stdout] `&boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: WrapperTypeDecode` [INFO] [stdout] which is required by `&boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: Decode` [INFO] [stdout] `<&mut boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: Decode` [INFO] [stdout] `&mut boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: 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 array `[incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4]`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:819:25 [INFO] [stdout] | [INFO] [stdout] 819 | assert!(<[Foobar; 4]>::decode(&mut data.as_slice()).is_err()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `<&[incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4] as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&[incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4]: Decode` [INFO] [stdout] `&[incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4]: WrapperTypeDecode` [INFO] [stdout] which is required by `&[incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4]: Decode` [INFO] [stdout] `<&mut [incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4] as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut [incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4]: Decode` [INFO] [stdout] `&mut [incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4]: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut [incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4]: Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for enum `deserializing_of_big_recursively_nested_enum_works::Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:924:17 [INFO] [stdout] | [INFO] [stdout] 869 | enum Enum { [INFO] [stdout] | --------- method `encode` not found for this enum because it doesn't satisfy `<_ as __Deref>::Target = _`, `_: Encode` or `_: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 924 | let data = obj.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called 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 `deserializing_of_big_recursively_nested_enum_works::Enum: Encode` [INFO] [stdout] `deserializing_of_big_recursively_nested_enum_works::Enum: WrapperTypeEncode` [INFO] [stdout] which is required by `deserializing_of_big_recursively_nested_enum_works::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 variant or associated item `decode` exists for enum `deserializing_of_big_recursively_nested_enum_works::Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:927:20 [INFO] [stdout] | [INFO] [stdout] 869 | enum Enum { [INFO] [stdout] | --------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `_: Decode` or `_: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 927 | let obj_d = Enum::decode(&mut &data[..]).unwrap(); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called 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 `deserializing_of_big_recursively_nested_enum_works::Enum: Decode` [INFO] [stdout] `deserializing_of_big_recursively_nested_enum_works::Enum: WrapperTypeDecode` [INFO] [stdout] which is required by `deserializing_of_big_recursively_nested_enum_works::Enum: Decode` [INFO] [stdout] `<&deserializing_of_big_recursively_nested_enum_works::Enum as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&deserializing_of_big_recursively_nested_enum_works::Enum: Decode` [INFO] [stdout] `&deserializing_of_big_recursively_nested_enum_works::Enum: WrapperTypeDecode` [INFO] [stdout] which is required by `&deserializing_of_big_recursively_nested_enum_works::Enum: Decode` [INFO] [stdout] `<&mut deserializing_of_big_recursively_nested_enum_works::Enum as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut deserializing_of_big_recursively_nested_enum_works::Enum: Decode` [INFO] [stdout] `&mut deserializing_of_big_recursively_nested_enum_works::Enum: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut deserializing_of_big_recursively_nested_enum_works::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[E0599]: the variant or associated item `decode_with_depth_limit` exists for enum `deserializing_of_big_recursively_nested_enum_works::Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:933:21 [INFO] [stdout] | [INFO] [stdout] 869 | enum Enum { [INFO] [stdout] | --------- variant or associated item `decode_with_depth_limit` not found for this enum because it doesn't satisfy `_: DecodeLimit` or `_: Decode` [INFO] [stdout] ... [INFO] [stdout] 933 | let obj_d2 = Enum::decode_with_depth_limit(40, &mut &data[..]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `deserializing_of_big_recursively_nested_enum_works::Enum: Decode` [INFO] [stdout] which is required by `deserializing_of_big_recursively_nested_enum_works::Enum: DecodeLimit` [INFO] [stdout] `&deserializing_of_big_recursively_nested_enum_works::Enum: Decode` [INFO] [stdout] which is required by `&deserializing_of_big_recursively_nested_enum_works::Enum: DecodeLimit` [INFO] [stdout] `&mut deserializing_of_big_recursively_nested_enum_works::Enum: Decode` [INFO] [stdout] which is required by `&mut deserializing_of_big_recursively_nested_enum_works::Enum: DecodeLimit` [INFO] [stdout] note: the trait `Decode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:296:1 [INFO] [stdout] | [INFO] [stdout] 296 | pub trait Decode: 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_with_depth_limit`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `DecodeLimit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode` found for struct `Vec>` in the current scope [INFO] [stdout] --> tests/mod.rs:968:18 [INFO] [stdout] | [INFO] [stdout] 968 | let data = objs.encode(); [INFO] [stdout] | ^^^^^^ method not found in `Vec>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Vec>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:969:28 [INFO] [stdout] | [INFO] [stdout] 969 | let objs_d = Vec::::decode(&mut &data[..]).unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Vec>` consider using one of the following associated functions: [INFO] [stdout] Vec::::new [INFO] [stdout] Vec::::with_capacity [INFO] [stdout] Vec::::try_with_capacity [INFO] [stdout] Vec::::from_raw_parts [INFO] [stdout] and 6 others [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/vec/mod.rs:439:5 [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `<&Vec> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Vec>: Decode` [INFO] [stdout] `&Vec>: WrapperTypeDecode` [INFO] [stdout] which is required by `&Vec>: Decode` [INFO] [stdout] `<&mut Vec> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Vec>: Decode` [INFO] [stdout] `&mut Vec>: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Vec>: Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `parity-scale-codec` (test "mod") due to 77 previous errors [INFO] running `Command { std: "docker" "inspect" "80e5a2356faed4c1ddf6883abdf24f94e64683137a164e0f0cd7e8de69ff33a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80e5a2356faed4c1ddf6883abdf24f94e64683137a164e0f0cd7e8de69ff33a8", kill_on_drop: false }` [INFO] [stdout] 80e5a2356faed4c1ddf6883abdf24f94e64683137a164e0f0cd7e8de69ff33a8