[INFO] fetching crate parity-scale-codec 3.6.12... [INFO] checking parity-scale-codec-3.6.12 against master#8549802939cd01111c46e34a7b67cb1933977af9 for pr-132712 [INFO] extracting crate parity-scale-codec 3.6.12 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate parity-scale-codec 3.6.12 on toolchain 8549802939cd01111c46e34a7b67cb1933977af9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8549802939cd01111c46e34a7b67cb1933977af9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate parity-scale-codec 3.6.12 [INFO] finished tweaking crates.io crate parity-scale-codec 3.6.12 [INFO] tweaked toml for crates.io crate parity-scale-codec 3.6.12 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8549802939cd01111c46e34a7b67cb1933977af9" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 133 packages to latest compatible versions [INFO] [stderr] Adding criterion v0.4.0 (available: v0.5.1) [INFO] [stderr] Adding generic-array v0.14.7 (available: v1.1.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8549802939cd01111c46e34a7b67cb1933977af9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+8549802939cd01111c46e34a7b67cb1933977af9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9e3e10aba9b89d0ccf8874d99fbde8afb67506807331bae622178b1fc07519a2 [INFO] running `Command { std: "docker" "start" "-a" "9e3e10aba9b89d0ccf8874d99fbde8afb67506807331bae622178b1fc07519a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9e3e10aba9b89d0ccf8874d99fbde8afb67506807331bae622178b1fc07519a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e3e10aba9b89d0ccf8874d99fbde8afb67506807331bae622178b1fc07519a2", kill_on_drop: false }` [INFO] [stdout] 9e3e10aba9b89d0ccf8874d99fbde8afb67506807331bae622178b1fc07519a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+8549802939cd01111c46e34a7b67cb1933977af9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5061140fb3023d7afdede3e98ff6f4be451457dc8a47492a53165ddd64623208 [INFO] running `Command { std: "docker" "start" "-a" "5061140fb3023d7afdede3e98ff6f4be451457dc8a47492a53165ddd64623208", kill_on_drop: false }` [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking os_str_bytes v6.6.1 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking textwrap v0.16.1 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking byte-slice-cast v1.2.2 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking tempfile v3.14.0 [INFO] [stderr] Checking toml_edit v0.22.22 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking rusty-fork v0.3.0 [INFO] [stderr] Checking proptest v1.5.0 [INFO] [stderr] Checking regex-automata v0.4.8 [INFO] [stderr] Checking clap v3.2.25 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Checking trybuild v1.0.101 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Checking criterion v0.4.0 [INFO] [stderr] Checking quickcheck v1.0.3 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.2 [INFO] [stderr] Checking parity-scale-codec v3.6.12 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/skip.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use parity_scale_codec_derive::{Encode as DeriveEncode, Decode as DeriveDecode}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `parity_scale_codec_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 1 | use parity_scale_codec::{Encode as DeriveEncode, Decode as DeriveDecode}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/skip.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use parity_scale_codec_derive::{Encode as DeriveEncode, Decode as DeriveDecode}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `parity_scale_codec_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 12 | use parity_scale_codec::{Encode as DeriveEncode, Decode as DeriveDecode}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/chain-error.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use parity_scale_codec_derive::Decode as DeriveDecode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `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::Decode as DeriveDecode; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use parity_scale_codec_derive::{Decode as DeriveDecode, Encode as DeriveEncode}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `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::{Decode as DeriveDecode, Encode as DeriveEncode}; [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 undeclared crate or module `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::Encode as DeriveEncode; [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, Encode}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `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::{Decode, Encode}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/skip.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/skip.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/skip.rs:23:6 [INFO] [stdout] | [INFO] [stdout] 23 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/skip.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/type_inference.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use parity_scale_codec_derive::Decode as DeriveDecode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `parity_scale_codec_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 17 | use parity_scale_codec::Decode as DeriveDecode; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/variant_number.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use parity_scale_codec_derive::Encode as DeriveEncode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `parity_scale_codec_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 1 | 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/skip.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | #[codec(index = 15)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/skip.rs:71:6 [INFO] [stdout] | [INFO] [stdout] 71 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | #[codec(encoded_as = "::Type")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `parity-scale-codec` (test "clippy") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | #[codec(compact)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | Unnamed(#[codec(encoded_as = "::Type")] T), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | #[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/mod.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | UnnamedCompact(#[codec(compact)] T), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> benches/benches.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use parity_scale_codec_derive::{Encode, Decode}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `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::{Encode, Decode}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | #[codec(compact)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | #[codec(compact)] [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] [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/mod.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | Unnamed(#[codec(compact)] u64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | #[codec(compact)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:379:5 [INFO] [stdout] | [INFO] [stdout] 379 | #[codec(encoded_as = "u32")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `parity-scale-codec` (test "type_inference") due to 1 previous error [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/mod.rs:413:6 [INFO] [stdout] | [INFO] [stdout] 413 | #[codec(compact)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:482:4 [INFO] [stdout] | [INFO] [stdout] 482 | #[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:580:4 [INFO] [stdout] | [INFO] [stdout] 580 | #[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/variant_number.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:581:4 [INFO] [stdout] | [INFO] [stdout] 581 | #[codec(decode_bound(N: Decode, T: Default))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/variant_number.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | #[codec(index = 1)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:588:4 [INFO] [stdout] | [INFO] [stdout] 588 | #[codec(encode_bound())] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parity_scale_codec_derive` [INFO] [stdout] --> tests/single_field_struct_encoding.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use parity_scale_codec_derive::{Encode as DeriveEncode, Decode as DeriveDecode, CompactAs as DeriveCompactAs}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `parity_scale_codec_derive` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 1 | use parity_scale_codec::{Encode as DeriveEncode, Decode as DeriveDecode, CompactAs as DeriveCompactAs}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:589:4 [INFO] [stdout] | [INFO] [stdout] 589 | #[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:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | #[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:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | #[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:22:4 [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/single_field_struct_encoding.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | #[codec(encoded_as = "::Type")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | struct USkip(#[codec(skip)] u32, u32, #[codec(skip)] u32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:42:41 [INFO] [stdout] | [INFO] [stdout] 42 | struct USkip(#[codec(skip)] u32, u32, #[codec(skip)] u32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | struct Uc(#[codec(compact)] u32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | struct Ucas(#[codec(compact)] U); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | 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:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | struct SSkipcas(#[codec(compact)] SSkip); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:57:28 [INFO] [stdout] | [INFO] [stdout] 57 | struct Uh(#[codec(encoded_as = "::Type")] T); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for enum `Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 14 | 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 | assert_eq!(ea.encode(), Vec::new()); [INFO] [stdout] | ^^^^^^ method cannot be called on `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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Wrapper`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/chain-error.rs:44:27 [INFO] [stdout] | [INFO] [stdout] 19 | struct Wrapper(T); [INFO] [stdout] | ----------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `Wrapper: Decode` or `Wrapper: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 44 | Wrapper::::decode(&mut &encoded[..]).unwrap_err().to_string(), [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Wrapper` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `Wrapper: Decode` [INFO] [stdout] `Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `Wrapper: Decode` [INFO] [stdout] `<&Wrapper as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Wrapper: Decode` [INFO] [stdout] `&Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `&Wrapper: Decode` [INFO] [stdout] `<&mut Wrapper as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Wrapper: Decode` [INFO] [stdout] `&mut Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Wrapper: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `encode` exists for enum `T`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/variant_number.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 7 | enum T { [INFO] [stdout] | ------ method `encode` not found for this enum because it doesn't satisfy `<_ as __Deref>::Target = _`, `_: Encode` or `_: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 12 | assert_eq!(T::A.encode(), vec![1]); [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 `discriminant_variant_counted_in_default_index::T: Encode` [INFO] [stdout] `discriminant_variant_counted_in_default_index::T: WrapperTypeEncode` [INFO] [stdout] which is required by `discriminant_variant_counted_in_default_index::T: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `Vec`, but its trait bounds were not satisfied [INFO] [stdout] --> benches/benches.rs:87:35 [INFO] [stdout] | [INFO] [stdout] 87 | let mut events = Vec::::decode(&mut &encoded_events_vec[..]) [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Vec` 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/8549802939cd01111c46e34a7b67cb1933977af9/library/alloc/src/vec/mod.rs:422:5 [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `<&Vec as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Vec: parity_scale_codec::Decode` [INFO] [stdout] `&Vec: WrapperTypeDecode` [INFO] [stdout] which is required by `&Vec: parity_scale_codec::Decode` [INFO] [stdout] `<&mut Vec as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Vec: parity_scale_codec::Decode` [INFO] [stdout] `&mut Vec: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Vec: parity_scale_codec::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 `<_ as __Deref>::Target = _`, `_: Encode` or `_: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 13 | assert_eq!(T::B.encode(), vec![1]); [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 `discriminant_variant_counted_in_default_index::T: Encode` [INFO] [stdout] `discriminant_variant_counted_in_default_index::T: WrapperTypeEncode` [INFO] [stdout] which is required by `discriminant_variant_counted_in_default_index::T: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `size_hint` exists for 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 `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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `encode` exists for enum `T`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/variant_number.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 19 | enum T { [INFO] [stdout] | ------ method `encode` not found for this enum because it doesn't satisfy `<_ as __Deref>::Target = _`, `_: Encode` or `_: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 25 | 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 `skipped_variant_not_counted_in_default_index::T: Encode` [INFO] [stdout] `skipped_variant_not_counted_in_default_index::T: WrapperTypeEncode` [INFO] [stdout] which is required by `skipped_variant_not_counted_in_default_index::T: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Wrapper`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/chain-error.rs:58:29 [INFO] [stdout] | [INFO] [stdout] 19 | struct Wrapper(T); [INFO] [stdout] | ----------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `Wrapper: Decode` or `Wrapper: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 58 | Wrapper::::decode(&mut &encoded[..]).unwrap_err().to_string(), [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Wrapper` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `Wrapper: Decode` [INFO] [stdout] `Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `Wrapper: Decode` [INFO] [stdout] `<&Wrapper as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Wrapper: Decode` [INFO] [stdout] `&Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `&Wrapper: Decode` [INFO] [stdout] `<&mut Wrapper as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Wrapper: Decode` [INFO] [stdout] `&mut Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Wrapper: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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 `Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:51:34 [INFO] [stdout] | [INFO] [stdout] 14 | 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] 51 | let mut eb_encoded: &[u8] = &eb.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `T`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/variant_number.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 19 | enum T { [INFO] [stdout] | ------ method `encode` not found for this enum because it doesn't satisfy `<_ as __Deref>::Target = _`, `_: Encode` or `_: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 26 | 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 `skipped_variant_not_counted_in_default_index::T: Encode` [INFO] [stdout] `skipped_variant_not_counted_in_default_index::T: WrapperTypeEncode` [INFO] [stdout] which is required by `skipped_variant_not_counted_in_default_index::T: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `E`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/chain-error.rs:69:6 [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] 69 | E::decode(&mut &encoded[..]).unwrap_err().to_string(), [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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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 `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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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]: no method named `encode` found for struct `Vec` in the current scope [INFO] [stdout] --> benches/benches.rs:104:31 [INFO] [stdout] | [INFO] [stdout] 104 | encoded_events_vec = events.encode(); [INFO] [stdout] | ^^^^^^ method not found in `Vec` [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:82:6 [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] 82 | E::decode(&mut &encoded[..]).unwrap_err().to_string(), [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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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 `Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:52:34 [INFO] [stdout] | [INFO] [stdout] 14 | 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] 52 | let mut ec_encoded: &[u8] = &ec.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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[E0277]: the trait bound `Event: parity_scale_codec::Encode` is not satisfied [INFO] [stdout] --> benches/benches.rs:107:25 [INFO] [stdout] | [INFO] [stdout] 107 | encoded_events_vec = as EncodeAppend>::append_or_new( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 108 | | encoded_events_vec, [INFO] [stdout] 109 | | &[Event::ComplexEvent(data.to_vec(), 4, 5, 6, 9)], [INFO] [stdout] 110 | | ).unwrap(); [INFO] [stdout] | |_____________^ the trait `WrapperTypeEncode` is not implemented for `Event` [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<'a, T> [INFO] [stdout] Rc [INFO] [stdout] String [INFO] [stdout] Vec [INFO] [stdout] parity_scale_codec::Ref<'a, T, U> [INFO] [stdout] = note: required for `Event` to implement `parity_scale_codec::Encode` [INFO] [stdout] = note: required for `Vec` to implement `parity_scale_codec::EncodeAppend` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&Event: EncodeLike` is not satisfied [INFO] [stdout] --> benches/benches.rs:107:26 [INFO] [stdout] | [INFO] [stdout] 107 | encoded_events_vec = as EncodeAppend>::append_or_new( [INFO] [stdout] | ^^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Event` [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<'a, T> [INFO] [stdout] Rc [INFO] [stdout] String [INFO] [stdout] Vec [INFO] [stdout] parity_scale_codec::Ref<'a, T, U> [INFO] [stdout] = note: required for `Event` to implement `parity_scale_codec::Encode` [INFO] [stdout] = note: required for `&Event` to implement `EncodeLike` [INFO] [stdout] note: required by a bound in `append_or_new` [INFO] [stdout] --> /opt/rustwide/workdir/src/encode_append.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 45 | fn append_or_new( [INFO] [stdout] | ------------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 51 | EncodeLikeItem: EncodeLike, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `EncodeAppend::append_or_new` [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:53:34 [INFO] [stdout] | [INFO] [stdout] 30 | 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] 53 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `T`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/variant_number.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 32 | enum T { [INFO] [stdout] | ------ method `encode` not found for this enum because it doesn't satisfy `<_ as __Deref>::Target = _`, `_: Encode` or `_: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 38 | assert_eq!(T::A.encode(), vec![1]); [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 `index_attr_variant_counted_and_reused_in_default_index::T: Encode` [INFO] [stdout] `index_attr_variant_counted_and_reused_in_default_index::T: WrapperTypeEncode` [INFO] [stdout] which is required by `index_attr_variant_counted_and_reused_in_default_index::T: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 variant or associated item `decode` exists for enum `E`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/chain-error.rs:95:6 [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] 95 | E::decode(&mut &encoded[..]).unwrap_err().to_string(), [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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:39:18 [INFO] [stdout] | [INFO] [stdout] 32 | enum T { [INFO] [stdout] | ------ method `encode` not found for this enum because it doesn't satisfy `<_ as __Deref>::Target = _`, `_: Encode` or `_: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 39 | assert_eq!(T::B.encode(), vec![1]); [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 `index_attr_variant_counted_and_reused_in_default_index::T: Encode` [INFO] [stdout] `index_attr_variant_counted_and_reused_in_default_index::T: WrapperTypeEncode` [INFO] [stdout] which is required by `index_attr_variant_counted_and_reused_in_default_index::T: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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:54:34 [INFO] [stdout] | [INFO] [stdout] 37 | struct StructUnnamed( [INFO] [stdout] | ----------------------------------- method `encode` not found for this struct because it doesn't satisfy `::Target = _`, `StructUnnamed: Encode` or `StructUnnamed: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 54 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `Enum<_, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:56:19 [INFO] [stdout] | [INFO] [stdout] 14 | 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] 56 | assert_eq!(Enum::decode(&mut eb_encoded).unwrap(), eb); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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] [stderr] error: could not compile `parity-scale-codec` (test "chain-error") due to 6 previous errors [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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 variant or associated item `decode` exists for enum `Enum<_, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 14 | 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] 57 | assert_eq!(Enum::decode(&mut ec_encoded).unwrap(), ec); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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] [stderr] error: could not compile `parity-scale-codec` (test "variant_number") due to 9 previous errors [INFO] [stdout] error[E0599]: the method `using_encoded` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 50 | 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] 114 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `StructNamed<_>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:58:26 [INFO] [stdout] | [INFO] [stdout] 30 | 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] 58 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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]: no method named `encode` found for struct `Vec` in the current scope [INFO] [stdout] --> benches/benches.rs:190:18 [INFO] [stdout] | [INFO] [stdout] 190 | b.iter(|| vec.encode()) [INFO] [stdout] | ^^^^^^ method not found in `Vec` [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:117:4 [INFO] [stdout] | [INFO] [stdout] 50 | 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] 117 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `StructUnnamed<_>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:59:28 [INFO] [stdout] | [INFO] [stdout] 37 | struct StructUnnamed( [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] 59 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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 "size_hint") due to 13 previous errors [INFO] [stdout] error[E0599]: the method `using_encoded` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 50 | 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] 120 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `S`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:88:15 [INFO] [stdout] | [INFO] [stdout] 6 | 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] 88 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:76:62 [INFO] [stdout] | [INFO] [stdout] 68 | 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] 76 | let encoded = Enum::Data { some_named: 1, ignore: Some(1) }.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `SSkip`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:89:20 [INFO] [stdout] | [INFO] [stdout] 12 | 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] 89 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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:125:23 [INFO] [stdout] | [INFO] [stdout] 50 | 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] 125 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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]: no method named `encode` found for struct `Vec` in the current scope [INFO] [stdout] --> benches/benches.rs:201:18 [INFO] [stdout] | [INFO] [stdout] 201 | let vec = vec.encode(); [INFO] [stdout] | ^^^^^^ method not found in `Vec` [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:127:23 [INFO] [stdout] | [INFO] [stdout] 50 | 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] 127 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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[E0277]: the trait bound `Vec: parity_scale_codec::Decode` is not satisfied [INFO] [stdout] --> benches/benches.rs:205:31 [INFO] [stdout] | [INFO] [stdout] 205 | let _: Vec = Decode::decode(&mut &vec[..]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `parity_scale_codec::Decode` is not implemented for `Vec` [INFO] [stdout] | [INFO] [stdout] = help: the trait `parity_scale_codec::Decode` is implemented for `Vec` [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:90:16 [INFO] [stdout] | [INFO] [stdout] 21 | 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] 90 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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:129:23 [INFO] [stdout] | [INFO] [stdout] 50 | 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] 129 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `parity-scale-codec` (test "skip") due to 18 previous errors [INFO] [stdout] error[E0599]: the method `encode` exists for struct `Sh`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:91:16 [INFO] [stdout] | [INFO] [stdout] 27 | 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] 91 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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:131:23 [INFO] [stdout] | [INFO] [stdout] 50 | 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] 131 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:92:15 [INFO] [stdout] | [INFO] [stdout] 34 | 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] 92 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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:136:26 [INFO] [stdout] | [INFO] [stdout] 61 | 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] 136 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `USkip`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:93:20 [INFO] [stdout] | [INFO] [stdout] 42 | 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] 93 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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: E0277, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [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:139:26 [INFO] [stdout] | [INFO] [stdout] 61 | 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] 139 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `Uc`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:94:16 [INFO] [stdout] | [INFO] [stdout] 45 | 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] 94 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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` (bench "benches") due to 8 previous errors [INFO] [stdout] error[E0599]: the method `using_encoded` exists for enum `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:142:26 [INFO] [stdout] | [INFO] [stdout] 61 | 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] 142 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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]: no method named `encode` found for struct `Compact` in the current scope [INFO] [stdout] --> tests/single_field_struct_encoding.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 95 | 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] 95 | assert_eq!(ucom.0.0.encode(), ucom_encoded); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `Ucas`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:96:18 [INFO] [stdout] | [INFO] [stdout] 48 | 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] 96 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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:147:35 [INFO] [stdout] | [INFO] [stdout] 61 | 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] 147 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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 `USkipcas`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:97:24 [INFO] [stdout] | [INFO] [stdout] 51 | 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] 97 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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:149:35 [INFO] [stdout] | [INFO] [stdout] 61 | 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] 149 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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 `SSkipcas`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:98:24 [INFO] [stdout] | [INFO] [stdout] 54 | 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] 98 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `Uh`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:99:16 [INFO] [stdout] | [INFO] [stdout] 57 | 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] 99 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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:151:35 [INFO] [stdout] | [INFO] [stdout] 61 | 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] 151 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:101:19 [INFO] [stdout] | [INFO] [stdout] 6 | 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] 101 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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 `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:153:35 [INFO] [stdout] | [INFO] [stdout] 61 | 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] 153 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:102:28 [INFO] [stdout] | [INFO] [stdout] 12 | 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] 102 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:103:21 [INFO] [stdout] | [INFO] [stdout] 21 | 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] 103 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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 `using_encoded` exists for struct `Struct>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:160:4 [INFO] [stdout] | [INFO] [stdout] 28 | 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] 160 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `Sh<_>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:104:21 [INFO] [stdout] | [INFO] [stdout] 27 | 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] 104 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:105:19 [INFO] [stdout] | [INFO] [stdout] 34 | 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] 105 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:167:20 [INFO] [stdout] | [INFO] [stdout] 28 | 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] 167 | 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:44:2 [INFO] [stdout] | [INFO] [stdout] 44 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:106:28 [INFO] [stdout] | [INFO] [stdout] 42 | 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] 106 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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 `using_encoded` exists for struct `Unit`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 22 | 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] 176 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `Uc`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:107:21 [INFO] [stdout] | [INFO] [stdout] 45 | 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] 107 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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 `Unit`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:181:19 [INFO] [stdout] | [INFO] [stdout] 22 | 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] 181 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:108:35 [INFO] [stdout] | [INFO] [stdout] 108 | 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 method `using_encoded` exists for struct `Indexed`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:188:4 [INFO] [stdout] | [INFO] [stdout] 25 | 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] 188 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `Ucas`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:109:25 [INFO] [stdout] | [INFO] [stdout] 48 | 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] 109 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:191:22 [INFO] [stdout] | [INFO] [stdout] 25 | 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] 191 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:110:35 [INFO] [stdout] | [INFO] [stdout] 51 | 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] 110 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:198:11 [INFO] [stdout] | [INFO] [stdout] 25 | 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] 198 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `SSkipcas`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/single_field_struct_encoding.rs:111:35 [INFO] [stdout] | [INFO] [stdout] 54 | 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] 111 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:112:21 [INFO] [stdout] | [INFO] [stdout] 57 | 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] 112 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:205:11 [INFO] [stdout] | [INFO] [stdout] 25 | 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] 205 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:212:12 [INFO] [stdout] | [INFO] [stdout] 50 | 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] 212 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:219:27 [INFO] [stdout] | [INFO] [stdout] 28 | 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] 219 | 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:44:2 [INFO] [stdout] | [INFO] [stdout] 44 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:226:27 [INFO] [stdout] | [INFO] [stdout] 28 | 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] 226 | 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:44:2 [INFO] [stdout] | [INFO] [stdout] 44 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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 `encode` exists for struct `TestHasCompact`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:266:43 [INFO] [stdout] | [INFO] [stdout] 68 | 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] 266 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 "single_field_struct_encoding") due to 36 previous errors [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:269:37 [INFO] [stdout] | [INFO] [stdout] 68 | 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] 269 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:276:43 [INFO] [stdout] | [INFO] [stdout] 68 | 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] 276 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `TestCompactHasCompact`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:279:44 [INFO] [stdout] | [INFO] [stdout] 74 | 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] 279 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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 `&TestHasCompactEnum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:294:24 [INFO] [stdout] | [INFO] [stdout] 80 | enum TestHasCompactEnum { [INFO] [stdout] | -------------------------------------- doesn't satisfy ` as Deref>::Target = _`, `TestHasCompactEnum: Encode` or `TestHasCompactEnum: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 294 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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:297:43 [INFO] [stdout] | [INFO] [stdout] 80 | 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] 297 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:305:49 [INFO] [stdout] | [INFO] [stdout] 94 | 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] 305 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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:307:36 [INFO] [stdout] | [INFO] [stdout] 94 | 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] 307 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:318:24 [INFO] [stdout] | [INFO] [stdout] 100 | enum TestCompactAttributeEnum { [INFO] [stdout] | ----------------------------- doesn't satisfy `::Target = _`, `TestCompactAttributeEnum: Encode` or `TestCompactAttributeEnum: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 318 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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:320:42 [INFO] [stdout] | [INFO] [stdout] 100 | 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] 320 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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 `Struct`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:348:22 [INFO] [stdout] | [INFO] [stdout] 333 | 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] 348 | let encoded = value.encode(); [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 `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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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 `Struct<_, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:349:55 [INFO] [stdout] | [INFO] [stdout] 333 | 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] 349 | let decoded: Struct = Struct::decode(&mut &encoded[..]).unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item 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 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:384:4 [INFO] [stdout] | [INFO] [stdout] 375 | 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] 384 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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:420:4 [INFO] [stdout] | [INFO] [stdout] 411 | 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] 420 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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:445:4 [INFO] [stdout] | [INFO] [stdout] 439 | 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] 445 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:457:6 [INFO] [stdout] | [INFO] [stdout] 451 | 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] 457 | val.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:469:6 [INFO] [stdout] | [INFO] [stdout] 463 | 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] 469 | val.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `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_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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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:488:6 [INFO] [stdout] | [INFO] [stdout] 483 | 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] 488 | 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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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:497:24 [INFO] [stdout] | [INFO] [stdout] 497 | 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<'a, T> [INFO] [stdout] Rc [INFO] [stdout] Vec [INFO] [stdout] parity_scale_codec::Ref<'a, 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:496:28 [INFO] [stdout] | [INFO] [stdout] 496 | 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:497:24 [INFO] [stdout] | [INFO] [stdout] 497 | 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:496:37 [INFO] [stdout] | [INFO] [stdout] 496 | 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:500:20 [INFO] [stdout] | [INFO] [stdout] 494 | 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] 500 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:599:5 [INFO] [stdout] | [INFO] [stdout] 582 | 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] 598 | / Something:: { hello: Hello { _phantom: Default::default() }, val: 32u32 } [INFO] [stdout] 599 | | .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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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:601:31 [INFO] [stdout] | [INFO] [stdout] 582 | 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] 601 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:675:31 [INFO] [stdout] | [INFO] [stdout] 672 | struct HugeArrayNewtypeBox(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] 675 | 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:690:30 [INFO] [stdout] | [INFO] [stdout] 687 | 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] 690 | assert_eq!(*SmallArraysBox::decode(&mut data.as_slice()).unwrap().0, SmallArrays([1, 2], [3, 4])); [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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:726:29 [INFO] [stdout] | [INFO] [stdout] 706 | 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] 726 | assert_eq!(NewtypeWithZst::decode(&mut data.as_slice()).unwrap().field, [2]); [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 `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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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:744:26 [INFO] [stdout] | [INFO] [stdout] 737 | 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] 744 | 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 full type name has been written to '/opt/rustwide/target/debug/deps/mod-c6b4250de00bdae3.long-type-15739580248620017737.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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 `[Foobar; 4]`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:777:25 [INFO] [stdout] | [INFO] [stdout] 777 | assert!(<[Foobar; 4]>::decode(&mut data.as_slice()).is_err()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `[Foobar; 4]` 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 `Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:881:17 [INFO] [stdout] | [INFO] [stdout] 826 | 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] 881 | let data = obj.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `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 `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:356:1 [INFO] [stdout] | [INFO] [stdout] 356 | 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`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:884:20 [INFO] [stdout] | [INFO] [stdout] 826 | 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] 884 | let obj_d = Enum::decode(&mut &data[..]).unwrap(); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `Enum` 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:505:1 [INFO] [stdout] | [INFO] [stdout] 505 | 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 `Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:890:21 [INFO] [stdout] | [INFO] [stdout] 826 | 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] 890 | let obj_d2 = Enum::decode_with_depth_limit(40, &mut &data[..]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item cannot be called on `Enum` 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:289:1 [INFO] [stdout] | [INFO] [stdout] 289 | 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] 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 74 previous errors [INFO] running `Command { std: "docker" "inspect" "5061140fb3023d7afdede3e98ff6f4be451457dc8a47492a53165ddd64623208", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5061140fb3023d7afdede3e98ff6f4be451457dc8a47492a53165ddd64623208", kill_on_drop: false }` [INFO] [stdout] 5061140fb3023d7afdede3e98ff6f4be451457dc8a47492a53165ddd64623208