[INFO] fetching crate partial-enum 0.0.4... [INFO] testing partial-enum-0.0.4 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate partial-enum 0.0.4 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate partial-enum 0.0.4 [INFO] finished tweaking crates.io crate partial-enum 0.0.4 [INFO] tweaked toml for crates.io crate partial-enum 0.0.4 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate partial-enum 0.0.4 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 4 packages to latest compatible versions [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.106) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 215b05fda3202fcb76d2fee71dcdb67bf62ee9adf204f0cc7d0b9172ab520eb8 [INFO] running `Command { std: "docker" "start" "-a" "215b05fda3202fcb76d2fee71dcdb67bf62ee9adf204f0cc7d0b9172ab520eb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "215b05fda3202fcb76d2fee71dcdb67bf62ee9adf204f0cc7d0b9172ab520eb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "215b05fda3202fcb76d2fee71dcdb67bf62ee9adf204f0cc7d0b9172ab520eb8", kill_on_drop: false }` [INFO] [stdout] 215b05fda3202fcb76d2fee71dcdb67bf62ee9adf204f0cc7d0b9172ab520eb8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e4ec74f3d6da99ef5e1112935c001f897788a32f1901f9760ad38a013d0e3e3c [INFO] running `Command { std: "docker" "start" "-a" "e4ec74f3d6da99ef5e1112935c001f897788a32f1901f9760ad38a013d0e3e3c", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling partial-enum v0.0.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.67s [INFO] running `Command { std: "docker" "inspect" "e4ec74f3d6da99ef5e1112935c001f897788a32f1901f9760ad38a013d0e3e3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4ec74f3d6da99ef5e1112935c001f897788a32f1901f9760ad38a013d0e3e3c", kill_on_drop: false }` [INFO] [stdout] e4ec74f3d6da99ef5e1112935c001f897788a32f1901f9760ad38a013d0e3e3c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7679d78e9bf3b1d42c8ef879313a64f9cb85dd60130a5ec2d7195d460173b03c [INFO] running `Command { std: "docker" "start" "-a" "7679d78e9bf3b1d42c8ef879313a64f9cb85dd60130a5ec2d7195d460173b03c", kill_on_drop: false }` [INFO] [stderr] Compiling partial-enum v0.0.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.55s [INFO] running `Command { std: "docker" "inspect" "7679d78e9bf3b1d42c8ef879313a64f9cb85dd60130a5ec2d7195d460173b03c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7679d78e9bf3b1d42c8ef879313a64f9cb85dd60130a5ec2d7195d460173b03c", kill_on_drop: false }` [INFO] [stdout] 7679d78e9bf3b1d42c8ef879313a64f9cb85dd60130a5ec2d7195d460173b03c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3cd5d922c65d36525aa6dc63b425779659e20248b4ec7864f38018760fef846f [INFO] running `Command { std: "docker" "start" "-a" "3cd5d922c65d36525aa6dc63b425779659e20248b4ec7864f38018760fef846f", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/partial_enum-a972e6099a0a564c) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test permutation::tests::test_permutations ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests partial_enum [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/lib.rs - derive_error (line 220) ... FAILED [INFO] [stdout] test src/lib.rs - derive_error (line 235) ... ok [INFO] [stdout] test src/lib.rs - (line 91) ... FAILED [INFO] [stdout] test src/lib.rs - (line 136) ... FAILED [INFO] [stdout] test src/lib.rs - (line 49) ... ok [INFO] [stdout] test src/lib.rs - (line 16) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - derive_error (line 220) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:227:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `Foo`, found `()` [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/lib.rs:229:5 [INFO] [stdout] | [INFO] [stdout] 12 | Foo(Foo), [INFO] [stdout] | ^^^ [INFO] [stdout] = note: this error originates in the derive macro `partial_enum::Enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:227:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(partial_enum::Enum)] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `Bar`, found `()` [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/lib.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 13 | Bar(Bar), [INFO] [stdout] | ^^^ [INFO] [stdout] = note: this error originates in the derive macro `partial_enum::Enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 91) stdout ---- [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:111:32 [INFO] [stdout] | [INFO] [stdout] 23 | fn connect() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] 17 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:111:32 [INFO] [stdout] | [INFO] [stdout] 23 | fn connect() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the trait `DecodeBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeBound`: [INFO] [stdout] () [INFO] [stdout] DecodeError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 18 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:115:45 [INFO] [stdout] | [INFO] [stdout] 27 | fn read(sock: &mut Socket) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:115:45 [INFO] [stdout] | [INFO] [stdout] 27 | fn read(sock: &mut Socket) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `DecodeBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeBound`: [INFO] [stdout] () [INFO] [stdout] DecodeError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 18 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:119:44 [INFO] [stdout] | [INFO] [stdout] 31 | fn decode(bytes: Bytes) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:119:44 [INFO] [stdout] | [INFO] [stdout] 31 | fn decode(bytes: Bytes) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] 17 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:123:55 [INFO] [stdout] | [INFO] [stdout] 35 | fn next_message(sock: &mut Socket) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `ConnectError`, found `()` [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: this error originates in the derive macro `partial_enum::Enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `ReadError`, found `()` [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/lib.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 17 | Read(ReadError), [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: this error originates in the derive macro `partial_enum::Enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `DecodeError`, found `()` [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/lib.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 18 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: this error originates in the derive macro `partial_enum::Enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 24 | Ok(Socket) [INFO] [stdout] | ^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] 17 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 24 | Ok(Socket) [INFO] [stdout] | ^^ the trait `DecodeBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeBound`: [INFO] [stdout] () [INFO] [stdout] DecodeError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 18 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 28 | Ok(Bytes) [INFO] [stdout] | ^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 28 | Ok(Bytes) [INFO] [stdout] | ^^ the trait `DecodeBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeBound`: [INFO] [stdout] () [INFO] [stdout] DecodeError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 18 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 32 | Err(DecodeError)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 32 | Err(DecodeError)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] 17 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 32 | Err(DecodeError)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 32 | Err(DecodeError)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] 17 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 32 | Err(DecodeError)? [INFO] [stdout] | ^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 32 | Err(DecodeError)? [INFO] [stdout] | ^^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] 17 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:124:19 [INFO] [stdout] | [INFO] [stdout] 36 | let payload = read(sock)?; [INFO] [stdout] | ^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:124:19 [INFO] [stdout] | [INFO] [stdout] 36 | let payload = read(sock)?; [INFO] [stdout] | ^^^^^^^^^^ the trait `DecodeBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeBound`: [INFO] [stdout] () [INFO] [stdout] DecodeError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 18 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:124:19 [INFO] [stdout] | [INFO] [stdout] 36 | let payload = read(sock)?; [INFO] [stdout] | ^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:124:19 [INFO] [stdout] | [INFO] [stdout] 36 | let payload = read(sock)?; [INFO] [stdout] | ^^^^^^^^^^^ the trait `DecodeBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeBound`: [INFO] [stdout] () [INFO] [stdout] DecodeError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 18 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:124:29 [INFO] [stdout] | [INFO] [stdout] 36 | let payload = read(sock)?; [INFO] [stdout] | ^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:124:29 [INFO] [stdout] | [INFO] [stdout] 36 | let payload = read(sock)?; [INFO] [stdout] | ^ the trait `DecodeBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeBound`: [INFO] [stdout] () [INFO] [stdout] DecodeError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 18 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `partial::Error` [INFO] [stdout] --> src/lib.rs:124:29 [INFO] [stdout] | [INFO] [stdout] 35 | fn next_message(sock: &mut Socket) -> Result> { [INFO] [stdout] | --------------------------------------------- expected `partial::Error` because of this [INFO] [stdout] 36 | let payload = read(sock)?; [INFO] [stdout] | ----------^ the trait `From>` is not implemented for `partial::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, partial::Error>` [INFO] [stdout] | [INFO] [stdout] note: `partial::Error` needs to implement `From>` [INFO] [stdout] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: alternatively, `partial::Error` needs to implement `Into>` [INFO] [stdout] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `partial::Error` implements `From` [INFO] [stdout] `partial::Error` implements `From` [INFO] [stdout] `partial::Error` implements `From` [INFO] [stdout] = note: this error originates in the derive macro `partial_enum::Enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 37 | let message = decode(payload)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 37 | let message = decode(payload)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] 17 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 37 | let message = decode(payload)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 37 | let message = decode(payload)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] 17 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:125:34 [INFO] [stdout] | [INFO] [stdout] 37 | let message = decode(payload)?; [INFO] [stdout] | ^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:125:34 [INFO] [stdout] | [INFO] [stdout] 37 | let message = decode(payload)?; [INFO] [stdout] | ^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] 17 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `partial::Error` [INFO] [stdout] --> src/lib.rs:125:34 [INFO] [stdout] | [INFO] [stdout] 35 | fn next_message(sock: &mut Socket) -> Result> { [INFO] [stdout] | --------------------------------------------- expected `partial::Error` because of this [INFO] [stdout] 36 | let payload = read(sock)?; [INFO] [stdout] 37 | let message = decode(payload)?; [INFO] [stdout] | ---------------^ the trait `From>` is not implemented for `partial::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, partial::Error>` [INFO] [stdout] | [INFO] [stdout] note: `partial::Error` needs to implement `From>` [INFO] [stdout] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: alternatively, `partial::Error` needs to implement `Into>` [INFO] [stdout] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `partial::Error` implements `From` [INFO] [stdout] `partial::Error` implements `From` [INFO] [stdout] `partial::Error` implements `From` [INFO] [stdout] = note: this error originates in the derive macro `partial_enum::Enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 38 | Ok(message) [INFO] [stdout] | ^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 16 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 35 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 136) stdout ---- [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 22 | fn connect() -> Result> { Ok(Socket) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] 18 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 22 | fn connect() -> Result> { Ok(Socket) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the trait `DecodeBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeBound`: [INFO] [stdout] () [INFO] [stdout] DecodeError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:156:45 [INFO] [stdout] | [INFO] [stdout] 23 | fn read(sock: &mut Socket) -> Result> { Ok(Bytes) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:156:45 [INFO] [stdout] | [INFO] [stdout] 23 | fn read(sock: &mut Socket) -> Result> { Ok(Bytes) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `DecodeBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeBound`: [INFO] [stdout] () [INFO] [stdout] DecodeError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:157:44 [INFO] [stdout] | [INFO] [stdout] 24 | fn decode(bytes: Bytes) -> Result> { Err(DecodeError)? } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:157:44 [INFO] [stdout] | [INFO] [stdout] 24 | fn decode(bytes: Bytes) -> Result> { Err(DecodeError)? } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] 18 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:158:55 [INFO] [stdout] | [INFO] [stdout] 25 | fn next_message(sock: &mut Socket) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `ConnectError`, found `()` [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: this error originates in the derive macro `partial_enum::Enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `ReadError`, found `()` [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/lib.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 18 | Read(ReadError), [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: this error originates in the derive macro `partial_enum::Enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `DecodeError`, found `()` [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/lib.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 19 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: this error originates in the derive macro `partial_enum::Enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:155:57 [INFO] [stdout] | [INFO] [stdout] 22 | fn connect() -> Result> { Ok(Socket) } [INFO] [stdout] | ^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] 18 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:155:57 [INFO] [stdout] | [INFO] [stdout] 22 | fn connect() -> Result> { Ok(Socket) } [INFO] [stdout] | ^^ the trait `DecodeBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeBound`: [INFO] [stdout] () [INFO] [stdout] DecodeError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:156:67 [INFO] [stdout] | [INFO] [stdout] 23 | fn read(sock: &mut Socket) -> Result> { Ok(Bytes) } [INFO] [stdout] | ^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:156:67 [INFO] [stdout] | [INFO] [stdout] 23 | fn read(sock: &mut Socket) -> Result> { Ok(Bytes) } [INFO] [stdout] | ^^ the trait `DecodeBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeBound`: [INFO] [stdout] () [INFO] [stdout] DecodeError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:157:68 [INFO] [stdout] | [INFO] [stdout] 24 | fn decode(bytes: Bytes) -> Result> { Err(DecodeError)? } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:157:68 [INFO] [stdout] | [INFO] [stdout] 24 | fn decode(bytes: Bytes) -> Result> { Err(DecodeError)? } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] 18 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:157:68 [INFO] [stdout] | [INFO] [stdout] 24 | fn decode(bytes: Bytes) -> Result> { Err(DecodeError)? } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:157:68 [INFO] [stdout] | [INFO] [stdout] 24 | fn decode(bytes: Bytes) -> Result> { Err(DecodeError)? } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] 18 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:157:68 [INFO] [stdout] | [INFO] [stdout] 24 | fn decode(bytes: Bytes) -> Result> { Err(DecodeError)? } [INFO] [stdout] | ^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:157:68 [INFO] [stdout] | [INFO] [stdout] 24 | fn decode(bytes: Bytes) -> Result> { Err(DecodeError)? } [INFO] [stdout] | ^^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] 18 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:159:19 [INFO] [stdout] | [INFO] [stdout] 26 | let payload = read(sock)?; [INFO] [stdout] | ^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:159:19 [INFO] [stdout] | [INFO] [stdout] 26 | let payload = read(sock)?; [INFO] [stdout] | ^^^^^^^^^^ the trait `DecodeBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeBound`: [INFO] [stdout] () [INFO] [stdout] DecodeError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:159:19 [INFO] [stdout] | [INFO] [stdout] 26 | let payload = read(sock)?; [INFO] [stdout] | ^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:159:19 [INFO] [stdout] | [INFO] [stdout] 26 | let payload = read(sock)?; [INFO] [stdout] | ^^^^^^^^^^^ the trait `DecodeBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeBound`: [INFO] [stdout] () [INFO] [stdout] DecodeError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 26 | let payload = read(sock)?; [INFO] [stdout] | ^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 26 | let payload = read(sock)?; [INFO] [stdout] | ^ the trait `DecodeBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeBound`: [INFO] [stdout] () [INFO] [stdout] DecodeError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `partial::Error` [INFO] [stdout] --> src/lib.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 25 | fn next_message(sock: &mut Socket) -> Result> { [INFO] [stdout] | --------------------------------------------- expected `partial::Error` because of this [INFO] [stdout] 26 | let payload = read(sock)?; [INFO] [stdout] | ----------^ the trait `From>` is not implemented for `partial::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, partial::Error>` [INFO] [stdout] | [INFO] [stdout] note: `partial::Error` needs to implement `From>` [INFO] [stdout] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: alternatively, `partial::Error` needs to implement `Into>` [INFO] [stdout] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `partial::Error` implements `From` [INFO] [stdout] `partial::Error` implements `From` [INFO] [stdout] `partial::Error` implements `From` [INFO] [stdout] = note: this error originates in the derive macro `partial_enum::Enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:160:19 [INFO] [stdout] | [INFO] [stdout] 27 | let message = decode(payload)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:160:19 [INFO] [stdout] | [INFO] [stdout] 27 | let message = decode(payload)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] 18 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:160:19 [INFO] [stdout] | [INFO] [stdout] 27 | let message = decode(payload)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:160:19 [INFO] [stdout] | [INFO] [stdout] 27 | let message = decode(payload)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] 18 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:160:34 [INFO] [stdout] | [INFO] [stdout] 27 | let message = decode(payload)?; [INFO] [stdout] | ^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:160:34 [INFO] [stdout] | [INFO] [stdout] 27 | let message = decode(payload)?; [INFO] [stdout] | ^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] 18 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `partial::Error` [INFO] [stdout] --> src/lib.rs:160:34 [INFO] [stdout] | [INFO] [stdout] 25 | fn next_message(sock: &mut Socket) -> Result> { [INFO] [stdout] | --------------------------------------------- expected `partial::Error` because of this [INFO] [stdout] 26 | let payload = read(sock)?; [INFO] [stdout] 27 | let message = decode(payload)?; [INFO] [stdout] | ---------------^ the trait `From>` is not implemented for `partial::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, partial::Error>` [INFO] [stdout] | [INFO] [stdout] note: `partial::Error` needs to implement `From>` [INFO] [stdout] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: alternatively, `partial::Error` needs to implement `Into>` [INFO] [stdout] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `partial::Error` implements `From` [INFO] [stdout] `partial::Error` implements `From` [INFO] [stdout] `partial::Error` implements `From` [INFO] [stdout] = note: this error originates in the derive macro `partial_enum::Enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 28 | Ok(message) [INFO] [stdout] | ^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:164:22 [INFO] [stdout] | [INFO] [stdout] 31 | let mut socket = connect()?; [INFO] [stdout] | ^^^^^^^^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] 18 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:164:22 [INFO] [stdout] | [INFO] [stdout] 31 | let mut socket = connect()?; [INFO] [stdout] | ^^^^^^^^^ the trait `DecodeBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeBound`: [INFO] [stdout] () [INFO] [stdout] DecodeError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:164:22 [INFO] [stdout] | [INFO] [stdout] 31 | let mut socket = connect()?; [INFO] [stdout] | ^^^^^^^^^^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] 18 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:164:22 [INFO] [stdout] | [INFO] [stdout] 31 | let mut socket = connect()?; [INFO] [stdout] | ^^^^^^^^^^ the trait `DecodeBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeBound`: [INFO] [stdout] () [INFO] [stdout] DecodeError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:164:31 [INFO] [stdout] | [INFO] [stdout] 31 | let mut socket = connect()?; [INFO] [stdout] | ^ the trait `ReadBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ReadBound`: [INFO] [stdout] () [INFO] [stdout] ReadError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] 18 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:164:31 [INFO] [stdout] | [INFO] [stdout] 31 | let mut socket = connect()?; [INFO] [stdout] | ^ the trait `DecodeBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `DecodeBound`: [INFO] [stdout] () [INFO] [stdout] DecodeError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `example::Error` [INFO] [stdout] --> src/lib.rs:164:31 [INFO] [stdout] | [INFO] [stdout] 30 | fn read_one_message() -> Result { [INFO] [stdout] | ---------------------- expected `example::Error` because of this [INFO] [stdout] 31 | let mut socket = connect()?; [INFO] [stdout] | ---------^ the trait `From>` is not implemented for `example::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, partial::Error>` [INFO] [stdout] | [INFO] [stdout] note: `example::Error` needs to implement `From>` [INFO] [stdout] --> src/lib.rs:149:1 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: alternatively, `partial::Error` needs to implement `Into` [INFO] [stdout] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] = note: this error originates in the derive macro `partial_enum::Enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 34 | Err(E::Read(_)) => { [INFO] [stdout] | ^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error::Read` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error::Read` [INFO] [stdout] 18 | Read(ReadError), [INFO] [stdout] | ---- required by a bound in this tuple variant [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 38 | Err(E::Decode(err)) => Err(Error::Decode(err)), [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error::Decode` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error::Decode` [INFO] [stdout] 18 | Read(ReadError), [INFO] [stdout] 19 | Decode(DecodeError), [INFO] [stdout] | ------ required by a bound in this tuple variant [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:165:11 [INFO] [stdout] | [INFO] [stdout] 32 | match next_message(&mut socket) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 36 | next_message(&mut socket).map_err(Error::from) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `example::Error: From>` is not satisfied [INFO] [stdout] --> src/lib.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 36 | next_message(&mut socket).map_err(Error::from) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `From>` is not implemented for `example::Error` [INFO] [stdout] --> src/lib.rs:149:1 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 36 | next_message(&mut socket).map_err(Error::from) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `example::Error: From>` is not satisfied [INFO] [stdout] --> src/lib.rs:169:47 [INFO] [stdout] | [INFO] [stdout] 36 | next_message(&mut socket).map_err(Error::from) [INFO] [stdout] | ^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `From>` is not implemented for `example::Error` [INFO] [stdout] --> src/lib.rs:149:1 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] `example::Error` implements `From>` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `!: ConnectBound` is not satisfied [INFO] [stdout] --> src/lib.rs:169:47 [INFO] [stdout] | [INFO] [stdout] 36 | next_message(&mut socket).map_err(Error::from) [INFO] [stdout] | ^^^^^^^^^^^ the trait `ConnectBound` is not implemented for `!` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ConnectBound`: [INFO] [stdout] () [INFO] [stdout] ConnectError [INFO] [stdout] note: required by a bound in `partial::Error` [INFO] [stdout] --> src/lib.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 17 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 50 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 136) [INFO] [stdout] src/lib.rs - (line 91) [INFO] [stdout] src/lib.rs - derive_error (line 220) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.37s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3cd5d922c65d36525aa6dc63b425779659e20248b4ec7864f38018760fef846f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cd5d922c65d36525aa6dc63b425779659e20248b4ec7864f38018760fef846f", kill_on_drop: false }` [INFO] [stdout] 3cd5d922c65d36525aa6dc63b425779659e20248b4ec7864f38018760fef846f