[INFO] fetching crate partial-enum 0.0.4... [INFO] testing partial-enum-0.0.4 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [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 c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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 syn v1.0.109 (available: v2.0.110) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 152c7eaf05b38cbf7e341f07179cc16ff7be7b8943dfdee601ddaeff7414366f [INFO] running `Command { std: "docker" "start" "-a" "152c7eaf05b38cbf7e341f07179cc16ff7be7b8943dfdee601ddaeff7414366f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "152c7eaf05b38cbf7e341f07179cc16ff7be7b8943dfdee601ddaeff7414366f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "152c7eaf05b38cbf7e341f07179cc16ff7be7b8943dfdee601ddaeff7414366f", kill_on_drop: false }` [INFO] [stdout] 152c7eaf05b38cbf7e341f07179cc16ff7be7b8943dfdee601ddaeff7414366f [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cb7e32022b3de40cab458966b07c2f6a4749c6cea215c9a9f19f311dcfb550b0 [INFO] running `Command { std: "docker" "start" "-a" "cb7e32022b3de40cab458966b07c2f6a4749c6cea215c9a9f19f311dcfb550b0", 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.44s [INFO] running `Command { std: "docker" "inspect" "cb7e32022b3de40cab458966b07c2f6a4749c6cea215c9a9f19f311dcfb550b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb7e32022b3de40cab458966b07c2f6a4749c6cea215c9a9f19f311dcfb550b0", kill_on_drop: false }` [INFO] [stdout] cb7e32022b3de40cab458966b07c2f6a4749c6cea215c9a9f19f311dcfb550b0 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c021ff098a61b6af7498538f8d9ed86a8330f6ae00d5a3054f584407fb6888b5 [INFO] running `Command { std: "docker" "start" "-a" "c021ff098a61b6af7498538f8d9ed86a8330f6ae00d5a3054f584407fb6888b5", 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.48s [INFO] running `Command { std: "docker" "inspect" "c021ff098a61b6af7498538f8d9ed86a8330f6ae00d5a3054f584407fb6888b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c021ff098a61b6af7498538f8d9ed86a8330f6ae00d5a3054f584407fb6888b5", kill_on_drop: false }` [INFO] [stdout] c021ff098a61b6af7498538f8d9ed86a8330f6ae00d5a3054f584407fb6888b5 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4c56c6c8e8d7343201472705908ed18e226f17f533f9b06ddcbc6cf939c46579 [INFO] running `Command { std: "docker" "start" "-a" "4c56c6c8e8d7343201472705908ed18e226f17f533f9b06ddcbc6cf939c46579", 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-42b204affcbd92cc) [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 - (line 16) ... ok [INFO] [stdout] test src/lib.rs - (line 49) ... ok [INFO] [stdout] test src/lib.rs - (line 91) ... FAILED [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 136) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] 111 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] 105 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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 `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:111:32 [INFO] [stdout] | [INFO] [stdout] 111 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 106 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [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:115:45 [INFO] [stdout] | [INFO] [stdout] 115 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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 `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:115:45 [INFO] [stdout] | [INFO] [stdout] 115 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 106 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [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:119:44 [INFO] [stdout] | [INFO] [stdout] 119 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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:119:44 [INFO] [stdout] | [INFO] [stdout] 119 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] 105 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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:123:55 [INFO] [stdout] | [INFO] [stdout] 123 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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] 102 | #[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] 104 | 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] 102 | #[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] 105 | 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] 102 | #[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] 106 | 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] 112 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] 105 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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 `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 106 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [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:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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 `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 106 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [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:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] 105 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] 105 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] 105 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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:124:19 [INFO] [stdout] | [INFO] [stdout] 124 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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 `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:124:19 [INFO] [stdout] | [INFO] [stdout] 124 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 106 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [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:124:19 [INFO] [stdout] | [INFO] [stdout] 124 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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 `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:124:19 [INFO] [stdout] | [INFO] [stdout] 124 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 106 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [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:124:29 [INFO] [stdout] | [INFO] [stdout] 124 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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 `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:124:29 [INFO] [stdout] | [INFO] [stdout] 124 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 106 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [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]: `?` couldn't convert the error to `partial::Error` [INFO] [stdout] --> src/lib.rs:124:29 [INFO] [stdout] | [INFO] [stdout] 123 | fn next_message(sock: &mut Socket) -> Result> { [INFO] [stdout] | --------------------------------------------- expected `partial::Error` because of this [INFO] [stdout] 124 | 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] 102 | #[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] 102 | #[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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 125 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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:125:19 [INFO] [stdout] | [INFO] [stdout] 125 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] 105 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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] 125 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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:125:19 [INFO] [stdout] | [INFO] [stdout] 125 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] 105 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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:34 [INFO] [stdout] | [INFO] [stdout] 125 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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:125:34 [INFO] [stdout] | [INFO] [stdout] 125 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] 105 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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]: `?` couldn't convert the error to `partial::Error` [INFO] [stdout] --> src/lib.rs:125:34 [INFO] [stdout] | [INFO] [stdout] 123 | fn next_message(sock: &mut Socket) -> Result> { [INFO] [stdout] | --------------------------------------------- expected `partial::Error` because of this [INFO] [stdout] 124 | let payload = read(sock)?; [INFO] [stdout] 125 | 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] 102 | #[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] 102 | #[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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 126 | 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] --> src/lib.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 103 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 104 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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 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 - derive_error (line 220) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:227:10 [INFO] [stdout] | [INFO] [stdout] 227 | #[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] 229 | 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] 227 | #[derive(partial_enum::Enum)] [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] 230 | 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 136) stdout ---- [INFO] [stdout] error[E0277]: the trait bound `!: ReadBound` is not satisfied [INFO] [stdout] --> src/lib.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] 151 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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 `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:155:32 [INFO] [stdout] | [INFO] [stdout] 155 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 152 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [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:156:45 [INFO] [stdout] | [INFO] [stdout] 156 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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 `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:156:45 [INFO] [stdout] | [INFO] [stdout] 156 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 152 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [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:157:44 [INFO] [stdout] | [INFO] [stdout] 157 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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:157:44 [INFO] [stdout] | [INFO] [stdout] 157 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] 151 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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:158:55 [INFO] [stdout] | [INFO] [stdout] 158 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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] 148 | #[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] 150 | 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] 148 | #[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] 151 | 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] 148 | #[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] 152 | 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] 155 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] 151 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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 `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:155:57 [INFO] [stdout] | [INFO] [stdout] 155 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 152 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [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:156:67 [INFO] [stdout] | [INFO] [stdout] 156 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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 `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:156:67 [INFO] [stdout] | [INFO] [stdout] 156 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 152 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [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:157:68 [INFO] [stdout] | [INFO] [stdout] 157 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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:157:68 [INFO] [stdout] | [INFO] [stdout] 157 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] 151 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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:157:68 [INFO] [stdout] | [INFO] [stdout] 157 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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:157:68 [INFO] [stdout] | [INFO] [stdout] 157 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] 151 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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:157:68 [INFO] [stdout] | [INFO] [stdout] 157 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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:157:68 [INFO] [stdout] | [INFO] [stdout] 157 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] 151 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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:159:19 [INFO] [stdout] | [INFO] [stdout] 159 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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 `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:159:19 [INFO] [stdout] | [INFO] [stdout] 159 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 152 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [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:159:19 [INFO] [stdout] | [INFO] [stdout] 159 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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 `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:159:19 [INFO] [stdout] | [INFO] [stdout] 159 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 152 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [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:159:29 [INFO] [stdout] | [INFO] [stdout] 159 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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 `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 159 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 152 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [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]: `?` couldn't convert the error to `partial::Error` [INFO] [stdout] --> src/lib.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 158 | fn next_message(sock: &mut Socket) -> Result> { [INFO] [stdout] | --------------------------------------------- expected `partial::Error` because of this [INFO] [stdout] 159 | 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] 148 | #[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] 148 | #[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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 160 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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:160:19 [INFO] [stdout] | [INFO] [stdout] 160 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] 151 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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] 160 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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:160:19 [INFO] [stdout] | [INFO] [stdout] 160 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] 151 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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:34 [INFO] [stdout] | [INFO] [stdout] 160 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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:160:34 [INFO] [stdout] | [INFO] [stdout] 160 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] 151 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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]: `?` couldn't convert the error to `partial::Error` [INFO] [stdout] --> src/lib.rs:160:34 [INFO] [stdout] | [INFO] [stdout] 158 | fn next_message(sock: &mut Socket) -> Result> { [INFO] [stdout] | --------------------------------------------- expected `partial::Error` because of this [INFO] [stdout] 159 | let payload = read(sock)?; [INFO] [stdout] 160 | 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] 148 | #[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] 148 | #[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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 161 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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:164:22 [INFO] [stdout] | [INFO] [stdout] 164 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] 151 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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 `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:164:22 [INFO] [stdout] | [INFO] [stdout] 164 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 152 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [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:164:22 [INFO] [stdout] | [INFO] [stdout] 164 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] 151 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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 `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:164:22 [INFO] [stdout] | [INFO] [stdout] 164 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 152 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [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:164:31 [INFO] [stdout] | [INFO] [stdout] 164 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] 151 | Read(ReadError), [INFO] [stdout] | ^^^^ required by this bound in `Error` [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 `!: DecodeBound` is not satisfied [INFO] [stdout] --> src/lib.rs:164:31 [INFO] [stdout] | [INFO] [stdout] 164 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] ... [INFO] [stdout] 152 | Decode(DecodeError), [INFO] [stdout] | ^^^^^^ required by this bound in `Error` [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]: `?` couldn't convert the error to `example::Error` [INFO] [stdout] --> src/lib.rs:164:31 [INFO] [stdout] | [INFO] [stdout] 163 | fn read_one_message() -> Result { [INFO] [stdout] | ---------------------- expected `example::Error` because of this [INFO] [stdout] 164 | 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] 149 | 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] 148 | #[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] 167 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error::Read` [INFO] [stdout] 151 | Read(ReadError), [INFO] [stdout] | ---- required by a bound in this tuple variant [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:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error::Decode` [INFO] [stdout] 151 | Read(ReadError), [INFO] [stdout] 152 | Decode(DecodeError), [INFO] [stdout] | ------ required by a bound in this tuple variant [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:165:11 [INFO] [stdout] | [INFO] [stdout] 165 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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 `example::Error: From>` is not satisfied [INFO] [stdout] --> src/lib.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | 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] 149 | 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] 169 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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 `example::Error: From>` is not satisfied [INFO] [stdout] --> src/lib.rs:169:47 [INFO] [stdout] | [INFO] [stdout] 169 | 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] 149 | 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] 169 | 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] --> src/lib.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | #[derive(partial_enum::Enum)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] 149 | enum Error { [INFO] [stdout] | ----- required by a bound in this enum [INFO] [stdout] 150 | Connect(ConnectError), [INFO] [stdout] | ^^^^^^^ required by this bound in `Error` [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 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.21s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4c56c6c8e8d7343201472705908ed18e226f17f533f9b06ddcbc6cf939c46579", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c56c6c8e8d7343201472705908ed18e226f17f533f9b06ddcbc6cf939c46579", kill_on_drop: false }` [INFO] [stdout] 4c56c6c8e8d7343201472705908ed18e226f17f533f9b06ddcbc6cf939c46579