[INFO] fetching crate cbor-data 0.8.17...
[INFO] checking cbor-data-0.8.17 against master#3f1be1ec7ec3d8e80beb381ee82164a0aa3ca777 for pr-132289
[INFO] extracting crate cbor-data 0.8.17 into /workspace/builds/worker-7-tc1/source
[INFO] validating manifest of crates.io crate cbor-data 0.8.17 on toolchain 3f1be1ec7ec3d8e80beb381ee82164a0aa3ca777
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3f1be1ec7ec3d8e80beb381ee82164a0aa3ca777" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate cbor-data 0.8.17
[INFO] finished tweaking crates.io crate cbor-data 0.8.17
[INFO] tweaked toml for crates.io crate cbor-data 0.8.17 written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] crate crates.io crate cbor-data 0.8.17 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" "+3f1be1ec7ec3d8e80beb381ee82164a0aa3ca777" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded pretty_assertions v1.4.0
[INFO] [stderr]   Downloaded libipld-macro v0.14.0
[INFO] [stderr]   Downloaded data-encoding-macro v0.1.14
[INFO] [stderr]   Downloaded data-encoding-macro-internal v0.1.12
[INFO] [stderr]   Downloaded multihash-derive v0.8.1
[INFO] [stderr]   Downloaded cbor-data-derive v0.8.15
[INFO] [stderr]   Downloaded libipld v0.14.0
[INFO] [stderr]   Downloaded libipld-cbor v0.14.0
[INFO] [stderr]   Downloaded async-trait v0.1.78
[INFO] [stderr]   Downloaded cached v0.30.0
[INFO] [stderr]   Downloaded cid v0.8.6
[INFO] [stderr]   Downloaded multihash v0.16.3
[INFO] [stderr]   Downloaded libipld-core v0.14.0
[INFO] [stderr]   Downloaded rayon v1.9.0
[INFO] [stderr]   Downloaded syn v2.0.53
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+3f1be1ec7ec3d8e80beb381ee82164a0aa3ca777" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 77a6ca68f1cd4c2016281dfcf5c9962244a431d8b917829754e789d61d0f9c98
[INFO] running `Command { std: "docker" "start" "-a" "77a6ca68f1cd4c2016281dfcf5c9962244a431d8b917829754e789d61d0f9c98", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "77a6ca68f1cd4c2016281dfcf5c9962244a431d8b917829754e789d61d0f9c98", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "77a6ca68f1cd4c2016281dfcf5c9962244a431d8b917829754e789d61d0f9c98", kill_on_drop: false }`
[INFO] [stdout] 77a6ca68f1cd4c2016281dfcf5c9962244a431d8b917829754e789d61d0f9c98
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+3f1be1ec7ec3d8e80beb381ee82164a0aa3ca777" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] cd823640caccd5480885339180f588b0837ba6d7a9be121c083a21fa4861b4dd
[INFO] running `Command { std: "docker" "start" "-a" "cd823640caccd5480885339180f588b0837ba6d7a9be121c083a21fa4861b4dd", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]    Compiling serde v1.0.197
[INFO] [stderr]    Compiling proc-macro2 v1.0.79
[INFO] [stderr]     Checking itoa v1.0.10
[INFO] [stderr]    Compiling serde_json v1.0.114
[INFO] [stderr]     Checking unicode-width v0.1.11
[INFO] [stderr]     Checking memchr v2.7.1
[INFO] [stderr]     Checking regex-automata v0.4.6
[INFO] [stderr]     Checking criterion-plot v0.4.5
[INFO] [stderr]     Checking textwrap v0.11.0
[INFO] [stderr]     Checking rayon v1.9.0
[INFO] [stderr]     Checking clap v2.34.0
[INFO] [stderr]     Checking smallvec v1.13.2
[INFO] [stderr]     Checking csv-core v0.1.11
[INFO] [stderr]     Checking yansi v0.5.1
[INFO] [stderr]     Checking getrandom v0.2.12
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]    Compiling quote v1.0.35
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking pretty_assertions v1.4.0
[INFO] [stderr]     Checking maplit v1.0.2
[INFO] [stderr]    Compiling syn v2.0.53
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking cbor-data v0.8.17 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking regex v1.10.3
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/lib.rs:98:9
[INFO] [stdout]    |
[INFO] [stdout] 96 |     fn fmt(&self, mut f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
[INFO] [stdout]    |     ---------------------------------------------------------------------- move the `impl` block outside of this method `fmt`
[INFO] [stdout] 97 |         // check https://datatracker.ietf.org/doc/html/rfc8949#section-8 for the format
[INFO] [stdout] 98 |         impl<'a> Visitor<'a, std::fmt::Error> for &mut std::fmt::Formatter<'_> {
[INFO] [stdout]    |         ^^^^^^^^^-------^^^^^---------------^^^^^^^^^^^-------------------^^^^
[INFO] [stdout]    |                  |           |                         |
[INFO] [stdout]    |                  |           |                         `Formatter` is not local
[INFO] [stdout]    |                  |           `Error` is not local
[INFO] [stdout]    |                  `Visitor` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking csv v1.3.0
[INFO] [stderr]     Checking serde_cbor v0.11.2
[INFO] [stderr]     Checking tinytemplate v1.2.1
[INFO] [stderr]    Compiling serde_derive v1.0.197
[INFO] [stderr]     Checking criterion v0.3.6
[INFO] [stdout] error: cannot find derive macro `ReadCbor` in this scope
[INFO] [stdout]   --> tests/derive.rs:18:14
[INFO] [stdout]    |
[INFO] [stdout] 18 |     #[derive(ReadCbor, WriteCbor, PartialEq, Debug)]
[INFO] [stdout]    |              ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: `ReadCbor` is imported here, but it is only a trait, without a derive macro
[INFO] [stdout]   --> tests/derive.rs:2:25
[INFO] [stdout]    |
[INFO] [stdout] 2  |     codec::{CodecError, ReadCbor, WriteCbor},
[INFO] [stdout]    |                         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `WriteCbor` in this scope
[INFO] [stdout]   --> tests/derive.rs:18:24
[INFO] [stdout]    |
[INFO] [stdout] 18 |     #[derive(ReadCbor, WriteCbor, PartialEq, Debug)]
[INFO] [stdout]    |                        ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: `WriteCbor` is imported here, but it is only a trait, without a derive macro
[INFO] [stdout]   --> tests/derive.rs:2:35
[INFO] [stdout]    |
[INFO] [stdout] 2  |     codec::{CodecError, ReadCbor, WriteCbor},
[INFO] [stdout]    |                                   ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `WriteCbor` in this scope
[INFO] [stdout]   --> tests/derive.rs:49:32
[INFO] [stdout]    |
[INFO] [stdout] 49 |     #[derive(Debug, PartialEq, WriteCbor, ReadCbor)]
[INFO] [stdout]    |                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: `WriteCbor` is imported here, but it is only a trait, without a derive macro
[INFO] [stdout]   --> tests/derive.rs:2:35
[INFO] [stdout]    |
[INFO] [stdout] 2  |     codec::{CodecError, ReadCbor, WriteCbor},
[INFO] [stdout]    |                                   ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `ReadCbor` in this scope
[INFO] [stdout]   --> tests/derive.rs:49:43
[INFO] [stdout]    |
[INFO] [stdout] 49 |     #[derive(Debug, PartialEq, WriteCbor, ReadCbor)]
[INFO] [stdout]    |                                           ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: `ReadCbor` is imported here, but it is only a trait, without a derive macro
[INFO] [stdout]   --> tests/derive.rs:2:25
[INFO] [stdout]    |
[INFO] [stdout] 2  |     codec::{CodecError, ReadCbor, WriteCbor},
[INFO] [stdout]    |                         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `WriteCbor` in this scope
[INFO] [stdout]   --> tests/derive.rs:72:32
[INFO] [stdout]    |
[INFO] [stdout] 72 |     #[derive(Debug, PartialEq, WriteCbor, ReadCbor)]
[INFO] [stdout]    |                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: `WriteCbor` is imported here, but it is only a trait, without a derive macro
[INFO] [stdout]   --> tests/derive.rs:2:35
[INFO] [stdout]    |
[INFO] [stdout] 2  |     codec::{CodecError, ReadCbor, WriteCbor},
[INFO] [stdout]    |                                   ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `ReadCbor` in this scope
[INFO] [stdout]   --> tests/derive.rs:72:43
[INFO] [stdout]    |
[INFO] [stdout] 72 |     #[derive(Debug, PartialEq, WriteCbor, ReadCbor)]
[INFO] [stdout]    |                                           ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: `ReadCbor` is imported here, but it is only a trait, without a derive macro
[INFO] [stdout]   --> tests/derive.rs:2:25
[INFO] [stdout]    |
[INFO] [stdout] 2  |     codec::{CodecError, ReadCbor, WriteCbor},
[INFO] [stdout]    |                         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `WriteCbor` in this scope
[INFO] [stdout]   --> tests/derive.rs:84:32
[INFO] [stdout]    |
[INFO] [stdout] 84 |     #[derive(Debug, PartialEq, WriteCbor, ReadCbor)]
[INFO] [stdout]    |                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: `WriteCbor` is imported here, but it is only a trait, without a derive macro
[INFO] [stdout]   --> tests/derive.rs:2:35
[INFO] [stdout]    |
[INFO] [stdout] 2  |     codec::{CodecError, ReadCbor, WriteCbor},
[INFO] [stdout]    |                                   ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `ReadCbor` in this scope
[INFO] [stdout]   --> tests/derive.rs:84:43
[INFO] [stdout]    |
[INFO] [stdout] 84 |     #[derive(Debug, PartialEq, WriteCbor, ReadCbor)]
[INFO] [stdout]    |                                           ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: `ReadCbor` is imported here, but it is only a trait, without a derive macro
[INFO] [stdout]   --> tests/derive.rs:2:25
[INFO] [stdout]    |
[INFO] [stdout] 2  |     codec::{CodecError, ReadCbor, WriteCbor},
[INFO] [stdout]    |                         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `cbor` in this scope
[INFO] [stdout]   --> tests/derive.rs:85:7
[INFO] [stdout]    |
[INFO] [stdout] 85 |     #[cbor(transparent)]
[INFO] [stdout]    |       ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `WriteCbor` in this scope
[INFO] [stdout]   --> tests/derive.rs:97:32
[INFO] [stdout]    |
[INFO] [stdout] 97 |     #[derive(Debug, PartialEq, WriteCbor, ReadCbor)]
[INFO] [stdout]    |                                ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: `WriteCbor` is imported here, but it is only a trait, without a derive macro
[INFO] [stdout]   --> tests/derive.rs:2:35
[INFO] [stdout]    |
[INFO] [stdout] 2  |     codec::{CodecError, ReadCbor, WriteCbor},
[INFO] [stdout]    |                                   ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `ReadCbor` in this scope
[INFO] [stdout]   --> tests/derive.rs:97:43
[INFO] [stdout]    |
[INFO] [stdout] 97 |     #[derive(Debug, PartialEq, WriteCbor, ReadCbor)]
[INFO] [stdout]    |                                           ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] note: `ReadCbor` is imported here, but it is only a trait, without a derive macro
[INFO] [stdout]   --> tests/derive.rs:2:25
[INFO] [stdout]    |
[INFO] [stdout] 2  |     codec::{CodecError, ReadCbor, WriteCbor},
[INFO] [stdout]    |                         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `cbor` in this scope
[INFO] [stdout]    --> tests/derive.rs:101:11
[INFO] [stdout]     |
[INFO] [stdout] 101 |         #[cbor(transparent)]
[INFO] [stdout]     |           ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `WriteCbor` in this scope
[INFO] [stdout]    --> tests/derive.rs:133:32
[INFO] [stdout]     |
[INFO] [stdout] 133 |     #[derive(Debug, PartialEq, WriteCbor, ReadCbor)]
[INFO] [stdout]     |                                ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] note: `WriteCbor` is imported here, but it is only a trait, without a derive macro
[INFO] [stdout]    --> tests/derive.rs:2:35
[INFO] [stdout]     |
[INFO] [stdout] 2   |     codec::{CodecError, ReadCbor, WriteCbor},
[INFO] [stdout]     |                                   ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `ReadCbor` in this scope
[INFO] [stdout]    --> tests/derive.rs:133:43
[INFO] [stdout]     |
[INFO] [stdout] 133 |     #[derive(Debug, PartialEq, WriteCbor, ReadCbor)]
[INFO] [stdout]     |                                           ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] note: `ReadCbor` is imported here, but it is only a trait, without a derive macro
[INFO] [stdout]    --> tests/derive.rs:2:25
[INFO] [stdout]     |
[INFO] [stdout] 2   |     codec::{CodecError, ReadCbor, WriteCbor},
[INFO] [stdout]     |                         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `cbor` in this scope
[INFO] [stdout]    --> tests/derive.rs:134:7
[INFO] [stdout]     |
[INFO] [stdout] 134 |     #[cbor(transparent)]
[INFO] [stdout]     |       ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `write_cbor` found for struct `named_struct::X` in the current scope
[INFO] [stdout]   --> tests/derive.rs:30:37
[INFO] [stdout]    |
[INFO] [stdout] 19 |     struct X {
[INFO] [stdout]    |     -------- method `write_cbor` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 30 |     let bytes = X::new("hello", 42).write_cbor(CborBuilder::default());
[INFO] [stdout]    |                                     ^^^^^^^^^^ method not found in `X`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `write_cbor`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `WriteCbor`
[INFO] [stdout] help: some of the expressions' fields have a method of the same name
[INFO] [stdout]    |
[INFO] [stdout] 30 |     let bytes = X::new("hello", 42).x.write_cbor(CborBuilder::default());
[INFO] [stdout]    |                                     ++
[INFO] [stdout] 30 |     let bytes = X::new("hello", 42).y.write_cbor(CborBuilder::default());
[INFO] [stdout]    |                                     ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `named_struct::X` in the current scope
[INFO] [stdout]   --> tests/derive.rs:35:16
[INFO] [stdout]    |
[INFO] [stdout] 19 |     struct X {
[INFO] [stdout]    |     -------- function or associated item `read_cbor` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 35 |     let x = X::read_cbor(bytes.as_ref()).unwrap();
[INFO] [stdout]    |                ^^^^^^^^^ function or associated item not found in `X`
[INFO] [stdout]    |
[INFO] [stdout] note: if you're trying to build a new `named_struct::X`, consider using `named_struct::X::new` which returns `named_struct::X`
[INFO] [stdout]   --> tests/derive.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |         fn new(x: impl Into<String>, y: u64) -> Self {
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `named_struct::X` in the current scope
[INFO] [stdout]   --> tests/derive.rs:38:12
[INFO] [stdout]    |
[INFO] [stdout] 19 |     struct X {
[INFO] [stdout]    |     -------- function or associated item `read_cbor` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 38 |         X::read_cbor(Cbor::checked(&*b("a2 61 77 64 68 65 6c 6c 61 41 00")).unwrap()).unwrap_err();
[INFO] [stdout]    |            ^^^^^^^^^ function or associated item not found in `X`
[INFO] [stdout]    |
[INFO] [stdout] note: if you're trying to build a new `named_struct::X`, consider using `named_struct::X::new` which returns `named_struct::X`
[INFO] [stdout]   --> tests/derive.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |         fn new(x: impl Into<String>, y: u64) -> Self {
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `named_struct::X` in the current scope
[INFO] [stdout]   --> tests/derive.rs:41:12
[INFO] [stdout]    |
[INFO] [stdout] 19 |     struct X {
[INFO] [stdout]    |     -------- function or associated item `read_cbor` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 41 |         X::read_cbor(Cbor::checked(&*b("a3 61 78 64 68 65 6c 6c 61 79 18 2a 61 41 00")).unwrap())
[INFO] [stdout]    |            ^^^^^^^^^ function or associated item not found in `X`
[INFO] [stdout]    |
[INFO] [stdout] note: if you're trying to build a new `named_struct::X`, consider using `named_struct::X::new` which returns `named_struct::X`
[INFO] [stdout]   --> tests/derive.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |         fn new(x: impl Into<String>, y: u64) -> Self {
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `name` found for struct `named_struct::X` in the current scope
[INFO] [stdout]   --> tests/derive.rs:44:19
[INFO] [stdout]    |
[INFO] [stdout] 19 |     struct X {
[INFO] [stdout]    |     -------- function or associated item `name` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 44 |     assert_eq!(X::name(), "X");
[INFO] [stdout]    |                   ^^^^ function or associated item not found in `X`
[INFO] [stdout]    |
[INFO] [stdout] note: if you're trying to build a new `named_struct::X`, consider using `named_struct::X::new` which returns `named_struct::X`
[INFO] [stdout]   --> tests/derive.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |         fn new(x: impl Into<String>, y: u64) -> Self {
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following traits define an item `name`, perhaps you need to implement one of them:
[INFO] [stdout]            candidate #1: `ReadCbor`
[INFO] [stdout]            candidate #2: `clap::args::any_arg::AnyArg`
[INFO] [stdout] help: there is a method `ne` with a similar name, but with different arguments
[INFO] [stdout]   --> /rustc/3f1be1ec7ec3d8e80beb381ee82164a0aa3ca777/library/core/src/cmp.rs:261:5
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `write_cbor` found for struct `tuple_struct::X` in the current scope
[INFO] [stdout]   --> tests/derive.rs:53:34
[INFO] [stdout]    |
[INFO] [stdout] 50 |     struct X(u64, String);
[INFO] [stdout]    |     -------- method `write_cbor` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 53 |     let bytes = X(42, s.clone()).write_cbor(CborBuilder::default());
[INFO] [stdout]    |                                  ^^^^^^^^^^ method not found in `X`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `write_cbor`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `WriteCbor`
[INFO] [stdout] help: some of the expressions' fields have a method of the same name
[INFO] [stdout]    |
[INFO] [stdout] 53 |     let bytes = X(42, s.clone()).0.write_cbor(CborBuilder::default());
[INFO] [stdout]    |                                  ++
[INFO] [stdout] 53 |     let bytes = X(42, s.clone()).1.write_cbor(CborBuilder::default());
[INFO] [stdout]    |                                  ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `tuple_struct::X` in the current scope
[INFO] [stdout]   --> tests/derive.rs:55:16
[INFO] [stdout]    |
[INFO] [stdout] 50 |     struct X(u64, String);
[INFO] [stdout]    |     -------- function or associated item `read_cbor` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 55 |     let x = X::read_cbor(bytes.as_ref()).unwrap();
[INFO] [stdout]    |                ^^^^^^^^^ function or associated item not found in `X`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `tuple_struct::X` in the current scope
[INFO] [stdout]   --> tests/derive.rs:57:16
[INFO] [stdout]    |
[INFO] [stdout] 50 |     struct X(u64, String);
[INFO] [stdout]    |     -------- function or associated item `read_cbor` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 57 |     let e = X::read_cbor(Cbor::checked(&*b("81 18 2a")).unwrap()).unwrap_err();
[INFO] [stdout]    |                ^^^^^^^^^ function or associated item not found in `X`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `tuple_struct::X` in the current scope
[INFO] [stdout]   --> tests/derive.rs:66:16
[INFO] [stdout]    |
[INFO] [stdout] 50 |     struct X(u64, String);
[INFO] [stdout]    |     -------- function or associated item `read_cbor` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 66 |     let x = X::read_cbor(Cbor::checked(&*b("83 17 60 00")).unwrap()).unwrap();
[INFO] [stdout]    |                ^^^^^^^^^ function or associated item not found in `X`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `write_cbor` found for struct `single_struct::X` in the current scope
[INFO] [stdout]   --> tests/derive.rs:76:14
[INFO] [stdout]    |
[INFO] [stdout] 73 |     struct X(u64);
[INFO] [stdout]    |     -------- method `write_cbor` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 76 |         X(3).write_cbor(CborBuilder::default()).as_slice(),
[INFO] [stdout]    |              ^^^^^^^^^^ method not found in `X`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `write_cbor`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `WriteCbor`
[INFO] [stdout] help: one of the expressions' fields has a method of the same name
[INFO] [stdout]    |
[INFO] [stdout] 76 |         X(3).0.write_cbor(CborBuilder::default()).as_slice(),
[INFO] [stdout]    |              ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `single_struct::X` in the current scope
[INFO] [stdout]   --> tests/derive.rs:80:12
[INFO] [stdout]    |
[INFO] [stdout] 73 |     struct X(u64);
[INFO] [stdout]    |     -------- function or associated item `read_cbor` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 80 |         X::read_cbor(Cbor::checked(&*b("82 13 00")).unwrap()).unwrap(),
[INFO] [stdout]    |            ^^^^^^^^^ function or associated item not found in `X`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `write_cbor` found for struct `Y` in the current scope
[INFO] [stdout]   --> tests/derive.rs:88:21
[INFO] [stdout]    |
[INFO] [stdout] 86 |     struct Y(u64);
[INFO] [stdout]    |     -------- method `write_cbor` not found for this struct
[INFO] [stdout] 87 |
[INFO] [stdout] 88 |     assert_eq!(Y(3).write_cbor(CborBuilder::default()).as_slice(), b("03"));
[INFO] [stdout]    |                     ^^^^^^^^^^ method not found in `Y`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `write_cbor`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `WriteCbor`
[INFO] [stdout] help: one of the expressions' fields has a method of the same name
[INFO] [stdout]    |
[INFO] [stdout] 88 |     assert_eq!(Y(3).0.write_cbor(CborBuilder::default()).as_slice(), b("03"));
[INFO] [stdout]    |                     ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `Y` in the current scope
[INFO] [stdout]   --> tests/derive.rs:90:12
[INFO] [stdout]    |
[INFO] [stdout] 86 |     struct Y(u64);
[INFO] [stdout]    |     -------- function or associated item `read_cbor` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 90 |         Y::read_cbor(Cbor::checked(&*b("13")).unwrap()).unwrap(),
[INFO] [stdout]    |            ^^^^^^^^^ function or associated item not found in `Y`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `write_cbor` found for enum `enums::X` in the current scope
[INFO] [stdout]    --> tests/derive.rs:110:25
[INFO] [stdout]     |
[INFO] [stdout] 98  |     enum X {
[INFO] [stdout]     |     ------ method `write_cbor` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 110 |     let bytes = X::Unit.write_cbor(CborBuilder::default());
[INFO] [stdout]     |                         ^^^^^^^^^^ method not found in `enums::X`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `write_cbor`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `WriteCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant or associated item named `read_cbor` found for enum `enums::X` in the current scope
[INFO] [stdout]    --> tests/derive.rs:112:19
[INFO] [stdout]     |
[INFO] [stdout] 98  |     enum X {
[INFO] [stdout]     |     ------ variant or associated item `read_cbor` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 112 |     assert_eq!(X::read_cbor(bytes.as_ref()).unwrap(), X::Unit);
[INFO] [stdout]     |                   ^^^^^^^^^ variant or associated item not found in `enums::X`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `write_cbor` found for enum `enums::X` in the current scope
[INFO] [stdout]    --> tests/derive.rs:114:27
[INFO] [stdout]     |
[INFO] [stdout] 98  |     enum X {
[INFO] [stdout]     |     ------ method `write_cbor` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 114 |     let bytes = X::One(1).write_cbor(CborBuilder::default());
[INFO] [stdout]     |                           ^^^^^^^^^^ method not found in `enums::X`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `write_cbor`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `WriteCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant or associated item named `read_cbor` found for enum `enums::X` in the current scope
[INFO] [stdout]    --> tests/derive.rs:116:19
[INFO] [stdout]     |
[INFO] [stdout] 98  |     enum X {
[INFO] [stdout]     |     ------ variant or associated item `read_cbor` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 116 |     assert_eq!(X::read_cbor(bytes.as_ref()).unwrap(), X::One(1));
[INFO] [stdout]     |                   ^^^^^^^^^ variant or associated item not found in `enums::X`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `write_cbor` found for enum `enums::X` in the current scope
[INFO] [stdout]    --> tests/derive.rs:118:32
[INFO] [stdout]     |
[INFO] [stdout] 98  |     enum X {
[INFO] [stdout]     |     ------ method `write_cbor` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 118 |     let bytes = X::OnePrime(2).write_cbor(CborBuilder::default());
[INFO] [stdout]     |                                ^^^^^^^^^^ method not found in `enums::X`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `write_cbor`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `WriteCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant or associated item named `read_cbor` found for enum `enums::X` in the current scope
[INFO] [stdout]    --> tests/derive.rs:120:19
[INFO] [stdout]     |
[INFO] [stdout] 98  |     enum X {
[INFO] [stdout]     |     ------ variant or associated item `read_cbor` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 120 |     assert_eq!(X::read_cbor(bytes.as_ref()).unwrap(), X::OnePrime(2));
[INFO] [stdout]     |                   ^^^^^^^^^ variant or associated item not found in `enums::X`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `write_cbor` found for enum `enums::X` in the current scope
[INFO] [stdout]    --> tests/derive.rs:122:30
[INFO] [stdout]     |
[INFO] [stdout] 98  |     enum X {
[INFO] [stdout]     |     ------ method `write_cbor` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 122 |     let bytes = X::Two(3, 4).write_cbor(CborBuilder::default());
[INFO] [stdout]     |                              ^^^^^^^^^^ method not found in `enums::X`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `write_cbor`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `WriteCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant or associated item named `read_cbor` found for enum `enums::X` in the current scope
[INFO] [stdout]    --> tests/derive.rs:124:19
[INFO] [stdout]     |
[INFO] [stdout] 98  |     enum X {
[INFO] [stdout]     |     ------ variant or associated item `read_cbor` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 124 |     assert_eq!(X::read_cbor(bytes.as_ref()).unwrap(), X::Two(3, 4));
[INFO] [stdout]     |                   ^^^^^^^^^ variant or associated item not found in `enums::X`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `write_cbor` found for enum `enums::X` in the current scope
[INFO] [stdout]    --> tests/derive.rs:126:39
[INFO] [stdout]     |
[INFO] [stdout] 98  |     enum X {
[INFO] [stdout]     |     ------ method `write_cbor` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 126 |     let bytes = X::Rec { a: 5, b: 6 }.write_cbor(CborBuilder::default());
[INFO] [stdout]     |                                       ^^^^^^^^^^ method not found in `enums::X`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `write_cbor`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `WriteCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant or associated item named `read_cbor` found for enum `enums::X` in the current scope
[INFO] [stdout]    --> tests/derive.rs:128:19
[INFO] [stdout]     |
[INFO] [stdout] 98  |     enum X {
[INFO] [stdout]     |     ------ variant or associated item `read_cbor` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 128 |     assert_eq!(X::read_cbor(bytes.as_ref()).unwrap(), X::Rec { a: 5, b: 6 });
[INFO] [stdout]     |                   ^^^^^^^^^ variant or associated item not found in `enums::X`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `write_cbor` found for struct `error::X` in the current scope
[INFO] [stdout]    --> tests/derive.rs:137:31
[INFO] [stdout]     |
[INFO] [stdout] 135 |     struct X(Vec<u32>);
[INFO] [stdout]     |     -------- method `write_cbor` not found for this struct
[INFO] [stdout] 136 |
[INFO] [stdout] 137 |     let bytes = X(vec![1, 2]).write_cbor(CborBuilder::default());
[INFO] [stdout]     |                               ^^^^^^^^^^ method not found in `error::X`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `write_cbor`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `WriteCbor`
[INFO] [stdout] help: one of the expressions' fields has a method of the same name
[INFO] [stdout]     |
[INFO] [stdout] 137 |     let bytes = X(vec![1, 2]).0.write_cbor(CborBuilder::default());
[INFO] [stdout]     |                               ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `error::X` in the current scope
[INFO] [stdout]    --> tests/derive.rs:139:19
[INFO] [stdout]     |
[INFO] [stdout] 135 |     struct X(Vec<u32>);
[INFO] [stdout]     |     -------- function or associated item `read_cbor` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 139 |     assert_eq!(X::read_cbor(bytes.as_ref()).unwrap(), X(vec![1, 2]));
[INFO] [stdout]     |                   ^^^^^^^^^ function or associated item not found in `error::X`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `error::X` in the current scope
[INFO] [stdout]    --> tests/derive.rs:141:18
[INFO] [stdout]     |
[INFO] [stdout] 135 |     struct X(Vec<u32>);
[INFO] [stdout]     |     -------- function or associated item `read_cbor` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 141 |     let err = X::read_cbor(Cbor::checked(&*b("82 21 02")).unwrap()).unwrap_err();
[INFO] [stdout]     |                  ^^^^^^^^^ function or associated item not found in `error::X`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `error::X` in the current scope
[INFO] [stdout]    --> tests/derive.rs:144:18
[INFO] [stdout]     |
[INFO] [stdout] 135 |     struct X(Vec<u32>);
[INFO] [stdout]     |     -------- function or associated item `read_cbor` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 144 |     let err = X::read_cbor(Cbor::checked(&*b("82 41 00 02")).unwrap()).unwrap_err();
[INFO] [stdout]     |                  ^^^^^^^^^ function or associated item not found in `error::X`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `error::X` in the current scope
[INFO] [stdout]    --> tests/derive.rs:147:18
[INFO] [stdout]     |
[INFO] [stdout] 135 |     struct X(Vec<u32>);
[INFO] [stdout]     |     -------- function or associated item `read_cbor` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 147 |     let err = X::read_cbor(Cbor::checked(&*b("82 c2 41 00 02")).unwrap()).unwrap_err();
[INFO] [stdout]     |                  ^^^^^^^^^ function or associated item not found in `error::X`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `error::X` in the current scope
[INFO] [stdout]    --> tests/derive.rs:153:18
[INFO] [stdout]     |
[INFO] [stdout] 135 |     struct X(Vec<u32>);
[INFO] [stdout]     |     -------- function or associated item `read_cbor` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 153 |     let err = X::read_cbor(Cbor::checked(&*b("a1 01 02")).unwrap()).unwrap_err();
[INFO] [stdout]     |                  ^^^^^^^^^ function or associated item not found in `error::X`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `read_cbor`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `ReadCbor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0599`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `cbor-data` (test "derive") due to 44 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/lib.rs:98:9
[INFO] [stdout]    |
[INFO] [stdout] 96 |     fn fmt(&self, mut f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
[INFO] [stdout]    |     ---------------------------------------------------------------------- move the `impl` block outside of this method `fmt`
[INFO] [stdout] 97 |         // check https://datatracker.ietf.org/doc/html/rfc8949#section-8 for the format
[INFO] [stdout] 98 |         impl<'a> Visitor<'a, std::fmt::Error> for &mut std::fmt::Formatter<'_> {
[INFO] [stdout]    |         ^^^^^^^^^-------^^^^^---------------^^^^^^^^^^^-------------------^^^^
[INFO] [stdout]    |                  |           |                         |
[INFO] [stdout]    |                  |           |                         `Formatter` is not local
[INFO] [stdout]    |                  |           `Error` is not local
[INFO] [stdout]    |                  `Visitor` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "cd823640caccd5480885339180f588b0837ba6d7a9be121c083a21fa4861b4dd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cd823640caccd5480885339180f588b0837ba6d7a9be121c083a21fa4861b4dd", kill_on_drop: false }`
[INFO] [stdout] cd823640caccd5480885339180f588b0837ba6d7a9be121c083a21fa4861b4dd
