[INFO] fetching crate jam-codec 0.1.1... [INFO] checking jam-codec-0.1.1 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate jam-codec 0.1.1 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate jam-codec 0.1.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate jam-codec 0.1.1 [INFO] tweaked toml for crates.io crate jam-codec 0.1.1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate jam-codec 0.1.1 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate jam-codec 0.1.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 708ca67e0d810a2af42eebcc297f46d66618eeda64d6c9d2b8e5cfedf6cce261 [INFO] running `Command { std: "docker" "start" "-a" "708ca67e0d810a2af42eebcc297f46d66618eeda64d6c9d2b8e5cfedf6cce261", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "708ca67e0d810a2af42eebcc297f46d66618eeda64d6c9d2b8e5cfedf6cce261", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "708ca67e0d810a2af42eebcc297f46d66618eeda64d6c9d2b8e5cfedf6cce261", kill_on_drop: false }` [INFO] [stdout] 708ca67e0d810a2af42eebcc297f46d66618eeda64d6c9d2b8e5cfedf6cce261 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4864cde3f504de689693ec5e09651674550922c73e0654273b0c78e1c722b2b1 [INFO] running `Command { std: "docker" "start" "-a" "4864cde3f504de689693ec5e09651674550922c73e0654273b0c78e1c722b2b1", kill_on_drop: false }` [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling io-lifetimes v1.0.10 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling syn v2.0.105 [INFO] [stderr] Compiling rustix v0.37.25 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking regex-syntax v0.6.26 [INFO] [stderr] Checking linux-raw-sys v0.3.6 [INFO] [stderr] Checking itoa v1.0.8 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Checking winnow v0.7.11 [INFO] [stderr] Compiling target-triple v0.1.3 [INFO] [stderr] Checking ciborium-io v0.2.0 [INFO] [stderr] Checking rayon-core v1.9.1 [INFO] [stderr] Checking ciborium-ll v0.2.0 [INFO] [stderr] Checking clap_builder v4.5.27 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking regex v1.5.6 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Compiling jam-codec v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking toml_writer v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking const_format v0.2.34 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Checking toml_parser v1.0.0 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking criterion-plot v0.6.0 [INFO] [stderr] Checking clap v4.5.28 [INFO] [stderr] Checking rand_xorshift v0.4.0 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking glob v0.3.0 [INFO] [stderr] Checking quickcheck v1.0.3 [INFO] [stderr] Checking tempfile v3.5.0 [INFO] [stderr] Checking rusty-fork v0.3.0 [INFO] [stderr] Checking proptest v1.7.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.3 [INFO] [stderr] Compiling enumflags2_derive v0.7.12 [INFO] [stderr] Checking enumflags2 v0.7.12 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking serde_json v1.0.111 [INFO] [stderr] Checking serde_spanned v1.0.0 [INFO] [stderr] Checking toml_datetime v0.7.0 [INFO] [stderr] Checking ciborium v0.2.0 [INFO] [stderr] Checking toml v0.9.0 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.7.0 [INFO] [stderr] Checking trybuild v1.0.110 [INFO] [stdout] error[E0432]: unresolved import `jam_codec_derive` [INFO] [stdout] --> tests/mem_tracking.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use jam_codec_derive::{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `jam_codec_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jam_codec_derive`, use `cargo add jam_codec_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `jam_codec_derive` [INFO] [stdout] --> tests/test_vectors.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use jam_codec_derive::{Decode as DecodeDerive, Encode as EncodeDerive}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `jam_codec_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jam_codec_derive`, use `cargo add jam_codec_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `jam_codec_derive` [INFO] [stdout] --> tests/variant_number.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use jam_codec_derive::Encode as DeriveEncode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `jam_codec_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jam_codec_derive`, use `cargo add jam_codec_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `jam_codec_derive` [INFO] [stdout] --> tests/bitflags.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use jam_codec_derive::{Decode, Encode}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `jam_codec_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jam_codec_derive`, use `cargo add jam_codec_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/variant_number.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `jam_codec_derive` [INFO] [stdout] --> tests/mod.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use jam_codec_derive::{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `jam_codec_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jam_codec_derive`, use `cargo add jam_codec_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | #[codec(index = 15)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | #[codec(encoded_as = "::Type")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | #[codec(compact)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | Unnamed(#[codec(encoded_as = "::Type")] T), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | #[codec(encoded_as = "::Type")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:95:19 [INFO] [stdout] | [INFO] [stdout] 95 | UnnamedCompact(#[codec(compact)] T), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 97 | #[codec(compact)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | #[codec(compact)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | Unnamed(#[codec(compact)] u64), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | #[codec(compact)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:408:5 [INFO] [stdout] | [INFO] [stdout] 408 | #[codec(encoded_as = "u32")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:442:6 [INFO] [stdout] | [INFO] [stdout] 442 | #[codec(compact)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:519:4 [INFO] [stdout] | [INFO] [stdout] 519 | #[codec(dumb_trait_bound)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:617:4 [INFO] [stdout] | [INFO] [stdout] 617 | #[codec(encode_bound(N: Encode, T: Default))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:618:4 [INFO] [stdout] | [INFO] [stdout] 618 | #[codec(decode_bound(N: Decode, T: Default))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:619:4 [INFO] [stdout] | [INFO] [stdout] 619 | #[codec(decode_with_mem_tracking_bound(N: DecodeWithMemTracking, T: Default))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:626:4 [INFO] [stdout] | [INFO] [stdout] 626 | #[codec(encode_bound())] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/mod.rs:627:4 [INFO] [stdout] | [INFO] [stdout] 627 | #[codec(decode_bound())] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `jam_codec_derive` [INFO] [stdout] --> tests/skip.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use jam_codec_derive::{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `jam_codec_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jam_codec_derive`, use `cargo add jam_codec_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `jam_codec_derive` [INFO] [stdout] --> tests/chain-error.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use jam_codec_derive::Decode as DeriveDecode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `jam_codec_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jam_codec_derive`, use `cargo add jam_codec_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `jam_codec_derive` [INFO] [stdout] --> tests/skip.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | use jam_codec_derive::{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `jam_codec_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jam_codec_derive`, use `cargo add jam_codec_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for enum `T`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/variant_number.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 7 | enum T { [INFO] [stdout] | ------ method `encode` not found for this enum because it doesn't satisfy `::Target = _`, `T: Encode` or `T: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 13 | assert_eq!(T::A.encode(), vec![]); [INFO] [stdout] | ^^^^^^ method cannot be called on `T` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `T: Encode` [INFO] [stdout] `T: WrapperTypeEncode` [INFO] [stdout] which is required by `T: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for enum `T`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/variant_number.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 7 | enum T { [INFO] [stdout] | ------ method `encode` not found for this enum because it doesn't satisfy `::Target = _`, `T: Encode` or `T: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 14 | assert_eq!(T::B.encode(), vec![0]); [INFO] [stdout] | ^^^^^^ method cannot be called on `T` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `T: Encode` [INFO] [stdout] `T: WrapperTypeEncode` [INFO] [stdout] which is required by `T: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `jam-codec` (test "variant_number") due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/skip.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TestEnum: Encode` is not satisfied [INFO] [stdout] --> tests/test_vectors.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 172 | t.process(TestEnum::::Dummy); [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `TestEnum` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `WrapperTypeEncode`: [INFO] [stdout] &T [INFO] [stdout] &mut T [INFO] [stdout] Arc [INFO] [stdout] Box [INFO] [stdout] Cow<'_, T> [INFO] [stdout] Rc [INFO] [stdout] String [INFO] [stdout] Vec [INFO] [stdout] jam_codec::Ref<'_, T, U> [INFO] [stdout] = note: required for `TestEnum` to implement `Encode` [INFO] [stdout] note: required by a bound in `TestHarness::process` [INFO] [stdout] --> tests/test_vectors.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 78 | fn process(&mut self, v: T) { [INFO] [stdout] | ^^^^^^ required by this bound in `TestHarness::process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TestEnum: Decode` is not satisfied [INFO] [stdout] --> tests/test_vectors.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 172 | t.process(TestEnum::::Dummy); [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^ the trait `WrapperTypeDecode` is not implemented for `TestEnum` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [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 `TestEnum` to implement `Decode` [INFO] [stdout] note: required by a bound in `TestHarness::process` [INFO] [stdout] --> tests/test_vectors.rs:78:25 [INFO] [stdout] | [INFO] [stdout] 78 | fn process(&mut self, v: T) { [INFO] [stdout] | ^^^^^^ required by this bound in `TestHarness::process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/skip.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/skip.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | C(#[codec(skip)] T, u32), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TestEnum: Encode` is not satisfied [INFO] [stdout] --> tests/test_vectors.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 173 | t.process(TestEnum::Foo(42_u8)); [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `TestEnum` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `WrapperTypeEncode`: [INFO] [stdout] &T [INFO] [stdout] &mut T [INFO] [stdout] Arc [INFO] [stdout] Box [INFO] [stdout] Cow<'_, T> [INFO] [stdout] Rc [INFO] [stdout] String [INFO] [stdout] Vec [INFO] [stdout] jam_codec::Ref<'_, T, U> [INFO] [stdout] = note: required for `TestEnum` to implement `Encode` [INFO] [stdout] note: required by a bound in `TestHarness::process` [INFO] [stdout] --> tests/test_vectors.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 78 | fn process(&mut self, v: T) { [INFO] [stdout] | ^^^^^^ required by this bound in `TestHarness::process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TestEnum: Decode` is not satisfied [INFO] [stdout] --> tests/test_vectors.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 173 | t.process(TestEnum::Foo(42_u8)); [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^ the trait `WrapperTypeDecode` is not implemented for `TestEnum` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [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 `TestEnum` to implement `Decode` [INFO] [stdout] note: required by a bound in `TestHarness::process` [INFO] [stdout] --> tests/test_vectors.rs:78:25 [INFO] [stdout] | [INFO] [stdout] 78 | fn process(&mut self, v: T) { [INFO] [stdout] | ^^^^^^ required by this bound in `TestHarness::process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TestEnum: Encode` is not satisfied [INFO] [stdout] --> tests/test_vectors.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 174 | t.process(TestEnum::Bar([1_u8, 2, 3, 4, 5, 6, 7, 8])); [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `TestEnum` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `WrapperTypeEncode`: [INFO] [stdout] &T [INFO] [stdout] &mut T [INFO] [stdout] Arc [INFO] [stdout] Box [INFO] [stdout] Cow<'_, T> [INFO] [stdout] Rc [INFO] [stdout] String [INFO] [stdout] Vec [INFO] [stdout] jam_codec::Ref<'_, T, U> [INFO] [stdout] = note: required for `TestEnum` to implement `Encode` [INFO] [stdout] note: required by a bound in `TestHarness::process` [INFO] [stdout] --> tests/test_vectors.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 78 | fn process(&mut self, v: T) { [INFO] [stdout] | ^^^^^^ required by this bound in `TestHarness::process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TestEnum: Decode` is not satisfied [INFO] [stdout] --> tests/test_vectors.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 174 | t.process(TestEnum::Bar([1_u8, 2, 3, 4, 5, 6, 7, 8])); [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `WrapperTypeDecode` is not implemented for `TestEnum` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [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 `TestEnum` to implement `Decode` [INFO] [stdout] note: required by a bound in `TestHarness::process` [INFO] [stdout] --> tests/test_vectors.rs:78:25 [INFO] [stdout] | [INFO] [stdout] 78 | fn process(&mut self, v: T) { [INFO] [stdout] | ^^^^^^ required by this bound in `TestHarness::process` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/skip.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jam-codec` (test "bitflags") due to 1 previous error [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/skip.rs:39:42 [INFO] [stdout] | [INFO] [stdout] 39 | struct StructUnnamed(#[codec(skip)] T, u32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `codec` in this scope [INFO] [stdout] --> tests/skip.rs:69:6 [INFO] [stdout] | [INFO] [stdout] 69 | #[codec(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `jam_codec_derive` [INFO] [stdout] --> tests/type_inference.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use jam_codec_derive::{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `jam_codec_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jam_codec_derive`, use `cargo add jam_codec_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ComplexStruct: DecodeWithMemTracking` is not satisfied [INFO] [stdout] --> tests/mem_tracking.rs:117:3 [INFO] [stdout] | [INFO] [stdout] 116 | assert!(decode_object( [INFO] [stdout] | ------------- required by a bound introduced by this call [INFO] [stdout] 117 | / ComplexStruct { [INFO] [stdout] 118 | | test_enum: TestEnum::Array([0; 1000]), [INFO] [stdout] 119 | | boxed_test_enum: Box::new(TestEnum::Empty), [INFO] [stdout] 120 | | box_field: Box::new(1), [INFO] [stdout] 121 | | vec: vec![1; 10], [INFO] [stdout] 122 | | }, [INFO] [stdout] | |_________^ the trait `DecodeWithMemTracking` is not implemented for `ComplexStruct` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeWithMemTracking`: [INFO] [stdout] () [INFO] [stdout] (TupleElement0, TupleElement1) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, TupleElement3) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, ..., ..., ..., ...) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, ..., ..., ..., ..., ...) [INFO] [stdout] and 60 others [INFO] [stdout] note: required by a bound in `decode_object` [INFO] [stdout] --> tests/mem_tracking.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 46 | fn decode_object(obj: T, mem_limit: usize, expected_used_mem: usize) -> Result [INFO] [stdout] | ------------- required by a bound in this function [INFO] [stdout] 47 | where [INFO] [stdout] 48 | T: Encode + DecodeWithMemTracking + DecodeWithMemLimit + PartialEq + Debug, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `decode_object` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/mem_tracking-35559b9ebe216e94.long-type-9381232825870037676.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ComplexStruct: Encode` is not satisfied [INFO] [stdout] --> tests/mem_tracking.rs:117:3 [INFO] [stdout] | [INFO] [stdout] 116 | assert!(decode_object( [INFO] [stdout] | ------------- required by a bound introduced by this call [INFO] [stdout] 117 | / ComplexStruct { [INFO] [stdout] 118 | | test_enum: TestEnum::Array([0; 1000]), [INFO] [stdout] 119 | | boxed_test_enum: Box::new(TestEnum::Empty), [INFO] [stdout] 120 | | box_field: Box::new(1), [INFO] [stdout] 121 | | vec: vec![1; 10], [INFO] [stdout] 122 | | }, [INFO] [stdout] | |_________^ the trait `WrapperTypeEncode` is not implemented for `ComplexStruct` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `WrapperTypeEncode`: [INFO] [stdout] &T [INFO] [stdout] &mut T [INFO] [stdout] Arc [INFO] [stdout] Box [INFO] [stdout] Cow<'_, T> [INFO] [stdout] Rc [INFO] [stdout] String [INFO] [stdout] Vec [INFO] [stdout] jam_codec::Ref<'_, T, U> [INFO] [stdout] = note: required for `ComplexStruct` to implement `Encode` [INFO] [stdout] note: required by a bound in `decode_object` [INFO] [stdout] --> tests/mem_tracking.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 46 | fn decode_object(obj: T, mem_limit: usize, expected_used_mem: usize) -> Result [INFO] [stdout] | ------------- required by a bound in this function [INFO] [stdout] 47 | where [INFO] [stdout] 48 | T: Encode + DecodeWithMemTracking + DecodeWithMemLimit + PartialEq + Debug, [INFO] [stdout] | ^^^^^^ required by this bound in `decode_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ComplexStruct: DecodeWithMemTracking` is not satisfied [INFO] [stdout] --> tests/mem_tracking.rs:140:4 [INFO] [stdout] | [INFO] [stdout] 139 | decode_object( [INFO] [stdout] | ------------- required by a bound introduced by this call [INFO] [stdout] 140 | / ComplexStruct { [INFO] [stdout] 141 | | test_enum: TestEnum::Array([0; 1000]), [INFO] [stdout] 142 | | boxed_test_enum: Box::new(TestEnum::Empty), [INFO] [stdout] 143 | | box_field: Box::new(1), [INFO] [stdout] 144 | | vec: vec![1; 10], [INFO] [stdout] 145 | | }, [INFO] [stdout] | |_____________^ the trait `DecodeWithMemTracking` is not implemented for `ComplexStruct` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeWithMemTracking`: [INFO] [stdout] () [INFO] [stdout] (TupleElement0, TupleElement1) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, TupleElement3) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, ..., ..., ..., ...) [INFO] [stdout] (TupleElement0, TupleElement1, TupleElement2, ..., ..., ..., ..., ...) [INFO] [stdout] and 60 others [INFO] [stdout] note: required by a bound in `decode_object` [INFO] [stdout] --> tests/mem_tracking.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 46 | fn decode_object(obj: T, mem_limit: usize, expected_used_mem: usize) -> Result [INFO] [stdout] | ------------- required by a bound in this function [INFO] [stdout] 47 | where [INFO] [stdout] 48 | T: Encode + DecodeWithMemTracking + DecodeWithMemLimit + PartialEq + Debug, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `decode_object` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/mem_tracking-35559b9ebe216e94.long-type-9381232825870037676.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ComplexStruct: Encode` is not satisfied [INFO] [stdout] --> tests/mem_tracking.rs:140:4 [INFO] [stdout] | [INFO] [stdout] 139 | decode_object( [INFO] [stdout] | ------------- required by a bound introduced by this call [INFO] [stdout] 140 | / ComplexStruct { [INFO] [stdout] 141 | | test_enum: TestEnum::Array([0; 1000]), [INFO] [stdout] 142 | | boxed_test_enum: Box::new(TestEnum::Empty), [INFO] [stdout] 143 | | box_field: Box::new(1), [INFO] [stdout] 144 | | vec: vec![1; 10], [INFO] [stdout] 145 | | }, [INFO] [stdout] | |_____________^ the trait `WrapperTypeEncode` is not implemented for `ComplexStruct` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `WrapperTypeEncode`: [INFO] [stdout] &T [INFO] [stdout] &mut T [INFO] [stdout] Arc [INFO] [stdout] Box [INFO] [stdout] Cow<'_, T> [INFO] [stdout] Rc [INFO] [stdout] String [INFO] [stdout] Vec [INFO] [stdout] jam_codec::Ref<'_, T, U> [INFO] [stdout] = note: required for `ComplexStruct` to implement `Encode` [INFO] [stdout] note: required by a bound in `decode_object` [INFO] [stdout] --> tests/mem_tracking.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 46 | fn decode_object(obj: T, mem_limit: usize, expected_used_mem: usize) -> Result [INFO] [stdout] | ------------- required by a bound in this function [INFO] [stdout] 47 | where [INFO] [stdout] 48 | T: Encode + DecodeWithMemTracking + DecodeWithMemLimit + PartialEq + Debug, [INFO] [stdout] | ^^^^^^ required by this bound in `decode_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jam-codec` (test "type_inference") due to 1 previous error [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Wrapper`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/chain-error.rs:44:27 [INFO] [stdout] | [INFO] [stdout] 19 | struct Wrapper(T); [INFO] [stdout] | ----------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `Wrapper: Decode` or `Wrapper: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 44 | Wrapper::::decode(&mut &encoded[..]).unwrap_err().to_string(), [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Wrapper` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `Wrapper: Decode` [INFO] [stdout] `Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `Wrapper: Decode` [INFO] [stdout] `<&Wrapper as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Wrapper: Decode` [INFO] [stdout] `&Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `&Wrapper: Decode` [INFO] [stdout] `<&mut Wrapper as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Wrapper: Decode` [INFO] [stdout] `&mut Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Wrapper: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `using_encoded` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:142:4 [INFO] [stdout] | [INFO] [stdout] 56 | enum EnumType { [INFO] [stdout] | ------------- method `using_encoded` not found for this enum because it doesn't satisfy `::Target = _`, `EnumType: Encode` or `EnumType: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 142 | a.using_encoded(|ref slice| { [INFO] [stdout] | --^^^^^^^^^^^^^ method cannot be called on `EnumType` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `EnumType: Encode` [INFO] [stdout] `EnumType: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumType: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `using_encoded`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jam-codec` (test "mem_tracking") due to 5 previous errors [INFO] [stderr] error: could not compile `jam-codec` (test "test_vectors") due to 7 previous errors [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Wrapper`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/chain-error.rs:58:29 [INFO] [stdout] | [INFO] [stdout] 19 | struct Wrapper(T); [INFO] [stdout] | ----------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `Wrapper: Decode` or `Wrapper: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 58 | Wrapper::::decode(&mut &encoded[..]).unwrap_err().to_string(), [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Wrapper` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `Wrapper: Decode` [INFO] [stdout] `Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `Wrapper: Decode` [INFO] [stdout] `<&Wrapper as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Wrapper: Decode` [INFO] [stdout] `&Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `&Wrapper: Decode` [INFO] [stdout] `<&mut Wrapper as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Wrapper: Decode` [INFO] [stdout] `&mut Wrapper: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Wrapper: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `using_encoded` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:145:4 [INFO] [stdout] | [INFO] [stdout] 56 | enum EnumType { [INFO] [stdout] | ------------- method `using_encoded` not found for this enum because it doesn't satisfy `::Target = _`, `EnumType: Encode` or `EnumType: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 145 | b.using_encoded(|ref slice| { [INFO] [stdout] | --^^^^^^^^^^^^^ method cannot be called on `EnumType` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `EnumType: Encode` [INFO] [stdout] `EnumType: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumType: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `using_encoded`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `using_encoded` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:148:4 [INFO] [stdout] | [INFO] [stdout] 56 | enum EnumType { [INFO] [stdout] | ------------- method `using_encoded` not found for this enum because it doesn't satisfy `::Target = _`, `EnumType: Encode` or `EnumType: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 148 | c.using_encoded(|ref slice| { [INFO] [stdout] | --^^^^^^^^^^^^^ method cannot be called on `EnumType` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `EnumType: Encode` [INFO] [stdout] `EnumType: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumType: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `using_encoded`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `E`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/chain-error.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 30 | enum E { [INFO] [stdout] | ------ variant or associated item `decode` not found for this enum because it doesn't satisfy `::Wrapped = _`, `E: Decode` or `E: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 68 | assert_eq!(E::decode(&mut &encoded[..]).unwrap_err().to_string(), String::from(err),); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `E` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `E: Decode` [INFO] [stdout] `E: WrapperTypeDecode` [INFO] [stdout] which is required by `E: Decode` [INFO] [stdout] `<&E as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&E: Decode` [INFO] [stdout] `&E: WrapperTypeDecode` [INFO] [stdout] which is required by `&E: Decode` [INFO] [stdout] `<&mut E as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut E: Decode` [INFO] [stdout] `&mut E: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut E: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:153:23 [INFO] [stdout] | [INFO] [stdout] 56 | enum EnumType { [INFO] [stdout] | ------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `::Wrapped = _`, `EnumType: Decode` or `EnumType: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 153 | assert_eq!(EnumType::decode(&mut da).ok(), Some(a)); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumType` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `EnumType: Decode` [INFO] [stdout] `EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumType: Decode` [INFO] [stdout] `<&EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `&EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `<&mut EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumType: Decode` [INFO] [stdout] `&mut EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumType: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:155:23 [INFO] [stdout] | [INFO] [stdout] 56 | enum EnumType { [INFO] [stdout] | ------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `::Wrapped = _`, `EnumType: Decode` or `EnumType: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 155 | assert_eq!(EnumType::decode(&mut db).ok(), Some(b)); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumType` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `EnumType: Decode` [INFO] [stdout] `EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumType: Decode` [INFO] [stdout] `<&EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `&EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `<&mut EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumType: Decode` [INFO] [stdout] `&mut EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumType: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `E`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/chain-error.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 30 | enum E { [INFO] [stdout] | ------ variant or associated item `decode` not found for this enum because it doesn't satisfy `::Wrapped = _`, `E: Decode` or `E: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 78 | assert_eq!(E::decode(&mut &encoded[..]).unwrap_err().to_string(), String::from(err),); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `E` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `E: Decode` [INFO] [stdout] `E: WrapperTypeDecode` [INFO] [stdout] which is required by `E: Decode` [INFO] [stdout] `<&E as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&E: Decode` [INFO] [stdout] `&E: WrapperTypeDecode` [INFO] [stdout] which is required by `&E: Decode` [INFO] [stdout] `<&mut E as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut E: Decode` [INFO] [stdout] `&mut E: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut E: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:157:23 [INFO] [stdout] | [INFO] [stdout] 56 | enum EnumType { [INFO] [stdout] | ------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `::Wrapped = _`, `EnumType: Decode` or `EnumType: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 157 | assert_eq!(EnumType::decode(&mut dc).ok(), Some(c)); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumType` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `EnumType: Decode` [INFO] [stdout] `EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumType: Decode` [INFO] [stdout] `<&EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `&EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `<&mut EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumType: Decode` [INFO] [stdout] `&mut EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumType: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:159:23 [INFO] [stdout] | [INFO] [stdout] 56 | enum EnumType { [INFO] [stdout] | ------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `::Wrapped = _`, `EnumType: Decode` or `EnumType: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 159 | assert_eq!(EnumType::decode(&mut dz).ok(), None); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumType` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `EnumType: Decode` [INFO] [stdout] `EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumType: Decode` [INFO] [stdout] `<&EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `&EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `<&mut EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumType: Decode` [INFO] [stdout] `&mut EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumType: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for enum `enum_struct_test::Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:47:16 [INFO] [stdout] | [INFO] [stdout] 20 | enum Enum { [INFO] [stdout] | ---------------------------------------------------- method `encode` not found for this enum because it doesn't satisfy `::Target = _`, `enum_struct_test::Enum: Encode` or `enum_struct_test::Enum: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 47 | assert_eq!(ea.encode(), Vec::new()); [INFO] [stdout] | ^^^^^^ method cannot be called on `enum_struct_test::Enum` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `enum_struct_test::Enum: Encode` [INFO] [stdout] `enum_struct_test::Enum: WrapperTypeEncode` [INFO] [stdout] which is required by `enum_struct_test::Enum: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `E`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/chain-error.rs:88:16 [INFO] [stdout] | [INFO] [stdout] 30 | enum E { [INFO] [stdout] | ------ variant or associated item `decode` not found for this enum because it doesn't satisfy `::Wrapped = _`, `E: Decode` or `E: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 88 | assert_eq!(E::decode(&mut &encoded[..]).unwrap_err().to_string(), String::from(err),); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `E` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `E: Decode` [INFO] [stdout] `E: WrapperTypeDecode` [INFO] [stdout] which is required by `E: Decode` [INFO] [stdout] `<&E as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&E: Decode` [INFO] [stdout] `&E: WrapperTypeDecode` [INFO] [stdout] which is required by `&E: Decode` [INFO] [stdout] `<&mut E as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut E: Decode` [INFO] [stdout] `&mut E: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut E: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `using_encoded` exists for enum `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:164:26 [INFO] [stdout] | [INFO] [stdout] 67 | enum EnumWithDiscriminant { [INFO] [stdout] | ------------------------- method `using_encoded` not found for this enum because it doesn't satisfy `::Target = _`, `EnumWithDiscriminant: Encode` or `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 164 | EnumWithDiscriminant::A.using_encoded(|ref slice| { [INFO] [stdout] | ------------------------^^^^^^^^^^^^^ method cannot be called on `EnumWithDiscriminant` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `EnumWithDiscriminant: Encode` [INFO] [stdout] `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumWithDiscriminant: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `using_encoded`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `using_encoded` exists for enum `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:167:26 [INFO] [stdout] | [INFO] [stdout] 67 | enum EnumWithDiscriminant { [INFO] [stdout] | ------------------------- method `using_encoded` not found for this enum because it doesn't satisfy `::Target = _`, `EnumWithDiscriminant: Encode` or `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 167 | EnumWithDiscriminant::B.using_encoded(|ref slice| { [INFO] [stdout] | ------------------------^^^^^^^^^^^^^ method cannot be called on `EnumWithDiscriminant` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `EnumWithDiscriminant: Encode` [INFO] [stdout] `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumWithDiscriminant: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `using_encoded`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for enum `enum_struct_test::Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:49:34 [INFO] [stdout] | [INFO] [stdout] 20 | enum Enum { [INFO] [stdout] | ---------------------------------------------------- method `encode` not found for this enum because it doesn't satisfy `::Target = _`, `enum_struct_test::Enum: Encode` or `enum_struct_test::Enum: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 49 | let mut eb_encoded: &[u8] = &eb.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `enum_struct_test::Enum` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `enum_struct_test::Enum: Encode` [INFO] [stdout] `enum_struct_test::Enum: WrapperTypeEncode` [INFO] [stdout] which is required by `enum_struct_test::Enum: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `using_encoded` exists for enum `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:170:26 [INFO] [stdout] | [INFO] [stdout] 67 | enum EnumWithDiscriminant { [INFO] [stdout] | ------------------------- method `using_encoded` not found for this enum because it doesn't satisfy `::Target = _`, `EnumWithDiscriminant: Encode` or `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 170 | EnumWithDiscriminant::C.using_encoded(|ref slice| { [INFO] [stdout] | ------------------------^^^^^^^^^^^^^ method cannot be called on `EnumWithDiscriminant` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `EnumWithDiscriminant: Encode` [INFO] [stdout] `EnumWithDiscriminant: WrapperTypeEncode` [INFO] [stdout] which is required by `EnumWithDiscriminant: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `using_encoded`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for enum `enum_struct_test::Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:50:34 [INFO] [stdout] | [INFO] [stdout] 20 | enum Enum { [INFO] [stdout] | ---------------------------------------------------- method `encode` not found for this enum because it doesn't satisfy `::Target = _`, `enum_struct_test::Enum: Encode` or `enum_struct_test::Enum: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 50 | let mut ec_encoded: &[u8] = &ec.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `enum_struct_test::Enum` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `enum_struct_test::Enum: Encode` [INFO] [stdout] `enum_struct_test::Enum: WrapperTypeEncode` [INFO] [stdout] which is required by `enum_struct_test::Enum: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jam-codec` (test "chain-error") due to 6 previous errors [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:175:35 [INFO] [stdout] | [INFO] [stdout] 67 | enum EnumWithDiscriminant { [INFO] [stdout] | ------------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `EnumWithDiscriminant: Decode` or `EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 175 | assert_eq!(EnumWithDiscriminant::decode(&mut da), Ok(EnumWithDiscriminant::A)); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumWithDiscriminant` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `EnumWithDiscriminant: Decode` [INFO] [stdout] `EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumWithDiscriminant: Decode` [INFO] [stdout] `<&EnumWithDiscriminant as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumWithDiscriminant: Decode` [INFO] [stdout] `&EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumWithDiscriminant: Decode` [INFO] [stdout] `<&mut EnumWithDiscriminant as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumWithDiscriminant: Decode` [INFO] [stdout] `&mut EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumWithDiscriminant: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `StructNamed`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:51:34 [INFO] [stdout] | [INFO] [stdout] 32 | struct StructNamed { [INFO] [stdout] | ----------------------------------- method `encode` not found for this struct because it doesn't satisfy `::Target = _`, `StructNamed: Encode` or `StructNamed: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 51 | let mut sn_encoded: &[u8] = &sn.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `StructNamed` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `StructNamed: Encode` [INFO] [stdout] `StructNamed: WrapperTypeEncode` [INFO] [stdout] which is required by `StructNamed: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:177:35 [INFO] [stdout] | [INFO] [stdout] 67 | enum EnumWithDiscriminant { [INFO] [stdout] | ------------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `EnumWithDiscriminant: Decode` or `EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 177 | assert_eq!(EnumWithDiscriminant::decode(&mut db), Ok(EnumWithDiscriminant::B)); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumWithDiscriminant` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `EnumWithDiscriminant: Decode` [INFO] [stdout] `EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumWithDiscriminant: Decode` [INFO] [stdout] `<&EnumWithDiscriminant as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumWithDiscriminant: Decode` [INFO] [stdout] `&EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumWithDiscriminant: Decode` [INFO] [stdout] `<&mut EnumWithDiscriminant as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumWithDiscriminant: Decode` [INFO] [stdout] `&mut EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumWithDiscriminant: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `StructUnnamed`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:52:34 [INFO] [stdout] | [INFO] [stdout] 39 | struct StructUnnamed(#[codec(skip)] T, u32); [INFO] [stdout] | ------------------------------------- method `encode` not found for this struct because it doesn't satisfy `::Target = _`, `StructUnnamed: Encode` or `StructUnnamed: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 52 | let mut su_encoded: &[u8] = &su.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `StructUnnamed` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `StructUnnamed: Encode` [INFO] [stdout] `StructUnnamed: WrapperTypeEncode` [INFO] [stdout] which is required by `StructUnnamed: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:179:35 [INFO] [stdout] | [INFO] [stdout] 67 | enum EnumWithDiscriminant { [INFO] [stdout] | ------------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `EnumWithDiscriminant: Decode` or `EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 179 | assert_eq!(EnumWithDiscriminant::decode(&mut dc), Ok(EnumWithDiscriminant::C)); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumWithDiscriminant` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `EnumWithDiscriminant: Decode` [INFO] [stdout] `EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumWithDiscriminant: Decode` [INFO] [stdout] `<&EnumWithDiscriminant as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumWithDiscriminant: Decode` [INFO] [stdout] `&EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumWithDiscriminant: Decode` [INFO] [stdout] `<&mut EnumWithDiscriminant as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumWithDiscriminant: Decode` [INFO] [stdout] `&mut EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumWithDiscriminant: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `enum_struct_test::Enum<_, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 20 | enum Enum { [INFO] [stdout] | ---------------------------------------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `enum_struct_test::Enum<_, _>: Decode` or `enum_struct_test::Enum<_, _>: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 54 | assert_eq!(Enum::decode(&mut eb_encoded).unwrap(), eb); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `enum_struct_test::Enum<_, _>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `enum_struct_test::Enum<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `<&enum_struct_test::Enum<_, _> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `&enum_struct_test::Enum<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `&enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `<&mut enum_struct_test::Enum<_, _> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `&mut enum_struct_test::Enum<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `EnumWithDiscriminant`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:181:35 [INFO] [stdout] | [INFO] [stdout] 67 | enum EnumWithDiscriminant { [INFO] [stdout] | ------------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `EnumWithDiscriminant: Decode` or `EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 181 | assert_eq!(EnumWithDiscriminant::decode(&mut dz).ok(), None); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumWithDiscriminant` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `EnumWithDiscriminant: Decode` [INFO] [stdout] `EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumWithDiscriminant: Decode` [INFO] [stdout] `<&EnumWithDiscriminant as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumWithDiscriminant: Decode` [INFO] [stdout] `&EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumWithDiscriminant: Decode` [INFO] [stdout] `<&mut EnumWithDiscriminant as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumWithDiscriminant: Decode` [INFO] [stdout] `&mut EnumWithDiscriminant: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumWithDiscriminant: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `enum_struct_test::Enum<_, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 20 | enum Enum { [INFO] [stdout] | ---------------------------------------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `enum_struct_test::Enum<_, _>: Decode` or `enum_struct_test::Enum<_, _>: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 55 | assert_eq!(Enum::decode(&mut ec_encoded).unwrap(), ec); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `enum_struct_test::Enum<_, _>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `enum_struct_test::Enum<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `<&enum_struct_test::Enum<_, _> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `&enum_struct_test::Enum<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `&enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `<&mut enum_struct_test::Enum<_, _> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] `&mut enum_struct_test::Enum<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut enum_struct_test::Enum<_, _>: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `using_encoded` exists for struct `Struct>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:188:4 [INFO] [stdout] | [INFO] [stdout] 34 | struct Struct { [INFO] [stdout] | ---------------------- method `using_encoded` not found for this struct because it doesn't satisfy `> as Deref>::Target = _`, `Struct>: Encode` or `Struct>: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 188 | v.using_encoded(|ref slice| assert_eq!(slice, &b"\x0f\0\0\0\x09\0\0\0\0\0\0\0\x0bHello world")); [INFO] [stdout] | ^^^^^^^^^^^^^ method cannot be called on `Struct>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `> as Deref>::Target = _` [INFO] [stdout] which is required by `Struct>: Encode` [INFO] [stdout] `Struct>: WrapperTypeEncode` [INFO] [stdout] which is required by `Struct>: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `using_encoded`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `StructNamed<_>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:56:26 [INFO] [stdout] | [INFO] [stdout] 32 | struct StructNamed { [INFO] [stdout] | ----------------------------------- function or associated item `decode` not found for this struct because it doesn't satisfy ` as WrapperTypeDecode>::Wrapped = _`, `StructNamed<_>: Decode` or `StructNamed<_>: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 56 | assert_eq!(StructNamed::decode(&mut sn_encoded).unwrap(), sn); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `StructNamed<_>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `StructNamed<_>: Decode` [INFO] [stdout] `StructNamed<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `StructNamed<_>: Decode` [INFO] [stdout] `<&StructNamed<_> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&StructNamed<_>: Decode` [INFO] [stdout] `&StructNamed<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `&StructNamed<_>: Decode` [INFO] [stdout] `<&mut StructNamed<_> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut StructNamed<_>: Decode` [INFO] [stdout] `&mut StructNamed<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut StructNamed<_>: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Struct>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:195:20 [INFO] [stdout] | [INFO] [stdout] 34 | struct Struct { [INFO] [stdout] | ---------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `Struct>: Decode` or `Struct>: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 195 | let v = TestType::decode(&mut &*slice); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Struct>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Struct>`, consider using `Struct::::new` which returns `Struct<_, _, _>` [INFO] [stdout] --> tests/mod.rs:50:2 [INFO] [stdout] | [INFO] [stdout] 50 | fn new(a: A, b: B, c: C) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `Struct>: Decode` [INFO] [stdout] `Struct>: WrapperTypeDecode` [INFO] [stdout] which is required by `Struct>: Decode` [INFO] [stdout] `<&Struct> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Struct>: Decode` [INFO] [stdout] `&Struct>: WrapperTypeDecode` [INFO] [stdout] which is required by `&Struct>: Decode` [INFO] [stdout] `<&mut Struct> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Struct>: Decode` [INFO] [stdout] `&mut Struct>: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Struct>: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `StructUnnamed<_>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:57:28 [INFO] [stdout] | [INFO] [stdout] 39 | struct StructUnnamed(#[codec(skip)] T, u32); [INFO] [stdout] | ------------------------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `StructUnnamed<_>: Decode` or `StructUnnamed<_>: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 57 | assert_eq!(StructUnnamed::decode(&mut su_encoded).unwrap(), su); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `StructUnnamed<_>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `StructUnnamed<_>: Decode` [INFO] [stdout] `StructUnnamed<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `StructUnnamed<_>: Decode` [INFO] [stdout] `<&StructUnnamed<_> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&StructUnnamed<_>: Decode` [INFO] [stdout] `&StructUnnamed<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `&StructUnnamed<_>: Decode` [INFO] [stdout] `<&mut StructUnnamed<_> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut StructUnnamed<_>: Decode` [INFO] [stdout] `&mut StructUnnamed<_>: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut StructUnnamed<_>: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jam-codec` (test "skip") due to 18 previous errors [INFO] [stdout] error[E0599]: the method `encode` exists for enum `skip_enum_struct_inner_variant::Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/skip.rs:74:62 [INFO] [stdout] | [INFO] [stdout] 66 | enum Enum { [INFO] [stdout] | --------- method `encode` not found for this enum because it doesn't satisfy `<_ as __Deref>::Target = _`, `_: WrapperTypeEncode` or `skip_enum_struct_inner_variant::Enum: Encode` [INFO] [stdout] ... [INFO] [stdout] 74 | let encoded = Enum::Data { some_named: 1, ignore: Some(1) }.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `skip_enum_struct_inner_variant::Enum` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `skip_enum_struct_inner_variant::Enum: Encode` [INFO] [stdout] `skip_enum_struct_inner_variant::Enum: WrapperTypeEncode` [INFO] [stdout] which is required by `skip_enum_struct_inner_variant::Enum: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `using_encoded` exists for struct `Unit`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 28 | struct Unit; [INFO] [stdout] | ----------- method `using_encoded` not found for this struct because it doesn't satisfy `::Target = _`, `Unit: Encode` or `Unit: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 204 | v.using_encoded(|ref slice| { [INFO] [stdout] | --^^^^^^^^^^^^^ method cannot be called on `Unit` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `Unit: Encode` [INFO] [stdout] `Unit: WrapperTypeEncode` [INFO] [stdout] which is required by `Unit: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `using_encoded`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Unit`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:209:19 [INFO] [stdout] | [INFO] [stdout] 28 | struct Unit; [INFO] [stdout] | ----------- function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `Unit: Decode` or `Unit: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 209 | assert_eq!(Unit::decode(&mut a), Ok(Unit)); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Unit` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `Unit: Decode` [INFO] [stdout] `Unit: WrapperTypeDecode` [INFO] [stdout] which is required by `Unit: Decode` [INFO] [stdout] `<&Unit as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Unit: Decode` [INFO] [stdout] `&Unit: WrapperTypeDecode` [INFO] [stdout] which is required by `&Unit: Decode` [INFO] [stdout] `<&mut Unit as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Unit: Decode` [INFO] [stdout] `&mut Unit: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Unit: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `using_encoded` exists for struct `Indexed`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:216:4 [INFO] [stdout] | [INFO] [stdout] 31 | struct Indexed(u32, u64); [INFO] [stdout] | -------------- method `using_encoded` not found for this struct because it doesn't satisfy `::Target = _`, `Indexed: Encode` or `Indexed: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 216 | v.using_encoded(|ref slice| assert_eq!(slice, &b"\x01\0\0\0\x02\0\0\0\0\0\0\0")); [INFO] [stdout] | ^^^^^^^^^^^^^ method cannot be called on `Indexed` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `Indexed: Encode` [INFO] [stdout] `Indexed: WrapperTypeEncode` [INFO] [stdout] which is required by `Indexed: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `using_encoded`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Indexed`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:219:22 [INFO] [stdout] | [INFO] [stdout] 31 | struct Indexed(u32, u64); [INFO] [stdout] | -------------- function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `Indexed: Decode` or `Indexed: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 219 | assert_eq!(Indexed::decode(&mut v), Ok(Indexed(1, 2))); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Indexed` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `Indexed: Decode` [INFO] [stdout] `Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `Indexed: Decode` [INFO] [stdout] `<&Indexed as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Indexed: Decode` [INFO] [stdout] `&Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `&Indexed: Decode` [INFO] [stdout] `<&mut Indexed as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Indexed: Decode` [INFO] [stdout] `&mut Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Indexed: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Indexed`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:226:11 [INFO] [stdout] | [INFO] [stdout] 31 | struct Indexed(u32, u64); [INFO] [stdout] | -------------- function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `Indexed: Decode` or `Indexed: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 226 | Indexed::decode(&mut wrong).unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Indexed` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `Indexed: Decode` [INFO] [stdout] `Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `Indexed: Decode` [INFO] [stdout] `<&Indexed as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Indexed: Decode` [INFO] [stdout] `&Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `&Indexed: Decode` [INFO] [stdout] `<&mut Indexed as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Indexed: Decode` [INFO] [stdout] `&mut Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Indexed: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Indexed`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:233:11 [INFO] [stdout] | [INFO] [stdout] 31 | struct Indexed(u32, u64); [INFO] [stdout] | -------------- function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `Indexed: Decode` or `Indexed: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 233 | Indexed::decode(&mut wrong).unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Indexed` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `Indexed: Decode` [INFO] [stdout] `Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `Indexed: Decode` [INFO] [stdout] `<&Indexed as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Indexed: Decode` [INFO] [stdout] `&Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `&Indexed: Decode` [INFO] [stdout] `<&mut Indexed as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Indexed: Decode` [INFO] [stdout] `&mut Indexed: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Indexed: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `EnumType`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:240:12 [INFO] [stdout] | [INFO] [stdout] 56 | enum EnumType { [INFO] [stdout] | ------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `::Wrapped = _`, `EnumType: Decode` or `EnumType: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 240 | EnumType::decode(&mut wrong).unwrap(); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EnumType` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `EnumType: Decode` [INFO] [stdout] `EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `EnumType: Decode` [INFO] [stdout] `<&EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `&EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&EnumType: Decode` [INFO] [stdout] `<&mut EnumType as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EnumType: Decode` [INFO] [stdout] `&mut EnumType: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EnumType: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Struct`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:247:27 [INFO] [stdout] | [INFO] [stdout] 34 | struct Struct { [INFO] [stdout] | ---------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `Struct: Decode` or `Struct: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 247 | Struct::::decode(&mut wrong).unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Struct` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Struct`, consider using `Struct::::new` which returns `Struct<_, _, _>` [INFO] [stdout] --> tests/mod.rs:50:2 [INFO] [stdout] | [INFO] [stdout] 50 | fn new(a: A, b: B, c: C) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `Struct: Decode` [INFO] [stdout] `Struct: WrapperTypeDecode` [INFO] [stdout] which is required by `Struct: Decode` [INFO] [stdout] `<&Struct as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Struct: Decode` [INFO] [stdout] `&Struct: WrapperTypeDecode` [INFO] [stdout] which is required by `&Struct: Decode` [INFO] [stdout] `<&mut Struct as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Struct: Decode` [INFO] [stdout] `&mut Struct: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Struct: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Struct`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:254:27 [INFO] [stdout] | [INFO] [stdout] 34 | struct Struct { [INFO] [stdout] | ---------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `Struct: Decode` or `Struct: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 254 | Struct::::decode(&mut wrong).unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Struct` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Struct`, consider using `Struct::::new` which returns `Struct<_, _, _>` [INFO] [stdout] --> tests/mod.rs:50:2 [INFO] [stdout] | [INFO] [stdout] 50 | fn new(a: A, b: B, c: C) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `Struct: Decode` [INFO] [stdout] `Struct: WrapperTypeDecode` [INFO] [stdout] which is required by `Struct: Decode` [INFO] [stdout] `<&Struct as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Struct: Decode` [INFO] [stdout] `&Struct: WrapperTypeDecode` [INFO] [stdout] which is required by `&Struct: Decode` [INFO] [stdout] `<&mut Struct as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Struct: Decode` [INFO] [stdout] `&mut Struct: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Struct: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `TestHasCompact`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:294:43 [INFO] [stdout] | [INFO] [stdout] 74 | struct TestHasCompact [INFO] [stdout] | ------------------------------------ method `encode` not found for this struct because it doesn't satisfy ` as Deref>::Target = _`, `TestHasCompact: Encode` or `TestHasCompact: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 294 | let encoded = TestHasCompact { bar: n }.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `TestHasCompact` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as Deref>::Target = _` [INFO] [stdout] which is required by `TestHasCompact: Encode` [INFO] [stdout] `TestHasCompact: WrapperTypeEncode` [INFO] [stdout] which is required by `TestHasCompact: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `TestHasCompact`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:297:37 [INFO] [stdout] | [INFO] [stdout] 74 | struct TestHasCompact [INFO] [stdout] | ------------------------------------ function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `TestHasCompact: Decode` or `TestHasCompact: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 297 | assert_eq!(>::decode(&mut &encoded[..]).unwrap().bar, n); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `TestHasCompact` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `TestHasCompact: Decode` [INFO] [stdout] `TestHasCompact: WrapperTypeDecode` [INFO] [stdout] which is required by `TestHasCompact: Decode` [INFO] [stdout] `<&TestHasCompact as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&TestHasCompact: Decode` [INFO] [stdout] `&TestHasCompact: WrapperTypeDecode` [INFO] [stdout] which is required by `&TestHasCompact: Decode` [INFO] [stdout] `<&mut TestHasCompact as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut TestHasCompact: Decode` [INFO] [stdout] `&mut TestHasCompact: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut TestHasCompact: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `TestHasCompact`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:304:43 [INFO] [stdout] | [INFO] [stdout] 74 | struct TestHasCompact [INFO] [stdout] | ------------------------------------ method `encode` not found for this struct because it doesn't satisfy ` as Deref>::Target = _`, `TestHasCompact: Encode` or `TestHasCompact: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 304 | let encoded = TestHasCompact { bar: n }.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `TestHasCompact` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as Deref>::Target = _` [INFO] [stdout] which is required by `TestHasCompact: Encode` [INFO] [stdout] `TestHasCompact: WrapperTypeEncode` [INFO] [stdout] which is required by `TestHasCompact: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `TestCompactHasCompact`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:307:44 [INFO] [stdout] | [INFO] [stdout] 83 | struct TestCompactHasCompact { [INFO] [stdout] | ------------------------------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `TestCompactHasCompact: Decode` or `TestCompactHasCompact: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 307 | assert_eq!(>::decode(&mut &encoded[..]).unwrap().bar, n); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `TestCompactHasCompact` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `TestCompactHasCompact: Decode` [INFO] [stdout] `TestCompactHasCompact: WrapperTypeDecode` [INFO] [stdout] which is required by `TestCompactHasCompact: Decode` [INFO] [stdout] `<&TestCompactHasCompact as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&TestCompactHasCompact: Decode` [INFO] [stdout] `&TestCompactHasCompact: WrapperTypeDecode` [INFO] [stdout] which is required by `&TestCompactHasCompact: Decode` [INFO] [stdout] `<&mut TestCompactHasCompact as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut TestCompactHasCompact: Decode` [INFO] [stdout] `&mut TestCompactHasCompact: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut TestCompactHasCompact: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for reference `&TestHasCompactEnum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:322:24 [INFO] [stdout] | [INFO] [stdout] 89 | enum TestHasCompactEnum { [INFO] [stdout] | -------------------------------------- doesn't satisfy ` as Deref>::Target = _`, `TestHasCompactEnum: Encode` or `TestHasCompactEnum: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 322 | let encoded = value.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `&TestHasCompactEnum` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as Deref>::Target = _` [INFO] [stdout] which is required by `TestHasCompactEnum: Encode` [INFO] [stdout] `TestHasCompactEnum: WrapperTypeEncode` [INFO] [stdout] which is required by `TestHasCompactEnum: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `TestHasCompactEnum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:325:43 [INFO] [stdout] | [INFO] [stdout] 89 | enum TestHasCompactEnum { [INFO] [stdout] | -------------------------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `TestHasCompactEnum: Decode` or `TestHasCompactEnum: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 325 | assert_eq!(&>::decode(&mut &encoded[..]).unwrap(), value); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `TestHasCompactEnum` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `TestHasCompactEnum: Decode` [INFO] [stdout] `TestHasCompactEnum: WrapperTypeDecode` [INFO] [stdout] which is required by `TestHasCompactEnum: Decode` [INFO] [stdout] `<&TestHasCompactEnum as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&TestHasCompactEnum: Decode` [INFO] [stdout] `&TestHasCompactEnum: WrapperTypeDecode` [INFO] [stdout] which is required by `&TestHasCompactEnum: Decode` [INFO] [stdout] `<&mut TestHasCompactEnum as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut TestHasCompactEnum: Decode` [INFO] [stdout] `&mut TestHasCompactEnum: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut TestHasCompactEnum: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `TestCompactAttribute`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:333:49 [INFO] [stdout] | [INFO] [stdout] 103 | struct TestCompactAttribute { [INFO] [stdout] | --------------------------- method `encode` not found for this struct because it doesn't satisfy `::Target = _`, `TestCompactAttribute: Encode` or `TestCompactAttribute: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 333 | let encoded = TestCompactAttribute { bar: n }.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `TestCompactAttribute` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `TestCompactAttribute: Encode` [INFO] [stdout] `TestCompactAttribute: WrapperTypeEncode` [INFO] [stdout] which is required by `TestCompactAttribute: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `TestCompactAttribute`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:335:36 [INFO] [stdout] | [INFO] [stdout] 103 | struct TestCompactAttribute { [INFO] [stdout] | --------------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `TestCompactAttribute: Decode` or `TestCompactAttribute: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 335 | assert_eq!(TestCompactAttribute::decode(&mut &encoded[..]).unwrap().bar, n); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `TestCompactAttribute` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `TestCompactAttribute: Decode` [INFO] [stdout] `TestCompactAttribute: WrapperTypeDecode` [INFO] [stdout] which is required by `TestCompactAttribute: Decode` [INFO] [stdout] `<&TestCompactAttribute as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&TestCompactAttribute: Decode` [INFO] [stdout] `&TestCompactAttribute: WrapperTypeDecode` [INFO] [stdout] which is required by `&TestCompactAttribute: Decode` [INFO] [stdout] `<&mut TestCompactAttribute as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut TestCompactAttribute: Decode` [INFO] [stdout] `&mut TestCompactAttribute: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut TestCompactAttribute: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for reference `&TestCompactAttributeEnum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:346:24 [INFO] [stdout] | [INFO] [stdout] 109 | enum TestCompactAttributeEnum { [INFO] [stdout] | ----------------------------- doesn't satisfy `::Target = _`, `TestCompactAttributeEnum: Encode` or `TestCompactAttributeEnum: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 346 | let encoded = value.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `&TestCompactAttributeEnum` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `TestCompactAttributeEnum: Encode` [INFO] [stdout] `TestCompactAttributeEnum: WrapperTypeEncode` [INFO] [stdout] which is required by `TestCompactAttributeEnum: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `TestCompactAttributeEnum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:348:42 [INFO] [stdout] | [INFO] [stdout] 109 | enum TestCompactAttributeEnum { [INFO] [stdout] | ----------------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `TestCompactAttributeEnum: Decode` or `TestCompactAttributeEnum: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 348 | assert_eq!(&TestCompactAttributeEnum::decode(&mut &encoded[..]).unwrap(), value); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `TestCompactAttributeEnum` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `TestCompactAttributeEnum: Decode` [INFO] [stdout] `TestCompactAttributeEnum: WrapperTypeDecode` [INFO] [stdout] which is required by `TestCompactAttributeEnum: Decode` [INFO] [stdout] `<&TestCompactAttributeEnum as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&TestCompactAttributeEnum: Decode` [INFO] [stdout] `&TestCompactAttributeEnum: WrapperTypeDecode` [INFO] [stdout] which is required by `&TestCompactAttributeEnum: Decode` [INFO] [stdout] `<&mut TestCompactAttributeEnum as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut TestCompactAttributeEnum: Decode` [INFO] [stdout] `&mut TestCompactAttributeEnum: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut TestCompactAttributeEnum: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `associated_type_bounds::Struct`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:376:22 [INFO] [stdout] | [INFO] [stdout] 361 | struct Struct { [INFO] [stdout] | ----------------------------- method `encode` not found for this struct because it doesn't satisfy `<_ as __Deref>::Target = _`, `_: Encode` or `_: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 376 | let encoded = value.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as Deref>::Target = _` [INFO] [stdout] which is required by `associated_type_bounds::Struct: Encode` [INFO] [stdout] `associated_type_bounds::Struct: WrapperTypeEncode` [INFO] [stdout] which is required by `associated_type_bounds::Struct: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `associated_type_bounds::Struct<_, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:377:55 [INFO] [stdout] | [INFO] [stdout] 361 | struct Struct { [INFO] [stdout] | ----------------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `_: WrapperTypeDecode` or `associated_type_bounds::Struct<_, _>: Decode` [INFO] [stdout] ... [INFO] [stdout] 377 | let decoded: Struct = Struct::decode(&mut &encoded[..]).unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `associated_type_bounds::Struct<_, _>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `associated_type_bounds::Struct<_, _>: Decode` [INFO] [stdout] `associated_type_bounds::Struct<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `associated_type_bounds::Struct<_, _>: Decode` [INFO] [stdout] `<&associated_type_bounds::Struct<_, _> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&associated_type_bounds::Struct<_, _>: Decode` [INFO] [stdout] `&associated_type_bounds::Struct<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `&associated_type_bounds::Struct<_, _>: Decode` [INFO] [stdout] `<&mut associated_type_bounds::Struct<_, _> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut associated_type_bounds::Struct<_, _>: Decode` [INFO] [stdout] `&mut associated_type_bounds::Struct<_, _>: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut associated_type_bounds::Struct<_, _>: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `TestGeneric`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:413:4 [INFO] [stdout] | [INFO] [stdout] 404 | struct TestGeneric> [INFO] [stdout] | -------------------------------- method `encode` not found for this struct because it doesn't satisfy `<_ as __Deref>::Target = _`, `TestGeneric: Encode` or `TestGeneric: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 413 | a.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `TestGeneric` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as Deref>::Target = _` [INFO] [stdout] which is required by `TestGeneric: Encode` [INFO] [stdout] `TestGeneric: WrapperTypeEncode` [INFO] [stdout] which is required by `TestGeneric: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for enum `TestGenericHasCompact`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:449:4 [INFO] [stdout] | [INFO] [stdout] 440 | enum TestGenericHasCompact { [INFO] [stdout] | ----------------------------- method `encode` not found for this enum because it doesn't satisfy `<_ as __Deref>::Target = _`, `TestGenericHasCompact: Encode` or `_: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 449 | a.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `TestGenericHasCompact` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as Deref>::Target = _` [INFO] [stdout] which is required by `TestGenericHasCompact: Encode` [INFO] [stdout] `TestGenericHasCompact: WrapperTypeEncode` [INFO] [stdout] which is required by `TestGenericHasCompact: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `TestGenericTrait`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:474:4 [INFO] [stdout] | [INFO] [stdout] 468 | struct TestGenericTrait { [INFO] [stdout] | ---------------------------------------- method `encode` not found for this struct because it doesn't satisfy `<_ as __Deref>::Target = _`, `TestGenericTrait: Encode` or `TestGenericTrait: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 474 | a.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `TestGenericTrait` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as Deref>::Target = _` [INFO] [stdout] which is required by `TestGenericTrait: Encode` [INFO] [stdout] `TestGenericTrait: WrapperTypeEncode` [INFO] [stdout] which is required by `TestGenericTrait: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `recursive_variant_1_encode_works::Recursive`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:488:6 [INFO] [stdout] | [INFO] [stdout] 482 | struct Recursive { [INFO] [stdout] | ------------------- method `encode` not found for this struct because it doesn't satisfy `<_ as __Deref>::Target = _`, `_: Encode` or `_: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 488 | val.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `recursive_variant_1_encode_works::Recursive` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as Deref>::Target = _` [INFO] [stdout] which is required by `recursive_variant_1_encode_works::Recursive: Encode` [INFO] [stdout] `recursive_variant_1_encode_works::Recursive: WrapperTypeEncode` [INFO] [stdout] which is required by `recursive_variant_1_encode_works::Recursive: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `recursive_variant_2_encode_works::Recursive`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:502:6 [INFO] [stdout] | [INFO] [stdout] 496 | struct Recursive { [INFO] [stdout] | ------------------------- method `encode` not found for this struct because it doesn't satisfy `<_ as __Deref>::Target = _`, `_: Encode` or `_: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 502 | val.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as Deref>::Target = _` [INFO] [stdout] which is required by `recursive_variant_2_encode_works::Recursive: Encode` [INFO] [stdout] `recursive_variant_2_encode_works::Recursive: WrapperTypeEncode` [INFO] [stdout] which is required by `recursive_variant_2_encode_works::Recursive: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `Test`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:525:6 [INFO] [stdout] | [INFO] [stdout] 520 | pub struct Test { [INFO] [stdout] | ------------------ method `encode` not found for this struct because it doesn't satisfy ` as Deref>::Target = _`, `Test: Encode` or `Test: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 525 | val.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `Test` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as Deref>::Target = _` [INFO] [stdout] which is required by `Test: Encode` [INFO] [stdout] `Test: WrapperTypeEncode` [INFO] [stdout] which is required by `Test: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `EmptyEnumDerive: Encode` is not satisfied [INFO] [stdout] --> tests/mod.rs:534:24 [INFO] [stdout] | [INFO] [stdout] 534 | impls_encode_decode::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `EmptyEnumDerive` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `WrapperTypeEncode`: [INFO] [stdout] &T [INFO] [stdout] &mut T [INFO] [stdout] Arc [INFO] [stdout] Box [INFO] [stdout] Cow<'_, T> [INFO] [stdout] Rc [INFO] [stdout] Vec [INFO] [stdout] jam_codec::Ref<'_, T, U> [INFO] [stdout] std::string::String [INFO] [stdout] = note: required for `EmptyEnumDerive` to implement `Encode` [INFO] [stdout] note: required by a bound in `impls_encode_decode` [INFO] [stdout] --> tests/mod.rs:533:28 [INFO] [stdout] | [INFO] [stdout] 533 | fn impls_encode_decode() {} [INFO] [stdout] | ^^^^^^ required by this bound in `impls_encode_decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `EmptyEnumDerive: Decode` is not satisfied [INFO] [stdout] --> tests/mod.rs:534:24 [INFO] [stdout] | [INFO] [stdout] 534 | impls_encode_decode::(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `WrapperTypeDecode` is not implemented for `EmptyEnumDerive` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `WrapperTypeDecode`: [INFO] [stdout] Arc [INFO] [stdout] Box [INFO] [stdout] Rc [INFO] [stdout] = note: required for `EmptyEnumDerive` to implement `Decode` [INFO] [stdout] note: required by a bound in `impls_encode_decode` [INFO] [stdout] --> tests/mod.rs:533:37 [INFO] [stdout] | [INFO] [stdout] 533 | fn impls_encode_decode() {} [INFO] [stdout] | ^^^^^^ required by this bound in `impls_encode_decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `EmptyEnumDerive`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:537:20 [INFO] [stdout] | [INFO] [stdout] 531 | enum EmptyEnumDerive {} [INFO] [stdout] | -------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `EmptyEnumDerive: Decode` or `EmptyEnumDerive: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 537 | EmptyEnumDerive::decode(&mut &[1, 2, 3][..]), [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `EmptyEnumDerive` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `EmptyEnumDerive: Decode` [INFO] [stdout] `EmptyEnumDerive: WrapperTypeDecode` [INFO] [stdout] which is required by `EmptyEnumDerive: Decode` [INFO] [stdout] `<&EmptyEnumDerive as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&EmptyEnumDerive: Decode` [INFO] [stdout] `&EmptyEnumDerive: WrapperTypeDecode` [INFO] [stdout] which is required by `&EmptyEnumDerive: Decode` [INFO] [stdout] `<&mut EmptyEnumDerive as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut EmptyEnumDerive: Decode` [INFO] [stdout] `&mut EmptyEnumDerive: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut EmptyEnumDerive: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for struct `Something`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:637:5 [INFO] [stdout] | [INFO] [stdout] 620 | struct Something { [INFO] [stdout] | ---------------------- method `encode` not found for this struct because it doesn't satisfy ` as Deref>::Target = _`, `Something: Encode` or `Something: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 636 | / Something:: { hello: Hello { _phantom: Default::default() }, val: 32u32 } [INFO] [stdout] 637 | | .encode(); [INFO] [stdout] | | -^^^^^^ method cannot be called on `Something` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as Deref>::Target = _` [INFO] [stdout] which is required by `Something: Encode` [INFO] [stdout] `Something: WrapperTypeEncode` [INFO] [stdout] which is required by `Something: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Something`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:639:31 [INFO] [stdout] | [INFO] [stdout] 620 | struct Something { [INFO] [stdout] | ---------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `Something: Decode` or `Something: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 639 | Something::::decode(&mut &encoded[..]).unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `Something` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] ` as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `Something: Decode` [INFO] [stdout] `Something: WrapperTypeDecode` [INFO] [stdout] which is required by `Something: Decode` [INFO] [stdout] `<&Something as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Something: Decode` [INFO] [stdout] `&Something: WrapperTypeDecode` [INFO] [stdout] which is required by `&Something: Decode` [INFO] [stdout] `<&mut Something as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Something: Decode` [INFO] [stdout] `&mut Something: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Something: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `HugeArrayNewtypeBox`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:713:31 [INFO] [stdout] | [INFO] [stdout] 710 | struct HugeArrayNewtypeBox(#[allow(dead_code)] Box); [INFO] [stdout] | -------------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `HugeArrayNewtypeBox: Decode` or `HugeArrayNewtypeBox: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 713 | assert!(HugeArrayNewtypeBox::decode(&mut data.as_slice()).is_err()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `HugeArrayNewtypeBox` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `HugeArrayNewtypeBox: Decode` [INFO] [stdout] `HugeArrayNewtypeBox: WrapperTypeDecode` [INFO] [stdout] which is required by `HugeArrayNewtypeBox: Decode` [INFO] [stdout] `<&HugeArrayNewtypeBox as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&HugeArrayNewtypeBox: Decode` [INFO] [stdout] `&HugeArrayNewtypeBox: WrapperTypeDecode` [INFO] [stdout] which is required by `&HugeArrayNewtypeBox: Decode` [INFO] [stdout] `<&mut HugeArrayNewtypeBox as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut HugeArrayNewtypeBox: Decode` [INFO] [stdout] `&mut HugeArrayNewtypeBox: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut HugeArrayNewtypeBox: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `SmallArraysBox`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:728:20 [INFO] [stdout] | [INFO] [stdout] 724 | struct SmallArraysBox(Box); [INFO] [stdout] | --------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `::Wrapped = _`, `SmallArraysBox: Decode` or `SmallArraysBox: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 728 | *SmallArraysBox::decode(&mut data.as_slice()).unwrap().0, [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `SmallArraysBox` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `SmallArraysBox: Decode` [INFO] [stdout] `SmallArraysBox: WrapperTypeDecode` [INFO] [stdout] which is required by `SmallArraysBox: Decode` [INFO] [stdout] `<&SmallArraysBox as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&SmallArraysBox: Decode` [INFO] [stdout] `&SmallArraysBox: WrapperTypeDecode` [INFO] [stdout] which is required by `&SmallArraysBox: Decode` [INFO] [stdout] `<&mut SmallArraysBox as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut SmallArraysBox: Decode` [INFO] [stdout] `&mut SmallArraysBox: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut SmallArraysBox: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:768:29 [INFO] [stdout] | [INFO] [stdout] 746 | struct NewtypeWithZst { [INFO] [stdout] | --------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `_: Decode` or `_: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 768 | assert_eq!(NewtypeWithZst::decode(&mut data.as_slice()).unwrap().field, [2]); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: Decode` [INFO] [stdout] `zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: WrapperTypeDecode` [INFO] [stdout] which is required by `zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: Decode` [INFO] [stdout] `<&zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: Decode` [INFO] [stdout] `&zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: WrapperTypeDecode` [INFO] [stdout] which is required by `&zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: Decode` [INFO] [stdout] `<&mut zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: Decode` [INFO] [stdout] `&mut zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut zero_sized_types_are_properly_decoded_in_a_transparent_boxed_struct::NewtypeWithZst: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `NewtypeWithZst`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:786:26 [INFO] [stdout] | [INFO] [stdout] 779 | struct NewtypeWithZst(Zst); [INFO] [stdout] | --------------------- function or associated item `decode` not found for this struct because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `_: Decode` or `_: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 786 | assert!(NewtypeWithZst::decode(&mut data.as_slice()).is_ok()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called on `NewtypeWithZst` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: Decode` [INFO] [stdout] `boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: WrapperTypeDecode` [INFO] [stdout] which is required by `boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: Decode` [INFO] [stdout] `<&boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: Decode` [INFO] [stdout] `&boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: WrapperTypeDecode` [INFO] [stdout] which is required by `&boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: Decode` [INFO] [stdout] `<&mut boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: Decode` [INFO] [stdout] `&mut boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut boxed_zero_sized_newtype_with_everything_being_transparent_is_decoded_correctly::NewtypeWithZst: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/mod-cdb4dc21dddf9c4c.long-type-7360612589327139127.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for array `[incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4]`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:819:25 [INFO] [stdout] | [INFO] [stdout] 819 | assert!(<[Foobar; 4]>::decode(&mut data.as_slice()).is_err()); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `<&[incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4] as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&[incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4]: Decode` [INFO] [stdout] `&[incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4]: WrapperTypeDecode` [INFO] [stdout] which is required by `&[incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4]: Decode` [INFO] [stdout] `<&mut [incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4] as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut [incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4]: Decode` [INFO] [stdout] `&mut [incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4]: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut [incomplete_decoding_of_an_array_drops_partially_read_elements_if_reading_fails::Foobar; 4]: Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for enum `deserializing_of_big_recursively_nested_enum_works::Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:924:17 [INFO] [stdout] | [INFO] [stdout] 869 | enum Enum { [INFO] [stdout] | --------- method `encode` not found for this enum because it doesn't satisfy `<_ as __Deref>::Target = _`, `_: Encode` or `_: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 924 | let data = obj.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Target = _` [INFO] [stdout] which is required by `deserializing_of_big_recursively_nested_enum_works::Enum: Encode` [INFO] [stdout] `deserializing_of_big_recursively_nested_enum_works::Enum: WrapperTypeEncode` [INFO] [stdout] which is required by `deserializing_of_big_recursively_nested_enum_works::Enum: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `encode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Encode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode` exists for enum `deserializing_of_big_recursively_nested_enum_works::Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:927:20 [INFO] [stdout] | [INFO] [stdout] 869 | enum Enum { [INFO] [stdout] | --------- variant or associated item `decode` not found for this enum because it doesn't satisfy `<_ as WrapperTypeDecode>::Wrapped = _`, `_: Decode` or `_: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 927 | let obj_d = Enum::decode(&mut &data[..]).unwrap(); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `::Wrapped = _` [INFO] [stdout] which is required by `deserializing_of_big_recursively_nested_enum_works::Enum: Decode` [INFO] [stdout] `deserializing_of_big_recursively_nested_enum_works::Enum: WrapperTypeDecode` [INFO] [stdout] which is required by `deserializing_of_big_recursively_nested_enum_works::Enum: Decode` [INFO] [stdout] `<&deserializing_of_big_recursively_nested_enum_works::Enum as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&deserializing_of_big_recursively_nested_enum_works::Enum: Decode` [INFO] [stdout] `&deserializing_of_big_recursively_nested_enum_works::Enum: WrapperTypeDecode` [INFO] [stdout] which is required by `&deserializing_of_big_recursively_nested_enum_works::Enum: Decode` [INFO] [stdout] `<&mut deserializing_of_big_recursively_nested_enum_works::Enum as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut deserializing_of_big_recursively_nested_enum_works::Enum: Decode` [INFO] [stdout] `&mut deserializing_of_big_recursively_nested_enum_works::Enum: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut deserializing_of_big_recursively_nested_enum_works::Enum: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the variant or associated item `decode_with_depth_limit` exists for enum `deserializing_of_big_recursively_nested_enum_works::Enum`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:933:21 [INFO] [stdout] | [INFO] [stdout] 869 | enum Enum { [INFO] [stdout] | --------- variant or associated item `decode_with_depth_limit` not found for this enum because it doesn't satisfy `_: DecodeLimit` or `_: Decode` [INFO] [stdout] ... [INFO] [stdout] 933 | let obj_d2 = Enum::decode_with_depth_limit(40, &mut &data[..]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `deserializing_of_big_recursively_nested_enum_works::Enum: Decode` [INFO] [stdout] which is required by `deserializing_of_big_recursively_nested_enum_works::Enum: DecodeLimit` [INFO] [stdout] `&deserializing_of_big_recursively_nested_enum_works::Enum: Decode` [INFO] [stdout] which is required by `&deserializing_of_big_recursively_nested_enum_works::Enum: DecodeLimit` [INFO] [stdout] `&mut deserializing_of_big_recursively_nested_enum_works::Enum: Decode` [INFO] [stdout] which is required by `&mut deserializing_of_big_recursively_nested_enum_works::Enum: DecodeLimit` [INFO] [stdout] note: the trait `Decode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:296:1 [INFO] [stdout] | [INFO] [stdout] 296 | pub trait Decode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode_with_depth_limit`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `DecodeLimit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode` found for struct `Vec>` in the current scope [INFO] [stdout] --> tests/mod.rs:968:18 [INFO] [stdout] | [INFO] [stdout] 968 | let data = objs.encode(); [INFO] [stdout] | ^^^^^^ method not found in `Vec>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `decode` exists for struct `Vec>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:969:28 [INFO] [stdout] | [INFO] [stdout] 969 | let objs_d = Vec::::decode(&mut &data[..]).unwrap(); [INFO] [stdout] | ^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Vec>` consider using one of the following associated functions: [INFO] [stdout] Vec::::new [INFO] [stdout] Vec::::with_capacity [INFO] [stdout] Vec::::try_with_capacity [INFO] [stdout] Vec::::from_raw_parts [INFO] [stdout] and 6 others [INFO] [stdout] --> /rustc/c659ee110de67e82444e4b6c8407c1a9af9c2cf6/library/alloc/src/vec/mod.rs:459:5 [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `<&Vec> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&Vec>: Decode` [INFO] [stdout] `&Vec>: WrapperTypeDecode` [INFO] [stdout] which is required by `&Vec>: Decode` [INFO] [stdout] `<&mut Vec> as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut Vec>: Decode` [INFO] [stdout] `&mut Vec>: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut Vec>: Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `encode` exists for enum `PostVisibility`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:996:27 [INFO] [stdout] | [INFO] [stdout] 988 | pub enum PostVisibility { [INFO] [stdout] | ----------------------- method `encode` not found for this enum because it doesn't satisfy `::Target = _`, `PostVisibility: Encode` or `PostVisibility: WrapperTypeEncode` [INFO] [stdout] ... [INFO] [stdout] 996 | let encoded = visibility.encode(); [INFO] [stdout] | ^^^^^^ method cannot be called on `PostVisibility` 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 `PostVisibility: Encode` [INFO] [stdout] `PostVisibility: WrapperTypeEncode` [INFO] [stdout] which is required by `PostVisibility: Encode` [INFO] [stdout] note: the trait `WrapperTypeEncode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:367:1 [INFO] [stdout] | [INFO] [stdout] 367 | pub trait WrapperTypeEncode: Deref {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: the method `encode` exists on the type `u32` [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:246:2 [INFO] [stdout] | [INFO] [stdout] 246 | fn encode(&self) -> Vec { [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 `PostVisibility`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/mod.rs:997:32 [INFO] [stdout] | [INFO] [stdout] 988 | pub enum PostVisibility { [INFO] [stdout] | ----------------------- variant or associated item `decode` not found for this enum because it doesn't satisfy `::Wrapped = _`, `PostVisibility: Decode` or `PostVisibility: WrapperTypeDecode` [INFO] [stdout] ... [INFO] [stdout] 997 | let decoded = PostVisibility::decode(&mut &encoded[..]).unwrap(); [INFO] [stdout] | ^^^^^^ variant or associated item cannot be called on `PostVisibility` 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 `PostVisibility: Decode` [INFO] [stdout] `PostVisibility: WrapperTypeDecode` [INFO] [stdout] which is required by `PostVisibility: Decode` [INFO] [stdout] `<&PostVisibility as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&PostVisibility: Decode` [INFO] [stdout] `&PostVisibility: WrapperTypeDecode` [INFO] [stdout] which is required by `&PostVisibility: Decode` [INFO] [stdout] `<&mut PostVisibility as WrapperTypeDecode>::Wrapped = _` [INFO] [stdout] which is required by `&mut PostVisibility: Decode` [INFO] [stdout] `&mut PostVisibility: WrapperTypeDecode` [INFO] [stdout] which is required by `&mut PostVisibility: Decode` [INFO] [stdout] note: the trait `WrapperTypeDecode` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/codec.rs:521:1 [INFO] [stdout] | [INFO] [stdout] 521 | pub trait WrapperTypeDecode: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `decode`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Decode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: 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 `jam-codec` (test "mod") due to 79 previous errors [INFO] running `Command { std: "docker" "inspect" "4864cde3f504de689693ec5e09651674550922c73e0654273b0c78e1c722b2b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4864cde3f504de689693ec5e09651674550922c73e0654273b0c78e1c722b2b1", kill_on_drop: false }` [INFO] [stdout] 4864cde3f504de689693ec5e09651674550922c73e0654273b0c78e1c722b2b1