[INFO] fetching crate led 0.3.1... [INFO] testing led-0.3.1 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate led 0.3.1 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate led 0.3.1 [INFO] finished tweaking crates.io crate led 0.3.1 [INFO] tweaked toml for crates.io crate led 0.3.1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate led 0.3.1 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 4 packages to latest compatible versions [INFO] [stderr] Adding embedded-hal v0.2.7 (available: v1.0.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6cc475473ec24e99ad632a8e7556ae24c7df9db3e51955f9cddf5ddb72df13f3 [INFO] running `Command { std: "docker" "start" "-a" "6cc475473ec24e99ad632a8e7556ae24c7df9db3e51955f9cddf5ddb72df13f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6cc475473ec24e99ad632a8e7556ae24c7df9db3e51955f9cddf5ddb72df13f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cc475473ec24e99ad632a8e7556ae24c7df9db3e51955f9cddf5ddb72df13f3", kill_on_drop: false }` [INFO] [stdout] 6cc475473ec24e99ad632a8e7556ae24c7df9db3e51955f9cddf5ddb72df13f3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1fdaebe41dc5e40b5b1be4da02f81916eff7e9a2d8879303c298b2b07132433 [INFO] running `Command { std: "docker" "start" "-a" "e1fdaebe41dc5e40b5b1be4da02f81916eff7e9a2d8879303c298b2b07132433", kill_on_drop: false }` [INFO] [stderr] Compiling nb v1.1.0 [INFO] [stderr] Compiling nb v0.1.3 [INFO] [stderr] Compiling embedded-hal v0.2.7 [INFO] [stderr] Compiling led v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] running `Command { std: "docker" "inspect" "e1fdaebe41dc5e40b5b1be4da02f81916eff7e9a2d8879303c298b2b07132433", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1fdaebe41dc5e40b5b1be4da02f81916eff7e9a2d8879303c298b2b07132433", kill_on_drop: false }` [INFO] [stdout] e1fdaebe41dc5e40b5b1be4da02f81916eff7e9a2d8879303c298b2b07132433 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f40dd372f9d909e99ad397b792bf0224526b93e7cd9795ee8a0d2c842c11a411 [INFO] running `Command { std: "docker" "start" "-a" "f40dd372f9d909e99ad397b792bf0224526b93e7cd9795ee8a0d2c842c11a411", kill_on_drop: false }` [INFO] [stderr] Compiling led v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.47s [INFO] running `Command { std: "docker" "inspect" "f40dd372f9d909e99ad397b792bf0224526b93e7cd9795ee8a0d2c842c11a411", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f40dd372f9d909e99ad397b792bf0224526b93e7cd9795ee8a0d2c842c11a411", kill_on_drop: false }` [INFO] [stdout] f40dd372f9d909e99ad397b792bf0224526b93e7cd9795ee8a0d2c842c11a411 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 868a3f5974de0fa7a46da21d23a2005089e28d10bde60325801890cea66018c6 [INFO] running `Command { std: "docker" "start" "-a" "868a3f5974de0fa7a46da21d23a2005089e28d10bde60325801890cea66018c6", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/led-edd613bed98bc782) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests led [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test src/rgb.rs - rgb (line 21) ... FAILED [INFO] [stdout] test src/rgb.rs - rgb::RGB (line 108) ... FAILED [INFO] [stdout] test src/mono.rs - mono::Monocolor (line 88) ... FAILED [INFO] [stdout] test src/mono.rs - mono::CommonAnode (line 188) ... FAILED [INFO] [stdout] test src/rgb.rs - rgb::CommonAnode (line 255) ... FAILED [INFO] [stdout] test src/mono.rs - mono (line 21) ... FAILED [INFO] [stdout] test src/rgb.rs - rgb::CommonCathode (line 285) ... FAILED [INFO] [stdout] test src/rgb.rs - rgb (line 47) ... FAILED [INFO] [stdout] test src/mono.rs - mono::CommonCathode (line 218) ... FAILED [INFO] [stdout] test src/mono.rs - mono (line 45) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/rgb.rs - rgb (line 21) stdout ---- [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/rgb.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rgb.rs - rgb::RGB (line 108) stdout ---- [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/rgb.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rgb.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | let mut leds: [&mut RGB; 2] = [ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 132 | let mut leds: [&mut dyn RGB; 2] = [ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/mono.rs - mono::Monocolor (line 88) stdout ---- [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/mono.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mono.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | let mut leds: [&mut RGB; 2] = [ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 112 | let mut leds: [&mut dyn RGB; 2] = [ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/mono.rs - mono::CommonAnode (line 188) stdout ---- [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/mono.rs:194:1 [INFO] [stdout] | [INFO] [stdout] 194 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 5 generic arguments but 4 generic arguments were supplied [INFO] [stdout] --> src/mono.rs:209:10 [INFO] [stdout] | [INFO] [stdout] 209 | let led: LED = LED::new(r, g, b); [INFO] [stdout] | ^^^ ----------- - - - supplied 4 generic arguments [INFO] [stdout] | | [INFO] [stdout] | expected 5 generic arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 5 generic parameters: `C`, `R`, `G`, `B`, `E` [INFO] [stdout] --> src/rgb.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub struct LED [INFO] [stdout] | ^^^ - - - - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 209 | let led: LED = LED::new(r, g, b); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0107. [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rgb.rs - rgb::CommonAnode (line 255) stdout ---- [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/rgb.rs:261:1 [INFO] [stdout] | [INFO] [stdout] 261 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 5 generic arguments but 4 generic arguments were supplied [INFO] [stdout] --> src/rgb.rs:276:10 [INFO] [stdout] | [INFO] [stdout] 276 | let led: LED = LED::new(r, g, b); [INFO] [stdout] | ^^^ ----------- - - - supplied 4 generic arguments [INFO] [stdout] | | [INFO] [stdout] | expected 5 generic arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 5 generic parameters: `C`, `R`, `G`, `B`, `E` [INFO] [stdout] --> src/rgb.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub struct LED [INFO] [stdout] | ^^^ - - - - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 276 | let led: LED = LED::new(r, g, b); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0107. [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/mono.rs - mono (line 21) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `led::monocolor` [INFO] [stdout] --> src/mono.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | use led::monocolor::CommonAnodeLED; [INFO] [stdout] | ^^^^^^^^^ could not find `monocolor` in `led` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `State` in this scope [INFO] [stdout] --> src/mono.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | led.set(State::On); [INFO] [stdout] | ^^^^^ use of undeclared type `State` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 20 + use led::mono::State; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/mono.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rgb.rs - rgb::CommonCathode (line 285) stdout ---- [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/rgb.rs:291:1 [INFO] [stdout] | [INFO] [stdout] 291 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 5 generic arguments but 4 generic arguments were supplied [INFO] [stdout] --> src/rgb.rs:306:10 [INFO] [stdout] | [INFO] [stdout] 306 | let led: LED = LED::new(r, g, b); [INFO] [stdout] | ^^^ ------------- - - - supplied 4 generic arguments [INFO] [stdout] | | [INFO] [stdout] | expected 5 generic arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 5 generic parameters: `C`, `R`, `G`, `B`, `E` [INFO] [stdout] --> src/rgb.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub struct LED [INFO] [stdout] | ^^^ - - - - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 306 | let led: LED = LED::new(r, g, b); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0107. [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rgb.rs - rgb (line 47) stdout ---- [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/rgb.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rgb.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 72 | let mut leds: [&mut RGB; 2] = [ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 72 | let mut leds: [&mut dyn RGB; 2] = [ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/mono.rs - mono::CommonCathode (line 218) stdout ---- [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/mono.rs:224:1 [INFO] [stdout] | [INFO] [stdout] 224 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 5 generic arguments but 4 generic arguments were supplied [INFO] [stdout] --> src/mono.rs:239:10 [INFO] [stdout] | [INFO] [stdout] 239 | let led: LED = LED::new(r, g, b); [INFO] [stdout] | ^^^ ------------- - - - supplied 4 generic arguments [INFO] [stdout] | | [INFO] [stdout] | expected 5 generic arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 5 generic parameters: `C`, `R`, `G`, `B`, `E` [INFO] [stdout] --> src/rgb.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub struct LED [INFO] [stdout] | ^^^ - - - - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 239 | let led: LED = LED::new(r, g, b); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0107. [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/mono.rs - mono (line 45) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `led::monocolor` [INFO] [stdout] --> src/mono.rs:64:10 [INFO] [stdout] | [INFO] [stdout] 64 | use led::monocolor::{CommonAnodeLED, CommonCathodeLED, Monocolor}; [INFO] [stdout] | ^^^^^^^^^ could not find `monocolor` in `led` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `State` in this scope [INFO] [stdout] --> src/mono.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | led.set(State::On) [INFO] [stdout] | ^^^^^ use of undeclared type `State` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 44 + use led::mono::State; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/mono.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/mono.rs - mono (line 21) [INFO] [stdout] src/mono.rs - mono (line 45) [INFO] [stdout] src/mono.rs - mono::CommonAnode (line 188) [INFO] [stdout] src/mono.rs - mono::CommonCathode (line 218) [INFO] [stdout] src/mono.rs - mono::Monocolor (line 88) [INFO] [stdout] src/rgb.rs - rgb (line 21) [INFO] [stdout] src/rgb.rs - rgb (line 47) [INFO] [stdout] src/rgb.rs - rgb::CommonAnode (line 255) [INFO] [stdout] src/rgb.rs - rgb::CommonCathode (line 285) [INFO] [stdout] src/rgb.rs - rgb::RGB (line 108) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 10 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.38s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "868a3f5974de0fa7a46da21d23a2005089e28d10bde60325801890cea66018c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "868a3f5974de0fa7a46da21d23a2005089e28d10bde60325801890cea66018c6", kill_on_drop: false }` [INFO] [stdout] 868a3f5974de0fa7a46da21d23a2005089e28d10bde60325801890cea66018c6