[INFO] fetching crate gratte_macros 1.2.0... [INFO] testing gratte_macros-1.2.0 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate gratte_macros 1.2.0 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate gratte_macros 1.2.0 [INFO] finished tweaking crates.io crate gratte_macros 1.2.0 [INFO] tweaked toml for crates.io crate gratte_macros 1.2.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate gratte_macros 1.2.0 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate gratte_macros 1.2.0 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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 412cf81959a26cf69eeae4f611ce731515740aff707265e5b89e980d241094b5 [INFO] running `Command { std: "docker" "start" "-a" "412cf81959a26cf69eeae4f611ce731515740aff707265e5b89e980d241094b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "412cf81959a26cf69eeae4f611ce731515740aff707265e5b89e980d241094b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "412cf81959a26cf69eeae4f611ce731515740aff707265e5b89e980d241094b5", kill_on_drop: false }` [INFO] [stdout] 412cf81959a26cf69eeae4f611ce731515740aff707265e5b89e980d241094b5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b248827d5e410f0e9b2fcac8a2060adcb40a39b83dec33f3319c48ce56fec545 [INFO] running `Command { std: "docker" "start" "-a" "b248827d5e410f0e9b2fcac8a2060adcb40a39b83dec33f3319c48ce56fec545", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling gratte_macros v1.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.85s [INFO] running `Command { std: "docker" "inspect" "b248827d5e410f0e9b2fcac8a2060adcb40a39b83dec33f3319c48ce56fec545", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b248827d5e410f0e9b2fcac8a2060adcb40a39b83dec33f3319c48ce56fec545", kill_on_drop: false }` [INFO] [stdout] b248827d5e410f0e9b2fcac8a2060adcb40a39b83dec33f3319c48ce56fec545 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] da1499a001a4a643a69922e2e9e8fc5187ef14a0b886c9f10491322e6efb9400 [INFO] running `Command { std: "docker" "start" "-a" "da1499a001a4a643a69922e2e9e8fc5187ef14a0b886c9f10491322e6efb9400", kill_on_drop: false }` [INFO] [stderr] Compiling gratte_macros v1.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.17s [INFO] running `Command { std: "docker" "inspect" "da1499a001a4a643a69922e2e9e8fc5187ef14a0b886c9f10491322e6efb9400", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da1499a001a4a643a69922e2e9e8fc5187ef14a0b886c9f10491322e6efb9400", kill_on_drop: false }` [INFO] [stdout] da1499a001a4a643a69922e2e9e8fc5187ef14a0b886c9f10491322e6efb9400 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 11ead1b64b50b33c4208a3294e2227cf43873dff77d67bd00483d42ccef7d2a7 [INFO] running `Command { std: "docker" "start" "-a" "11ead1b64b50b33c4208a3294e2227cf43873dff77d67bd00483d42ccef7d2a7", 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/gratte_macros-bb9466204598f06c) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test helpers::case_style::tests::test_impl_from_str_for_case_style_pascal_case ... ok [INFO] [stdout] test helpers::case_style::tests::test_convert_case ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests gratte_macros [INFO] [stdout] [INFO] [stdout] running 19 tests [INFO] [stdout] test src/lib.rs - enum_iter (line 470) ... FAILED [INFO] [stdout] test src/lib.rs - enum_messages (line 707) ... FAILED [INFO] [stdout] test src/lib.rs - enum_count (line 953) ... FAILED [INFO] [stdout] test src/lib.rs - enum_table (line 584) ... FAILED [INFO] [stdout] test src/lib.rs - from_repr (line 667) ... FAILED [INFO] [stdout] test src/lib.rs - display (line 405) ... FAILED [INFO] [stdout] test src/lib.rs - from_string (line 68) ... FAILED [INFO] [stdout] test src/lib.rs - into_static_str (line 312) ... FAILED [INFO] [stdout] test src/lib.rs - to_string (line 350) ... FAILED [INFO] [stdout] test src/lib.rs - enum_try_as (line 534) ... FAILED [INFO] [stdout] test src/lib.rs - enum_is (line 508) ... FAILED [INFO] [stdout] test src/lib.rs - enum_discriminants (line 852) ... FAILED [INFO] [stdout] test src/lib.rs - enum_properties (line 795) ... FAILED [INFO] [stdout] test src/lib.rs - display (line 415) ... FAILED [INFO] [stdout] test src/lib.rs - static_variants_array (line 264) ... FAILED [INFO] [stdout] test src/lib.rs - enum_discriminants (line 915) ... FAILED [INFO] [stdout] test src/lib.rs - from_repr (line 637) ... FAILED [INFO] [stdout] test src/lib.rs - as_ref_str (line 144) ... FAILED [INFO] [stdout] test src/lib.rs - variant_names (line 215) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - enum_iter (line 470) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:472:5 [INFO] [stdout] | [INFO] [stdout] 4 | use gratte::IntoEnumIterator; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:473:5 [INFO] [stdout] | [INFO] [stdout] 5 | use gratte::EnumIter; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `iter` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:484:21 [INFO] [stdout] | [INFO] [stdout] 8 | enum Color { [INFO] [stdout] | ---------- variant or associated item `iter` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 16 | for color in Color::iter() { [INFO] [stdout] | ^^^^ variant or associated item not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `iter` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:488:21 [INFO] [stdout] | [INFO] [stdout] 8 | enum Color { [INFO] [stdout] | ---------- variant or associated item `iter` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 20 | let mut ci = Color::iter(); [INFO] [stdout] | ^^^^ variant or associated item not found in `Color` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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 - enum_messages (line 707) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:709:5 [INFO] [stdout] | [INFO] [stdout] 4 | use gratte::EnumMessage; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:710:5 [INFO] [stdout] | [INFO] [stdout] 5 | use gratte; [INFO] [stdout] | ^^^^^^ no external crate `gratte` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:716:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[strum(message = "Red", detailed_message = "This is very red")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:718:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[strum(message = "Simply Green")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:720:7 [INFO] [stdout] | [INFO] [stdout] 15 | #[strum(serialize = "b", serialize = "blue")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_message` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:770:21 [INFO] [stdout] | [INFO] [stdout] 9 | enum Color { [INFO] [stdout] | ---------- method `get_message` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 65 | assert_eq!("Red", c.get_message().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_detailed_message` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:771:34 [INFO] [stdout] | [INFO] [stdout] 9 | enum Color { [INFO] [stdout] | ---------- method `get_detailed_message` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 66 | assert_eq!("This is very red", c.get_detailed_message().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_documentation` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:772:31 [INFO] [stdout] | [INFO] [stdout] 9 | enum Color { [INFO] [stdout] | ---------- method `get_documentation` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 67 | assert_eq!("Danger color.", c.get_documentation().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_serializations` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:773:23 [INFO] [stdout] | [INFO] [stdout] 9 | enum Color { [INFO] [stdout] | ---------- method `get_serializations` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 68 | assert_eq!(["Red"], c.get_serializations()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 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 - enum_count (line 953) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:954:5 [INFO] [stdout] | [INFO] [stdout] 3 | use gratte::{EnumCount, IntoEnumIterator}; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:955:5 [INFO] [stdout] | [INFO] [stdout] 4 | use gratte::EnumIter; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gratte` [INFO] [stdout] --> src/lib.rs:957:17 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, gratte::EnumCount, EnumIter)] [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `COUNT` found for enum `Week` in the current scope [INFO] [stdout] --> src/lib.rs:968:21 [INFO] [stdout] | [INFO] [stdout] 7 | enum Week { [INFO] [stdout] | --------- variant or associated item `COUNT` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 17 | assert_eq!(7, Week::COUNT); [INFO] [stdout] | ^^^^^ variant or associated item not found in `Week` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `iter` found for enum `Week` in the current scope [INFO] [stdout] --> src/lib.rs:969:18 [INFO] [stdout] | [INFO] [stdout] 7 | enum Week { [INFO] [stdout] | --------- variant or associated item `iter` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 18 | assert_eq!(Week::iter().count(), Week::COUNT); [INFO] [stdout] | ^^^^ variant or associated item not found in `Week` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `COUNT` found for enum `Week` in the current scope [INFO] [stdout] --> src/lib.rs:969:40 [INFO] [stdout] | [INFO] [stdout] 7 | enum Week { [INFO] [stdout] | --------- variant or associated item `COUNT` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 18 | assert_eq!(Week::iter().count(), Week::COUNT); [INFO] [stdout] | ^^^^^ variant or associated item not found in `Week` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, 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 - enum_table (line 584) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:585:5 [INFO] [stdout] | [INFO] [stdout] 3 | use gratte::EnumTable; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ColorTable` [INFO] [stdout] --> src/lib.rs:595:12 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(ColorTable::default(), ColorTable::new(0, 0, 0, 0)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ColorTable` [INFO] [stdout] --> src/lib.rs:595:35 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(ColorTable::default(), ColorTable::new(0, 0, 0, 0)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ColorTable` [INFO] [stdout] --> src/lib.rs:596:12 [INFO] [stdout] | [INFO] [stdout] 14 | assert_eq!(ColorTable::filled(2), ColorTable::new(2, 2, 2, 2)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ColorTable` [INFO] [stdout] --> src/lib.rs:596:35 [INFO] [stdout] | [INFO] [stdout] 14 | assert_eq!(ColorTable::filled(2), ColorTable::new(2, 2, 2, 2)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ColorTable` [INFO] [stdout] --> src/lib.rs:597:12 [INFO] [stdout] | [INFO] [stdout] 15 | assert_eq!(ColorTable::from_closure(|_| 3), ColorTable::new(3, 3, 3, 3)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ColorTable` [INFO] [stdout] --> src/lib.rs:597:45 [INFO] [stdout] | [INFO] [stdout] 15 | assert_eq!(ColorTable::from_closure(|_| 3), ColorTable::new(3, 3, 3, 3)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ColorTable` [INFO] [stdout] --> src/lib.rs:598:12 [INFO] [stdout] | [INFO] [stdout] 16 | assert_eq!(ColorTable::default().transform(|_, val| val + 2), ColorTable::new(2, 2, 2, 2)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ColorTable` [INFO] [stdout] --> src/lib.rs:598:63 [INFO] [stdout] | [INFO] [stdout] 16 | assert_eq!(ColorTable::default().transform(|_, val| val + 2), ColorTable::new(2, 2, 2, 2)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ColorTable` [INFO] [stdout] --> src/lib.rs:600:23 [INFO] [stdout] | [INFO] [stdout] 18 | let mut complex_map = ColorTable::from_closure(|color| match color { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ColorTable` [INFO] [stdout] --> src/lib.rs:606:25 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(complex_map, ColorTable::new(0, 3, 0, 3)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - from_repr (line 667) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:668:5 [INFO] [stdout] | [INFO] [stdout] 3 | use gratte::FromRepr; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_repr` found for enum `Number` in the current scope [INFO] [stdout] --> src/lib.rs:678:13 [INFO] [stdout] | [INFO] [stdout] 7 | enum Number { [INFO] [stdout] | ----------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Number::from_repr(d) [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Number` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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 - display (line 405) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gratte` [INFO] [stdout] --> src/lib.rs:406:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(gratte::Display)] [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:408:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[strum(to_string = "saturation is {sat}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:410:7 [INFO] [stdout] | [INFO] [stdout] 7 | #[strum(to_string = "hue is {1}, saturation is {0}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - from_string (line 68) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 4 | use gratte::EnumString; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:81:7 [INFO] [stdout] | [INFO] [stdout] 15 | #[strum(serialize = "blue", serialize = "b")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:85:7 [INFO] [stdout] | [INFO] [stdout] 19 | #[strum(disabled)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:89:7 [INFO] [stdout] | [INFO] [stdout] 23 | #[strum(ascii_case_insensitive)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_str` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:112:28 [INFO] [stdout] | [INFO] [stdout] 7 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 46 | let color_variant = Color::from_str("Red").unwrap(); [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `Color` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 46 - let color_variant = Color::from_str("Red").unwrap(); [INFO] [stdout] 46 + let color_variant = Color::from("Red").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_str` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:115:28 [INFO] [stdout] | [INFO] [stdout] 7 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 49 | let color_variant = Color::from_str("b").unwrap(); [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `Color` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 49 - let color_variant = Color::from_str("b").unwrap(); [INFO] [stdout] 49 + let color_variant = Color::from("b").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_str` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:118:28 [INFO] [stdout] | [INFO] [stdout] 7 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 52 | let color_variant = Color::from_str("Yellow"); [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `Color` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 52 - let color_variant = Color::from_str("Yellow"); [INFO] [stdout] 52 + let color_variant = Color::from("Yellow"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_str` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:122:28 [INFO] [stdout] | [INFO] [stdout] 7 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 56 | let color_variant = Color::from_str("bLACk").unwrap(); [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `Color` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 56 - let color_variant = Color::from_str("bLACk").unwrap(); [INFO] [stdout] 56 + let color_variant = Color::from("bLACk").unwrap(); [INFO] [stdout] | [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 - into_static_str (line 312) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:313:5 [INFO] [stdout] | [INFO] [stdout] 3 | use gratte::IntoStaticStr; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&str: From>` is not satisfied [INFO] [stdout] --> src/lib.rs:326:37 [INFO] [stdout] | [INFO] [stdout] 16 | let right: &'static str = state.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] `String` implements `From<&String>` [INFO] [stdout] `String` implements `From<&mut str>` [INFO] [stdout] `String` implements `From<&str>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From` [INFO] [stdout] = note: required for `State<'_>` to implement `Into<&str>` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&str: From>` is not satisfied [INFO] [stdout] --> src/lib.rs:329:36 [INFO] [stdout] | [INFO] [stdout] 19 | let done: &'static str = state.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] `String` implements `From<&String>` [INFO] [stdout] `String` implements `From<&mut str>` [INFO] [stdout] `String` implements `From<&str>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From` [INFO] [stdout] = note: required for `State<'_>` to implement `Into<&str>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - to_string (line 350) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:353:5 [INFO] [stdout] | [INFO] [stdout] 5 | use gratte; [INFO] [stdout] | ^^^^^^ no external crate `gratte` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:357:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[strum(serialize = "redred")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: `Color` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/lib.rs:368:40 [INFO] [stdout] | [INFO] [stdout] 8 | enum Color { [INFO] [stdout] | ---------- method `to_string` not found for this enum because it doesn't satisfy `Color: ToString` or `Color: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 20 | assert_eq!(String::from("redred"), red.to_string()); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `Color` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Color: std::fmt::Display` [INFO] [stdout] which is required by `Color: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/fmt/mod.rs:1006:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] error[E0599]: `Color` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/lib.rs:371:43 [INFO] [stdout] | [INFO] [stdout] 8 | enum Color { [INFO] [stdout] | ---------- method `to_string` not found for this enum because it doesn't satisfy `Color: ToString` or `Color: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 23 | assert_eq!(String::from("Yellow"), yellow.to_string()); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `Color` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Color: std::fmt::Display` [INFO] [stdout] which is required by `Color: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/fmt/mod.rs:1006:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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 - enum_try_as (line 534) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:535:5 [INFO] [stdout] | [INFO] [stdout] 3 | use gratte::EnumTryAs; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `try_as_write` found for enum `Message` in the current scope [INFO] [stdout] --> src/lib.rs:546:43 [INFO] [stdout] | [INFO] [stdout] 6 | enum Message { [INFO] [stdout] | ------------ method `try_as_write` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 14 | Message::Write(String::from("Hello")).try_as_write(), [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `Message` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `try_as_change_color` found for enum `Message` in the current scope [INFO] [stdout] --> src/lib.rs:550:35 [INFO] [stdout] | [INFO] [stdout] 6 | enum Message { [INFO] [stdout] | ------------ method `try_as_change_color` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 18 | Message::ChangeColor(1, 2, 3).try_as_change_color(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `Message` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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 - enum_is (line 508) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:509:5 [INFO] [stdout] | [INFO] [stdout] 3 | use gratte::EnumIs; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_red` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:517:20 [INFO] [stdout] | [INFO] [stdout] 6 | enum Color { [INFO] [stdout] | ---------- method `is_red` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 11 | assert!(Color::Red.is_red()); [INFO] [stdout] | ^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_green` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:518:32 [INFO] [stdout] | [INFO] [stdout] 6 | enum Color { [INFO] [stdout] | ---------- method `is_green` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 12 | assert!(Color::Green{range: 0}.is_green()); [INFO] [stdout] | ^^^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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 - enum_discriminants (line 852) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:855:5 [INFO] [stdout] | [INFO] [stdout] 5 | use gratte::{IntoEnumIterator, EnumMessage as _}; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:856:5 [INFO] [stdout] | [INFO] [stdout] 6 | use gratte::{EnumDiscriminants, EnumIter, EnumString}; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum_discriminants` in this scope [INFO] [stdout] --> src/lib.rs:864:3 [INFO] [stdout] | [INFO] [stdout] 14 | #[strum_discriminants(derive(EnumString, gratte::EnumMessage))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum_discriminants` in this scope [INFO] [stdout] --> src/lib.rs:865:3 [INFO] [stdout] | [INFO] [stdout] 15 | #[strum_discriminants(doc = "This is the docstring on the generated type.")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum_discriminants` in this scope [INFO] [stdout] --> src/lib.rs:867:7 [INFO] [stdout] | [INFO] [stdout] 17 | #[strum_discriminants(strum(message = "Variant zero"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum_discriminants` in this scope [INFO] [stdout] --> src/lib.rs:875:3 [INFO] [stdout] | [INFO] [stdout] 25 | #[strum_discriminants(derive(EnumIter))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum_discriminants` in this scope [INFO] [stdout] --> src/lib.rs:876:3 [INFO] [stdout] | [INFO] [stdout] 26 | #[strum_discriminants(name(MyVariants))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] --> src/lib.rs:884:5 [INFO] [stdout] | [INFO] [stdout] 34 | MyEnumDiscriminants::Variant0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] --> src/lib.rs:885:5 [INFO] [stdout] | [INFO] [stdout] 35 | MyEnumDiscriminants::from_str("Variant0").unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyVariants` [INFO] [stdout] --> src/lib.rs:889:10 [INFO] [stdout] | [INFO] [stdout] 39 | vec![MyVariants::Variant0, MyVariants::Variant1], [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `MyVariants` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyVariants` [INFO] [stdout] --> src/lib.rs:889:32 [INFO] [stdout] | [INFO] [stdout] 39 | vec![MyVariants::Variant0, MyVariants::Variant1], [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `MyVariants` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyVariants` [INFO] [stdout] --> src/lib.rs:890:5 [INFO] [stdout] | [INFO] [stdout] 40 | MyVariants::iter().collect::>() [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `MyVariants` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] --> src/lib.rs:896:5 [INFO] [stdout] | [INFO] [stdout] 46 | MyEnumDiscriminants::Variant0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] --> src/lib.rs:900:5 [INFO] [stdout] | [INFO] [stdout] 50 | MyEnumDiscriminants::Variant0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] --> src/lib.rs:901:5 [INFO] [stdout] | [INFO] [stdout] 51 | MyEnumDiscriminants::from(MyEnum::Variant0(NonDefault)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] --> src/lib.rs:906:5 [INFO] [stdout] | [INFO] [stdout] 56 | MyEnumDiscriminants::Variant0.get_message(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - enum_properties (line 795) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:796:5 [INFO] [stdout] | [INFO] [stdout] 3 | use gratte; [INFO] [stdout] | ^^^^^^ no external crate `gratte` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:803:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[strum(props(Red = "255", Blue = "255", Green = "255"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:805:7 [INFO] [stdout] | [INFO] [stdout] 12 | #[strum(props(Red = "0", Blue = "0", Green = "0"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:807:7 [INFO] [stdout] | [INFO] [stdout] 14 | #[strum(props(Red = "0", Blue = "255", Green = "0"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:809:7 [INFO] [stdout] | [INFO] [stdout] 16 | #[strum(props(Red = "255", Blue = "0", Green = "0"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:811:7 [INFO] [stdout] | [INFO] [stdout] 18 | #[strum(props(Red = "0", Blue = "0", Green = "255"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_str` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:819:14 [INFO] [stdout] | [INFO] [stdout] 9 | enum Color { [INFO] [stdout] | ---------- method `get_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 26 | my_color.get_str("Red").unwrap(), [INFO] [stdout] | ^^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_str` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:820:14 [INFO] [stdout] | [INFO] [stdout] 9 | enum Color { [INFO] [stdout] | ---------- method `get_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 27 | my_color.get_str("Green").unwrap(), [INFO] [stdout] | ^^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_str` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:821:14 [INFO] [stdout] | [INFO] [stdout] 9 | enum Color { [INFO] [stdout] | ---------- method `get_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 28 | my_color.get_str("Blue").unwrap() [INFO] [stdout] | ^^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 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 - display (line 415) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:418:5 [INFO] [stdout] | [INFO] [stdout] 5 | use gratte::Display; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:422:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[strum(serialize = "redred")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:429:7 [INFO] [stdout] | [INFO] [stdout] 16 | #[strum(to_string = "purple with {sat} saturation")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0277]: `Color` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/lib.rs:437:50 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(String::from("redred"), format!("{}", red)); [INFO] [stdout] | -- ^^^ `Color` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Color` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0599]: `Color` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/lib.rs:440:43 [INFO] [stdout] | [INFO] [stdout] 8 | enum Color { [INFO] [stdout] | ---------- method `to_string` not found for this enum because it doesn't satisfy `Color: ToString` or `Color: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 27 | assert_eq!(String::from("Yellow"), yellow.to_string()); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `Color` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Color: std::fmt::Display` [INFO] [stdout] which is required by `Color: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/fmt/mod.rs:1006:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] error[E0277]: `Color` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/lib.rs:446:8 [INFO] [stdout] | [INFO] [stdout] 32 | "blue: {} green: {}", [INFO] [stdout] | -- required by this formatting parameter [INFO] [stdout] 33 | Color::Blue(10), [INFO] [stdout] | ^^^^^^^^^^^^^^^ `Color` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Color` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0599]: `Color` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/lib.rs:452:62 [INFO] [stdout] | [INFO] [stdout] 8 | enum Color { [INFO] [stdout] | ---------- method `to_string` not found for this enum because it doesn't satisfy `Color: ToString` or `Color: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 39 | assert_eq!(String::from("purple with 10 saturation"), purple.to_string()); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `Color` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Color: std::fmt::Display` [INFO] [stdout] which is required by `Color: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b/library/core/src/fmt/mod.rs:1006:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - static_variants_array (line 264) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:265:5 [INFO] [stdout] | [INFO] [stdout] 3 | use gratte::VariantArray as _; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:266:5 [INFO] [stdout] | [INFO] [stdout] 4 | use gratte::VariantArray; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `VARIANTS` found for enum `Op` in the current scope [INFO] [stdout] --> src/lib.rs:276:16 [INFO] [stdout] | [INFO] [stdout] 7 | enum Op { [INFO] [stdout] | ------- variant or associated item `VARIANTS` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 14 | assert_eq!(Op::VARIANTS, &[Op::Add, Op::Sub, Op::Mul, Op::Div]); [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `Op` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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 - enum_discriminants (line 915) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:916:5 [INFO] [stdout] | [INFO] [stdout] 3 | use gratte::EnumDiscriminants; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:920:9 [INFO] [stdout] | [INFO] [stdout] 7 | use gratte::EnumDiscriminants; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum_discriminants` in this scope [INFO] [stdout] --> src/lib.rs:924:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[strum_discriminants(vis(pub))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum_discriminants` in this scope [INFO] [stdout] --> src/lib.rs:925:7 [INFO] [stdout] | [INFO] [stdout] 12 | #[strum_discriminants(name(PubDiscriminants))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `PubDiscriminants` in `inner` [INFO] [stdout] --> src/lib.rs:934:12 [INFO] [stdout] | [INFO] [stdout] 21 | inner::PubDiscriminants::Variant0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ could not find `PubDiscriminants` in `inner` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `PubDiscriminants` in `inner` [INFO] [stdout] --> src/lib.rs:935:12 [INFO] [stdout] | [INFO] [stdout] 22 | inner::PubDiscriminants::Variant1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ could not find `PubDiscriminants` in `inner` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - from_repr (line 637) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:638:5 [INFO] [stdout] | [INFO] [stdout] 3 | use gratte::FromRepr; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_repr` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:648:37 [INFO] [stdout] | [INFO] [stdout] 6 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 13 | assert_eq!(Some(Color::Red), Color::from_repr(0)); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_repr` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:649:50 [INFO] [stdout] | [INFO] [stdout] 6 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 14 | assert_eq!(Some(Color::Green {range: 0}), Color::from_repr(1)); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_repr` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:650:41 [INFO] [stdout] | [INFO] [stdout] 6 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 15 | assert_eq!(Some(Color::Blue(0)), Color::from_repr(2)); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_repr` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:651:40 [INFO] [stdout] | [INFO] [stdout] 6 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 16 | assert_eq!(Some(Color::Yellow), Color::from_repr(3)); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_repr` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:652:25 [INFO] [stdout] | [INFO] [stdout] 6 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 17 | assert_eq!(None, Color::from_repr(4)); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_repr` found for enum `Vehicle` in the current scope [INFO] [stdout] --> src/lib.rs:662:27 [INFO] [stdout] | [INFO] [stdout] 22 | enum Vehicle { [INFO] [stdout] | ------------ variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 27 | assert_eq!(None, Vehicle::from_repr(0)); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Vehicle` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 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 - as_ref_str (line 144) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:147:5 [INFO] [stdout] | [INFO] [stdout] 5 | use gratte::AsRefStr; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:151:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[strum(serialize = "redred")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:178:3 [INFO] [stdout] | [INFO] [stdout] 36 | #[strum(prefix = "/")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:180:7 [INFO] [stdout] | [INFO] [stdout] 38 | #[strum(serialize = "redred")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:190:3 [INFO] [stdout] | [INFO] [stdout] 48 | #[strum(suffix = ".rs")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:192:7 [INFO] [stdout] | [INFO] [stdout] 50 | #[strum(serialize = "redred")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:162:26 [INFO] [stdout] | [INFO] [stdout] 8 | enum Color { [INFO] [stdout] | ---------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 20 | assert_eq!("redred", red.as_ref()); [INFO] [stdout] | ^^^^^^ method not found in `Color` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:165:29 [INFO] [stdout] | [INFO] [stdout] 8 | enum Color { [INFO] [stdout] | ---------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 23 | assert_eq!("Yellow", yellow.as_ref()); [INFO] [stdout] | ^^^^^^ method not found in `Color` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:171:24 [INFO] [stdout] | [INFO] [stdout] 8 | enum Color { [INFO] [stdout] | ---------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 29 | Color::Blue(10).as_ref(), [INFO] [stdout] | ^^^^^^ method not found in `Color` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:172:35 [INFO] [stdout] | [INFO] [stdout] 8 | enum Color { [INFO] [stdout] | ---------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 30 | Color::Green { range: 42 }.as_ref() [INFO] [stdout] | ^^^^^^ method not found in `Color` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for enum `ColorWithPrefix` in the current scope [INFO] [stdout] --> src/lib.rs:185:44 [INFO] [stdout] | [INFO] [stdout] 37 | enum ColorWithPrefix { [INFO] [stdout] | -------------------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 43 | assert_eq!("/redred", ColorWithPrefix::Red.as_ref()); [INFO] [stdout] | ^^^^^^ method not found in `ColorWithPrefix` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for enum `ColorWithPrefix` in the current scope [INFO] [stdout] --> src/lib.rs:186:45 [INFO] [stdout] | [INFO] [stdout] 37 | enum ColorWithPrefix { [INFO] [stdout] | -------------------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 44 | assert_eq!("/Green", ColorWithPrefix::Green.as_ref()); [INFO] [stdout] | ^^^^^^ method not found in `ColorWithPrefix` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for enum `ColorWithSuffix` in the current scope [INFO] [stdout] --> src/lib.rs:197:46 [INFO] [stdout] | [INFO] [stdout] 49 | enum ColorWithSuffix { [INFO] [stdout] | -------------------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 55 | assert_eq!("redred.rs", ColorWithSuffix::Red.as_ref()); [INFO] [stdout] | ^^^^^^ method not found in `ColorWithSuffix` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for enum `ColorWithSuffix` in the current scope [INFO] [stdout] --> src/lib.rs:198:47 [INFO] [stdout] | [INFO] [stdout] 49 | enum ColorWithSuffix { [INFO] [stdout] | -------------------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 56 | assert_eq!("Green.rs", ColorWithSuffix::Green.as_ref()); [INFO] [stdout] | ^^^^^^ method not found in `ColorWithSuffix` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 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 - variant_names (line 215) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 4 | use gratte::EnumString; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:219:5 [INFO] [stdout] | [INFO] [stdout] 6 | use gratte::VariantNames; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gratte` [INFO] [stdout] --> src/lib.rs:221:29 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, EnumString, gratte::VariantNames)] [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:222:3 [INFO] [stdout] | [INFO] [stdout] 9 | #[strum(serialize_all = "kebab-case")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `VARIANTS` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:229:64 [INFO] [stdout] | [INFO] [stdout] 10 | enum Color { [INFO] [stdout] | ---------- variant or associated item `VARIANTS` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 16 | assert_eq!(["red", "blue", "yellow", "rebecca-purple"], Color::VARIANTS); [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `Color` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, 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 - as_ref_str (line 144) [INFO] [stdout] src/lib.rs - display (line 405) [INFO] [stdout] src/lib.rs - display (line 415) [INFO] [stdout] src/lib.rs - enum_count (line 953) [INFO] [stdout] src/lib.rs - enum_discriminants (line 852) [INFO] [stdout] src/lib.rs - enum_discriminants (line 915) [INFO] [stdout] src/lib.rs - enum_is (line 508) [INFO] [stdout] src/lib.rs - enum_iter (line 470) [INFO] [stdout] src/lib.rs - enum_messages (line 707) [INFO] [stdout] src/lib.rs - enum_properties (line 795) [INFO] [stdout] src/lib.rs - enum_table (line 584) [INFO] [stdout] src/lib.rs - enum_try_as (line 534) [INFO] [stdout] src/lib.rs - from_repr (line 637) [INFO] [stdout] src/lib.rs - from_repr (line 667) [INFO] [stdout] src/lib.rs - from_string (line 68) [INFO] [stdout] src/lib.rs - into_static_str (line 312) [INFO] [stdout] src/lib.rs - static_variants_array (line 264) [INFO] [stdout] src/lib.rs - to_string (line 350) [INFO] [stdout] src/lib.rs - variant_names (line 215) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 19 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.89s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "11ead1b64b50b33c4208a3294e2227cf43873dff77d67bd00483d42ccef7d2a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11ead1b64b50b33c4208a3294e2227cf43873dff77d67bd00483d42ccef7d2a7", kill_on_drop: false }` [INFO] [stdout] 11ead1b64b50b33c4208a3294e2227cf43873dff77d67bd00483d42ccef7d2a7