[INFO] fetching crate thisenum-impl 0.2.2... [INFO] testing thisenum-impl-0.2.2 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate thisenum-impl 0.2.2 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate thisenum-impl 0.2.2 [INFO] finished tweaking crates.io crate thisenum-impl 0.2.2 [INFO] tweaked toml for crates.io crate thisenum-impl 0.2.2 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate thisenum-impl 0.2.2 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate thisenum-impl 0.2.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c44836527adb5785d06266fa872076825d714adeb42055651408bab94618d58c [INFO] running `Command { std: "docker" "start" "-a" "c44836527adb5785d06266fa872076825d714adeb42055651408bab94618d58c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c44836527adb5785d06266fa872076825d714adeb42055651408bab94618d58c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c44836527adb5785d06266fa872076825d714adeb42055651408bab94618d58c", kill_on_drop: false }` [INFO] [stdout] c44836527adb5785d06266fa872076825d714adeb42055651408bab94618d58c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e4eb247e3fed3366a9119edcc8ea8ff8d266a3ee7c667989eb224f3685014263 [INFO] running `Command { std: "docker" "start" "-a" "e4eb247e3fed3366a9119edcc8ea8ff8d266a3ee7c667989eb224f3685014263", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.74 [INFO] [stderr] Compiling unzip-n v0.1.2 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling thisenum-impl v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/prelude.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | self.for_each(|item| (*counts.entry(item).or_insert(0_usize) += 1_usize)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - self.for_each(|item| (*counts.entry(item).or_insert(0_usize) += 1_usize)); [INFO] [stdout] 23 + self.for_each(|item| *counts.entry(item).or_insert(0_usize) += 1_usize); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Unique` is never used [INFO] [stdout] --> src/prelude.rs:90:11 [INFO] [stdout] | [INFO] [stdout] 90 | pub trait Unique { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `UniqueIndices` is never used [INFO] [stdout] --> src/prelude.rs:110:11 [INFO] [stdout] | [INFO] [stdout] 110 | pub trait UniqueIndices { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.09s [INFO] running `Command { std: "docker" "inspect" "e4eb247e3fed3366a9119edcc8ea8ff8d266a3ee7c667989eb224f3685014263", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4eb247e3fed3366a9119edcc8ea8ff8d266a3ee7c667989eb224f3685014263", kill_on_drop: false }` [INFO] [stdout] e4eb247e3fed3366a9119edcc8ea8ff8d266a3ee7c667989eb224f3685014263 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 03fff2ce24e193f179b05520a340abab8ed2847350e04554239afa9c57a2011a [INFO] running `Command { std: "docker" "start" "-a" "03fff2ce24e193f179b05520a340abab8ed2847350e04554239afa9c57a2011a", kill_on_drop: false }` [INFO] [stderr] Compiling thisenum-impl v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/prelude.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | self.for_each(|item| (*counts.entry(item).or_insert(0_usize) += 1_usize)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - self.for_each(|item| (*counts.entry(item).or_insert(0_usize) += 1_usize)); [INFO] [stdout] 23 + self.for_each(|item| *counts.entry(item).or_insert(0_usize) += 1_usize); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/prelude.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | self.for_each(|item| (*counts.entry(item).or_insert(0_usize) += 1_usize)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - self.for_each(|item| (*counts.entry(item).or_insert(0_usize) += 1_usize)); [INFO] [stdout] 23 + self.for_each(|item| *counts.entry(item).or_insert(0_usize) += 1_usize); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Unique` is never used [INFO] [stdout] --> src/prelude.rs:90:11 [INFO] [stdout] | [INFO] [stdout] 90 | pub trait Unique { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `UniqueIndices` is never used [INFO] [stdout] --> src/prelude.rs:110:11 [INFO] [stdout] | [INFO] [stdout] 110 | pub trait UniqueIndices { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Unique` is never used [INFO] [stdout] --> src/prelude.rs:90:11 [INFO] [stdout] | [INFO] [stdout] 90 | pub trait Unique { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `UniqueIndices` is never used [INFO] [stdout] --> src/prelude.rs:110:11 [INFO] [stdout] | [INFO] [stdout] 110 | pub trait UniqueIndices { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.06s [INFO] running `Command { std: "docker" "inspect" "03fff2ce24e193f179b05520a340abab8ed2847350e04554239afa9c57a2011a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03fff2ce24e193f179b05520a340abab8ed2847350e04554239afa9c57a2011a", kill_on_drop: false }` [INFO] [stdout] 03fff2ce24e193f179b05520a340abab8ed2847350e04554239afa9c57a2011a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ea7393f579ecd4e0fdb89238ab1f266b8212cd8a19159c888c13858723690989 [INFO] running `Command { std: "docker" "start" "-a" "ea7393f579ecd4e0fdb89238ab1f266b8212cd8a19159c888c13858723690989", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around closure body [INFO] [stderr] --> src/prelude.rs:23:30 [INFO] [stderr] | [INFO] [stderr] 23 | self.for_each(|item| (*counts.entry(item).or_insert(0_usize) += 1_usize)); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 23 - self.for_each(|item| (*counts.entry(item).or_insert(0_usize) += 1_usize)); [INFO] [stderr] 23 + self.for_each(|item| *counts.entry(item).or_insert(0_usize) += 1_usize); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait `Unique` is never used [INFO] [stderr] --> src/prelude.rs:90:11 [INFO] [stderr] | [INFO] [stderr] 90 | pub trait Unique { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: trait `UniqueIndices` is never used [INFO] [stderr] --> src/prelude.rs:110:11 [INFO] [stderr] | [INFO] [stderr] 110 | pub trait UniqueIndices { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `thisenum-impl` (lib) generated 3 warnings (run `cargo fix --lib -p thisenum-impl` to apply 1 suggestion) [INFO] [stderr] warning: `thisenum-impl` (lib test) generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/thisenum_impl-c41fddaeb3fc78eb) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests thisenum_impl [INFO] [stderr] warning: unnecessary parentheses around closure body [INFO] [stderr] --> src/prelude.rs:23:30 [INFO] [stderr] | [INFO] [stderr] 23 | self.for_each(|item| (*counts.entry(item).or_insert(0_usize) += 1_usize)); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 23 - self.for_each(|item| (*counts.entry(item).or_insert(0_usize) += 1_usize)); [INFO] [stderr] 23 + self.for_each(|item| *counts.entry(item).or_insert(0_usize) += 1_usize); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/lib.rs - (line 12) ... FAILED [INFO] [stdout] test src/lib.rs - thisenum_const (line 60) ... FAILED [INFO] [stdout] test src/lib.rs - thisenum_const_each (line 404) ... FAILED [INFO] [stdout] test src/lib.rs - (line 40) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 12) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `thisenum` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 3 | use thisenum::Const; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `thisenum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `thisenum`, use `cargo add thisenum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `armtype` in this scope [INFO] [stdout] --> src/lib.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[armtype(&[u8])] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `armtype` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[value = b"\x01\x00"] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 8 + #[derive(Const, ConstEach)] [INFO] [stdout] 9 | enum ExifTag { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 12 | #[value = b"\x01\x01"] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 8 + #[derive(Const, ConstEach)] [INFO] [stdout] 9 | enum ExifTag { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 14 | #[value = b"\x01\x02"] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 8 + #[derive(Const, ConstEach)] [INFO] [stdout] 9 | enum ExifTag { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 16 | #[value = b"\x01\x03"] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 8 + #[derive(Const, ConstEach)] [INFO] [stdout] 9 | enum ExifTag { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 18 | #[value = b"\x01\x06"] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 8 + #[derive(Const, ConstEach)] [INFO] [stdout] 9 | enum ExifTag { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `ExifTag` in the current scope [INFO] [stdout] --> src/lib.rs:33:32 [INFO] [stdout] | [INFO] [stdout] 8 | enum ExifTag { [INFO] [stdout] | ------------ method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 23 | assert_eq!(ExifTag::ImageWidth.value(), b"\x01\x00"); [INFO] [stdout] | ^^^^^ method not found in `ExifTag` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - thisenum_const (line 60) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `thisenum` [INFO] [stdout] --> src/lib.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 2 | use thisenum::Const; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `thisenum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `thisenum`, use `cargo add thisenum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `armtype` in this scope [INFO] [stdout] --> src/lib.rs:64:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[armtype(i32)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `armtype` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Const, ConstEach)] [INFO] [stdout] 7 | enum MyEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:66:7 [INFO] [stdout] | [INFO] [stdout] 7 | #[value = 0] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Const, ConstEach)] [INFO] [stdout] 7 | enum MyEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:68:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[value = 1] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Const, ConstEach)] [INFO] [stdout] 7 | enum MyEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `armtype` in this scope [INFO] [stdout] --> src/lib.rs:73:3 [INFO] [stdout] | [INFO] [stdout] 14 | #[armtype(&[u8])] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `armtype` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 15 + #[derive(Const, ConstEach)] [INFO] [stdout] 16 | enum Tags { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:75:7 [INFO] [stdout] | [INFO] [stdout] 16 | #[value = b"\x00\x01\x7f"] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 15 + #[derive(Const, ConstEach)] [INFO] [stdout] 16 | enum Tags { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:77:7 [INFO] [stdout] | [INFO] [stdout] 18 | #[value = b"\xba\x5e"] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 15 + #[derive(Const, ConstEach)] [INFO] [stdout] 16 | enum Tags { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 20 | #[value = b"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 15 + #[derive(Const, ConstEach)] [INFO] [stdout] 16 | enum Tags { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `MyEnum` in the current scope [INFO] [stdout] --> src/lib.rs:86:26 [INFO] [stdout] | [INFO] [stdout] 6 | enum MyEnum { [INFO] [stdout] | ----------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 27 | assert_eq!(MyEnum::A.value(), &0); [INFO] [stdout] | ^^^^^ method not found in `MyEnum` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `MyEnum` in the current scope [INFO] [stdout] --> src/lib.rs:87:26 [INFO] [stdout] | [INFO] [stdout] 6 | enum MyEnum { [INFO] [stdout] | ----------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 28 | assert_eq!(MyEnum::B.value(), &1); [INFO] [stdout] | ^^^^^ method not found in `MyEnum` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `Tags` in the current scope [INFO] [stdout] --> src/lib.rs:88:26 [INFO] [stdout] | [INFO] [stdout] 15 | enum Tags { [INFO] [stdout] | --------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 29 | assert_eq!(Tags::Key.value(), b"\x00\x01\x7f"); [INFO] [stdout] | ^^^^^ method not found in `Tags` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `Tags` in the current scope [INFO] [stdout] --> src/lib.rs:89:29 [INFO] [stdout] | [INFO] [stdout] 15 | enum Tags { [INFO] [stdout] | --------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 30 | assert_eq!(Tags::Length.value(), b"\xba\x5e"); [INFO] [stdout] | ^^^^^ method not found in `Tags` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `Tags` in the current scope [INFO] [stdout] --> src/lib.rs:90:27 [INFO] [stdout] | [INFO] [stdout] 15 | enum Tags { [INFO] [stdout] | --------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 31 | assert_eq!(Tags::Data.value(), b"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"); [INFO] [stdout] | ^^^^^ method not found in `Tags` [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - thisenum_const_each (line 404) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `thisenum` [INFO] [stdout] --> src/lib.rs:405:5 [INFO] [stdout] | [INFO] [stdout] 2 | use thisenum::ConstEach; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `thisenum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `thisenum`, use `cargo add thisenum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `armtype` in this scope [INFO] [stdout] --> src/lib.rs:409:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[armtype(u8)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `armtype` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 5 + #[derive(Const, ConstEach)] [INFO] [stdout] 6 | enum MyEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:410:7 [INFO] [stdout] | [INFO] [stdout] 7 | #[value = 0xAA] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 5 + #[derive(Const, ConstEach)] [INFO] [stdout] 6 | enum MyEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:412:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[value = "test3"] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 5 + #[derive(Const, ConstEach)] [INFO] [stdout] 6 | enum MyEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:418:7 [INFO] [stdout] | [INFO] [stdout] 15 | #[value = b"\x00\x01"] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 14 + #[derive(Const, ConstEach)] [INFO] [stdout] 15 | enum Tags { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `armtype` in this scope [INFO] [stdout] --> src/lib.rs:420:7 [INFO] [stdout] | [INFO] [stdout] 17 | #[armtype(u16)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `armtype` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 14 + #[derive(Const, ConstEach)] [INFO] [stdout] 15 | enum Tags { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:421:7 [INFO] [stdout] | [INFO] [stdout] 18 | #[value = 24250] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 14 + #[derive(Const, ConstEach)] [INFO] [stdout] 15 | enum Tags { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `armtype` in this scope [INFO] [stdout] --> src/lib.rs:423:7 [INFO] [stdout] | [INFO] [stdout] 20 | #[armtype(&[u8])] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `armtype` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 14 + #[derive(Const, ConstEach)] [INFO] [stdout] 15 | enum Tags { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:424:7 [INFO] [stdout] | [INFO] [stdout] 21 | #[value = b"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 14 + #[derive(Const, ConstEach)] [INFO] [stdout] 15 | enum Tags { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `MyEnum` in the current scope [INFO] [stdout] --> src/lib.rs:430:23 [INFO] [stdout] | [INFO] [stdout] 5 | enum MyEnum { [INFO] [stdout] | ----------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 27 | assert!(MyEnum::A.value::().is_some()); [INFO] [stdout] | ^^^^^ method not found in `MyEnum` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `MyEnum` in the current scope [INFO] [stdout] --> src/lib.rs:431:23 [INFO] [stdout] | [INFO] [stdout] 5 | enum MyEnum { [INFO] [stdout] | ----------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 28 | assert!(MyEnum::A.value::>().is_none()); [INFO] [stdout] | ^^^^^ method not found in `MyEnum` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `MyEnum` in the current scope [INFO] [stdout] --> src/lib.rs:432:23 [INFO] [stdout] | [INFO] [stdout] 5 | enum MyEnum { [INFO] [stdout] | ----------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 29 | assert!(MyEnum::B.value::().is_none()); [INFO] [stdout] | ^^^^^ method not found in `MyEnum` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `MyEnum` in the current scope [INFO] [stdout] --> src/lib.rs:433:23 [INFO] [stdout] | [INFO] [stdout] 5 | enum MyEnum { [INFO] [stdout] | ----------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 30 | assert!(MyEnum::B.value::<&str>().is_some()); [INFO] [stdout] | ^^^^^ method not found in `MyEnum` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `Tags` in the current scope [INFO] [stdout] --> src/lib.rs:434:24 [INFO] [stdout] | [INFO] [stdout] 14 | enum Tags { [INFO] [stdout] | --------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 31 | assert!(Tags::Data.value::<&[u8]>().is_some()); [INFO] [stdout] | ^^^^^ method not found in `Tags` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `Tags` in the current scope [INFO] [stdout] --> src/lib.rs:438:23 [INFO] [stdout] | [INFO] [stdout] 14 | enum Tags { [INFO] [stdout] | --------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 35 | assert!(Tags::Key.value::<&[u8; 2]>().is_some()); [INFO] [stdout] | ^^^^^ method not found in `Tags` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `Tags` in the current scope [INFO] [stdout] --> src/lib.rs:439:23 [INFO] [stdout] | [INFO] [stdout] 14 | enum Tags { [INFO] [stdout] | --------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 36 | assert!(Tags::Key.value::<&[u8; 5]>().is_none()); [INFO] [stdout] | ^^^^^ method not found in `Tags` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `Tags` in the current scope [INFO] [stdout] --> src/lib.rs:440:23 [INFO] [stdout] | [INFO] [stdout] 14 | enum Tags { [INFO] [stdout] | --------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 37 | assert!(Tags::Key.value::<&[u8]>().is_none()); [INFO] [stdout] | ^^^^^ method not found in `Tags` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `Tags` in the current scope [INFO] [stdout] --> src/lib.rs:441:44 [INFO] [stdout] | [INFO] [stdout] 14 | enum Tags { [INFO] [stdout] | --------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 38 | assert!(u16::from_le_bytes(**Tags::Key.value::<&[u8; 2]>().unwrap()) == 0x0100); [INFO] [stdout] | ^^^^^ method not found in `Tags` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `Tags` in the current scope [INFO] [stdout] --> src/lib.rs:445:26 [INFO] [stdout] | [INFO] [stdout] 14 | enum Tags { [INFO] [stdout] | --------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 42 | assert!(Tags::Length.value::().is_some()); [INFO] [stdout] | ^^^^^ method not found in `Tags` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `Tags` in the current scope [INFO] [stdout] --> src/lib.rs:446:26 [INFO] [stdout] | [INFO] [stdout] 14 | enum Tags { [INFO] [stdout] | --------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 43 | assert!(Tags::Length.value::().is_none()); [INFO] [stdout] | ^^^^^ method not found in `Tags` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `Tags` in the current scope [INFO] [stdout] --> src/lib.rs:447:26 [INFO] [stdout] | [INFO] [stdout] 14 | enum Tags { [INFO] [stdout] | --------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 44 | assert!(Tags::Length.value::().is_none()); [INFO] [stdout] | ^^^^^ method not found in `Tags` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `Tags` in the current scope [INFO] [stdout] --> src/lib.rs:451:27 [INFO] [stdout] | [INFO] [stdout] 14 | enum Tags { [INFO] [stdout] | --------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 48 | assert!(*Tags::Length.value::().unwrap() as u32 == 24250); [INFO] [stdout] | ^^^^^ method not found in `Tags` [INFO] [stdout] [INFO] [stdout] error: aborting due to 22 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 40) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `thisenum` [INFO] [stdout] --> src/lib.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 3 | use thisenum::ConstEach; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `thisenum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `thisenum`, use `cargo add thisenum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `armtype` in this scope [INFO] [stdout] --> src/lib.rs:45:7 [INFO] [stdout] | [INFO] [stdout] 7 | #[armtype(&[u8])] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `armtype` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Const, ConstEach)] [INFO] [stdout] 7 | enum CustomEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[value = b"\x01\x00"] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Const, ConstEach)] [INFO] [stdout] 7 | enum CustomEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[value = "foo"] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Const, ConstEach)] [INFO] [stdout] 7 | enum CustomEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `armtype` in this scope [INFO] [stdout] --> src/lib.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[armtype(f32)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `armtype` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Const, ConstEach)] [INFO] [stdout] 7 | enum CustomEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `value` in this scope [INFO] [stdout] --> src/lib.rs:52:7 [INFO] [stdout] | [INFO] [stdout] 14 | #[value = 3.14] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `value` is an attribute that can be used by the derive macros `Const` and `ConstEach`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(Const, ConstEach)] [INFO] [stdout] 7 | enum CustomEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `CustomEnum` in the current scope [INFO] [stdout] --> src/lib.rs:56:26 [INFO] [stdout] | [INFO] [stdout] 6 | enum CustomEnum { [INFO] [stdout] | --------------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 18 | assert_eq!(CustomEnum::A.value::<&[u8]>().unwrap(), b"\x01\x00"); [INFO] [stdout] | ^^^^^ method not found in `CustomEnum` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `CustomEnum` in the current scope [INFO] [stdout] --> src/lib.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 6 | enum CustomEnum { [INFO] [stdout] | --------------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 19 | assert!(CustomEnum::B.value::<&str>().is_some()); [INFO] [stdout] | ^^^^^ method not found in `CustomEnum` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `CustomEnum` in the current scope [INFO] [stdout] --> src/lib.rs:58:26 [INFO] [stdout] | [INFO] [stdout] 6 | enum CustomEnum { [INFO] [stdout] | --------------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 20 | assert_eq!(CustomEnum::B.value::<&str>().unwrap(), &"foo"); [INFO] [stdout] | ^^^^^ method not found in `CustomEnum` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `CustomEnum` in the current scope [INFO] [stdout] --> src/lib.rs:59:26 [INFO] [stdout] | [INFO] [stdout] 6 | enum CustomEnum { [INFO] [stdout] | --------------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 21 | assert_eq!(CustomEnum::B.value::<&str>(), Some("foo").as_ref()); [INFO] [stdout] | ^^^^^ method not found in `CustomEnum` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `CustomEnum` in the current scope [INFO] [stdout] --> src/lib.rs:60:26 [INFO] [stdout] | [INFO] [stdout] 6 | enum CustomEnum { [INFO] [stdout] | --------------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 22 | assert_eq!(CustomEnum::C.value::().unwrap(), &3.14); [INFO] [stdout] | ^^^^^ method not found in `CustomEnum` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `value` found for enum `CustomEnum` in the current scope [INFO] [stdout] --> src/lib.rs:62:23 [INFO] [stdout] | [INFO] [stdout] 6 | enum CustomEnum { [INFO] [stdout] | --------------- method `value` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 24 | assert!(CustomEnum::C.value::().is_none()); [INFO] [stdout] | ^^^^^ method not found in `CustomEnum` [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 12) [INFO] [stdout] src/lib.rs - (line 40) [INFO] [stdout] src/lib.rs - thisenum_const (line 60) [INFO] [stdout] src/lib.rs - thisenum_const_each (line 404) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.30s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "ea7393f579ecd4e0fdb89238ab1f266b8212cd8a19159c888c13858723690989", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea7393f579ecd4e0fdb89238ab1f266b8212cd8a19159c888c13858723690989", kill_on_drop: false }` [INFO] [stdout] ea7393f579ecd4e0fdb89238ab1f266b8212cd8a19159c888c13858723690989