[INFO] fetching crate one-of 0.2.3... [INFO] checking one-of-0.2.3 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate one-of 0.2.3 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate one-of 0.2.3 [INFO] finished tweaking crates.io crate one-of 0.2.3 [INFO] tweaked toml for crates.io crate one-of 0.2.3 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate one-of 0.2.3 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9147285d554823a5d2262ee31bc95c8af022561c5ae21b8ea9f74043a00067cb [INFO] running `Command { std: "docker" "start" "-a" "9147285d554823a5d2262ee31bc95c8af022561c5ae21b8ea9f74043a00067cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9147285d554823a5d2262ee31bc95c8af022561c5ae21b8ea9f74043a00067cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9147285d554823a5d2262ee31bc95c8af022561c5ae21b8ea9f74043a00067cb", kill_on_drop: false }` [INFO] [stdout] 9147285d554823a5d2262ee31bc95c8af022561c5ae21b8ea9f74043a00067cb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2322142d26729558fabd7ea97d82ec27f9522742ecfcbd0a13198b3a6f25368c [INFO] running `Command { std: "docker" "start" "-a" "2322142d26729558fabd7ea97d82ec27f9522742ecfcbd0a13198b3a6f25368c", kill_on_drop: false }` [INFO] [stderr] Checking one-of v0.2.3 (/opt/rustwide/workdir) [INFO] [stdout] error: expected identifier, found metavariable [INFO] [stdout] --> tests/tests.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | / case!(::from(42u64), [INFO] [stdout] 42 | | // i8 [INFO] [stdout] 43 | | _ => { [INFO] [stdout] 44 | | panic!("not i8"); [INFO] [stdout] ... | [INFO] [stdout] 63 | | }; [INFO] [stdout] 64 | | ); [INFO] [stdout] | |_____^ expected identifier, found metavariable [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `case` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found metavariable [INFO] [stdout] --> tests/tests.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | / case!(::from("Hello, world!"), [INFO] [stdout] 70 | | // bool [INFO] [stdout] 71 | | _ => { [INFO] [stdout] 72 | | panic!("not bool"); [INFO] [stdout] ... | [INFO] [stdout] 86 | | }; [INFO] [stdout] 87 | | ); [INFO] [stdout] | |_____^ expected identifier, found metavariable [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `case` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u32, char): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:13:36 [INFO] [stdout] | [INFO] [stdout] 13 | let x: one_of!(u32, char) = 42.into(); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u32, char)` [INFO] [stdout] | [INFO] [stdout] = note: required for `OneOf2` to implement `From` [INFO] [stdout] = note: required for `u32` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u32, char): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:14:31 [INFO] [stdout] | [INFO] [stdout] 14 | assert_eq!(Some(42u32), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u32, char)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf2` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(char, u32): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | assert_eq!(not!(char), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(char, u32)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf2` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `OneOf8: From<{integer}>` is not satisfied [INFO] [stdout] --> tests/tests.rs:20:63 [INFO] [stdout] | [INFO] [stdout] 20 | let x: one_of!(i8, i16, i32, i64, u8, u16, u32, u64) = 42.into(); [INFO] [stdout] | ^^^^ the trait `From<{integer}>` is not implemented for `OneOf8` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `OneOf8` implements `From` [INFO] [stdout] `OneOf8` implements `From` [INFO] [stdout] `OneOf8` implements `From` [INFO] [stdout] `OneOf8` implements `From` [INFO] [stdout] `OneOf8` implements `From` [INFO] [stdout] `OneOf8` implements `From` [INFO] [stdout] `OneOf8` implements `From` [INFO] [stdout] `OneOf8` implements `From` [INFO] [stdout] = note: required for `{integer}` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i8, i16): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(not!(i8), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i8, i16)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i8, i32): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(not!(i8), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i8, i32)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i8, i64): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(not!(i8), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i8, i64)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i8, u8): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(not!(i8), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i8, u8)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i8, u16): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(not!(i8), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i8, u16)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i8, u32): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(not!(i8), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i8, u32)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i8, u64): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(not!(i8), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i8, u64)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i16, i8): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | assert_eq!(not!(i16), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i16, i8)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i16, i32): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | assert_eq!(not!(i16), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i16, i32)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i16, i64): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | assert_eq!(not!(i16), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i16, i64)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i16, u8): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | assert_eq!(not!(i16), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i16, u8)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i16, u16): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | assert_eq!(not!(i16), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i16, u16)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i16, u32): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | assert_eq!(not!(i16), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i16, u32)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i16, u64): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | assert_eq!(not!(i16), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i16, u64)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i32, i8): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:23:31 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(Some(42i32), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i32, i8)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i32, i16): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:23:31 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(Some(42i32), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i32, i16)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i32, i64): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:23:31 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(Some(42i32), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i32, i64)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i32, u8): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:23:31 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(Some(42i32), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i32, u8)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i32, u16): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:23:31 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(Some(42i32), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i32, u16)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i32, u32): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:23:31 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(Some(42i32), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i32, u32)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i32, u64): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:23:31 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(Some(42i32), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i32, u64)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i64, i8): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(not!(i64), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i64, i8)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i64, i16): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(not!(i64), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i64, i16)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i64, i32): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(not!(i64), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i64, i32)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i64, u8): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(not!(i64), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i64, u8)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i64, u16): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(not!(i64), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i64, u16)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i64, u32): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(not!(i64), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i64, u32)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(i64, u64): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(not!(i64), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(i64, u64)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u8, i8): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | assert_eq!(not!(u8), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u8, i8)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u8, i16): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | assert_eq!(not!(u8), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u8, i16)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u8, i32): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | assert_eq!(not!(u8), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u8, i32)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u8, i64): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | assert_eq!(not!(u8), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u8, i64)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u8, u16): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | assert_eq!(not!(u8), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u8, u16)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u8, u32): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | assert_eq!(not!(u8), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u8, u32)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u8, u64): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | assert_eq!(not!(u8), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u8, u64)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u16, i8): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 26 | assert_eq!(not!(u16), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u16, i8)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u16, i16): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 26 | assert_eq!(not!(u16), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u16, i16)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u16, i32): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 26 | assert_eq!(not!(u16), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u16, i32)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u16, i64): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 26 | assert_eq!(not!(u16), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u16, i64)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u16, u8): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 26 | assert_eq!(not!(u16), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u16, u8)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u16, u32): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 26 | assert_eq!(not!(u16), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u16, u32)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u16, u64): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 26 | assert_eq!(not!(u16), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u16, u64)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u32, i8): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(not!(u32), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u32, i8)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u32, i16): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(not!(u32), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u32, i16)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u32, i32): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(not!(u32), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u32, i32)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u32, i64): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(not!(u32), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u32, i64)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u32, u8): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(not!(u32), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u32, u8)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u32, u16): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(not!(u32), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u32, u16)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u32, u64): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(not!(u32), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u32, u64)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u64, i8): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | assert_eq!(not!(u64), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u64, i8)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u64, i16): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | assert_eq!(not!(u64), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u64, i16)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u64, i32): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | assert_eq!(not!(u64), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u64, i32)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u64, i64): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | assert_eq!(not!(u64), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u64, i64)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u64, u8): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | assert_eq!(not!(u64), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u64, u8)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u64, u16): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | assert_eq!(not!(u64), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u64, u16)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(u64, u32): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | assert_eq!(not!(u64), x.into()); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(u64, u32)` [INFO] [stdout] | [INFO] [stdout] = note: required for `Option` to implement `From>` [INFO] [stdout] = note: required for `OneOf8` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(bool, &str): one_of::internal::Different` is not satisfied [INFO] [stdout] --> tests/tests.rs:34:39 [INFO] [stdout] | [INFO] [stdout] 34 | let x: one_of!(bool, &str) = true.into(); [INFO] [stdout] | ^^^^ the trait `one_of::internal::Different` is not implemented for `(bool, &str)` [INFO] [stdout] | [INFO] [stdout] = note: required for `OneOf2` to implement `From` [INFO] [stdout] = note: required for `bool` to implement `Into>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `bool: TryFrom>` is not satisfied [INFO] [stdout] --> tests/tests.rs:35:28 [INFO] [stdout] | [INFO] [stdout] 35 | assert_eq!(Ok(true), x.try_into()); [INFO] [stdout] | ^^^^^^^^ the trait `From>` is not implemented for `bool` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `TryInto`: [INFO] [stdout] `OneOf2` implements `TryInto` [INFO] [stdout] `OneOf2` implements `TryInto` [INFO] [stdout] = note: required for `OneOf2` to implement `Into` [INFO] [stdout] = note: required for `bool` to implement `TryFrom>` [INFO] [stdout] = note: required for `OneOf2` to implement `TryInto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `<&str as TryFrom>>::Error == ()` [INFO] [stdout] --> tests/tests.rs:36:46 [INFO] [stdout] | [INFO] [stdout] 36 | assert_eq!(Result::<&str, _>::Err(()), x.try_into()); [INFO] [stdout] | ^^^^^^^^ expected `()`, found `Infallible` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&str: TryFrom>` is not satisfied [INFO] [stdout] --> tests/tests.rs:36:46 [INFO] [stdout] | [INFO] [stdout] 36 | assert_eq!(Result::<&str, _>::Err(()), x.try_into()); [INFO] [stdout] | ^^^^^^^^ the trait `From>` is not implemented for `&str` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `alloc::string::String` implements `From<&alloc::string::String>` [INFO] [stdout] `alloc::string::String` implements `From<&mut str>` [INFO] [stdout] `alloc::string::String` implements `From<&str>` [INFO] [stdout] `alloc::string::String` implements `From>` [INFO] [stdout] `alloc::string::String` implements `From>` [INFO] [stdout] `alloc::string::String` implements `From` [INFO] [stdout] = note: required for `OneOf2` to implement `Into<&str>` [INFO] [stdout] = note: required for `&str` to implement `TryFrom>` [INFO] [stdout] = note: required for `OneOf2` to implement `TryInto<&str>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/tests.rs:41:45 [INFO] [stdout] | [INFO] [stdout] 41 | case!(::from(42u64), [INFO] [stdout] | --------------------------------- ^^^^^ expected `OneOf4`, found `u64` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `OneOf4` [INFO] [stdout] found type `u64` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/convert/mod.rs:596:8 [INFO] [stdout] help: try wrapping the expression in `one_of::OneOf4::D` [INFO] [stdout] | [INFO] [stdout] 41 | case!(::from(one_of::OneOf4::D(42u64)), [INFO] [stdout] | ++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/tests.rs:69:44 [INFO] [stdout] | [INFO] [stdout] 69 | case!(::from("Hello, world!"), [INFO] [stdout] | -------------------------------- ^^^^^^^^^^^^^^^ expected `OneOf3`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `OneOf3` [INFO] [stdout] found reference `&'static str` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/convert/mod.rs:596:8 [INFO] [stdout] help: try wrapping the expression in `one_of::OneOf3::B` [INFO] [stdout] | [INFO] [stdout] 69 | case!(::from(one_of::OneOf3::B("Hello, world!")), [INFO] [stdout] | ++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `one-of` (test "tests") due to 68 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "2322142d26729558fabd7ea97d82ec27f9522742ecfcbd0a13198b3a6f25368c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2322142d26729558fabd7ea97d82ec27f9522742ecfcbd0a13198b3a6f25368c", kill_on_drop: false }` [INFO] [stdout] 2322142d26729558fabd7ea97d82ec27f9522742ecfcbd0a13198b3a6f25368c