[INFO] fetching crate gratte_macros 1.2.0... [INFO] testing gratte_macros-1.2.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate gratte_macros 1.2.0 into /workspace/builds/worker-1-tc1/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-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate gratte_macros 1.2.0 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 906286e20b8e07589f79a2aece77643ff50f41aca973611bca68ac9e971e69cd [INFO] running `Command { std: "docker" "start" "-a" "906286e20b8e07589f79a2aece77643ff50f41aca973611bca68ac9e971e69cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "906286e20b8e07589f79a2aece77643ff50f41aca973611bca68ac9e971e69cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "906286e20b8e07589f79a2aece77643ff50f41aca973611bca68ac9e971e69cd", kill_on_drop: false }` [INFO] [stdout] 906286e20b8e07589f79a2aece77643ff50f41aca973611bca68ac9e971e69cd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 26dc52409b7a58ae4b0b5fd723405d302aeed04bd906b0570140e824dc136c00 [INFO] running `Command { std: "docker" "start" "-a" "26dc52409b7a58ae4b0b5fd723405d302aeed04bd906b0570140e824dc136c00", 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 5.03s [INFO] running `Command { std: "docker" "inspect" "26dc52409b7a58ae4b0b5fd723405d302aeed04bd906b0570140e824dc136c00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26dc52409b7a58ae4b0b5fd723405d302aeed04bd906b0570140e824dc136c00", kill_on_drop: false }` [INFO] [stdout] 26dc52409b7a58ae4b0b5fd723405d302aeed04bd906b0570140e824dc136c00 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 959c171662b96bce1e00445b35fd4553cdd7c2307676575622e85fb4e53e5bfb [INFO] running `Command { std: "docker" "start" "-a" "959c171662b96bce1e00445b35fd4553cdd7c2307676575622e85fb4e53e5bfb", 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.16s [INFO] running `Command { std: "docker" "inspect" "959c171662b96bce1e00445b35fd4553cdd7c2307676575622e85fb4e53e5bfb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "959c171662b96bce1e00445b35fd4553cdd7c2307676575622e85fb4e53e5bfb", kill_on_drop: false }` [INFO] [stdout] 959c171662b96bce1e00445b35fd4553cdd7c2307676575622e85fb4e53e5bfb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e49960538a19c2877ee51fb70480a8c10105ee00d6f4f194c8951c73b6a8b350 [INFO] running `Command { std: "docker" "start" "-a" "e49960538a19c2877ee51fb70480a8c10105ee00d6f4f194c8951c73b6a8b350", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [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.01s [INFO] [stdout] [INFO] [stderr] Doc-tests gratte_macros [INFO] [stdout] [INFO] [stdout] running 19 tests [INFO] [stdout] test src/lib.rs - enum_count (line 953) ... FAILED [INFO] [stdout] test src/lib.rs - into_static_str (line 312) ... FAILED [INFO] [stdout] test src/lib.rs - from_repr (line 667) ... FAILED [INFO] [stdout] test src/lib.rs - enum_messages (line 707) ... FAILED [INFO] [stdout] test src/lib.rs - static_variants_array (line 264) ... FAILED [INFO] [stdout] test src/lib.rs - display (line 405) ... FAILED [INFO] [stdout] test src/lib.rs - enum_discriminants (line 915) ... FAILED [INFO] [stdout] test src/lib.rs - display (line 415) ... FAILED [INFO] [stdout] test src/lib.rs - enum_is (line 508) ... FAILED [INFO] [stdout] test src/lib.rs - enum_table (line 584) ... FAILED [INFO] [stdout] test src/lib.rs - to_string (line 350) ... FAILED [INFO] [stdout] test src/lib.rs - enum_properties (line 795) ... FAILED [INFO] [stdout] test src/lib.rs - as_ref_str (line 144) ... FAILED [INFO] [stdout] test src/lib.rs - enum_iter (line 470) ... FAILED [INFO] [stdout] test src/lib.rs - from_string (line 68) ... FAILED [INFO] [stdout] test src/lib.rs - enum_try_as (line 534) ... FAILED [INFO] [stdout] test src/lib.rs - variant_names (line 215) ... FAILED [INFO] [stdout] test src/lib.rs - from_repr (line 637) ... FAILED [INFO] [stdout] test src/lib.rs - enum_discriminants (line 852) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] 954 | 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] 955 | 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] 957 | #[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] 958 | enum Week { [INFO] [stdout] | --------- variant or associated item `COUNT` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 968 | 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] 958 | enum Week { [INFO] [stdout] | --------- variant or associated item `iter` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 969 | 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] 958 | enum Week { [INFO] [stdout] | --------- variant or associated item `COUNT` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 969 | 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 - into_static_str (line 312) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:313:5 [INFO] [stdout] | [INFO] [stdout] 313 | 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] 326 | 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] 329 | 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 - from_repr (line 667) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:668:5 [INFO] [stdout] | [INFO] [stdout] 668 | 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] 672 | enum Number { [INFO] [stdout] | ----------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 678 | 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 - enum_messages (line 707) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:709:5 [INFO] [stdout] | [INFO] [stdout] 709 | 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] 710 | 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] 716 | #[strum(message = "Red", detailed_message = "This is very red")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 714 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 715 | enum Color { [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] 718 | #[strum(message = "Simply Green")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 714 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 715 | enum Color { [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] 720 | #[strum(serialize = "b", serialize = "blue")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 714 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 715 | enum Color { [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] 714 | enum Color { [INFO] [stdout] | ---------- method `get_message` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 770 | 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] 714 | enum Color { [INFO] [stdout] | ---------- method `get_detailed_message` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 771 | 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] 714 | enum Color { [INFO] [stdout] | ---------- method `get_documentation` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 772 | 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] 714 | enum Color { [INFO] [stdout] | ---------- method `get_serializations` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 773 | 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 - static_variants_array (line 264) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:265:5 [INFO] [stdout] | [INFO] [stdout] 265 | 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] 266 | 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] 269 | enum Op { [INFO] [stdout] | ------- variant or associated item `VARIANTS` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 276 | 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 - 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] 406 | #[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] 408 | #[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] 410 | #[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 - enum_discriminants (line 915) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:916:5 [INFO] [stdout] | [INFO] [stdout] 916 | 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] 920 | 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] 924 | #[strum_discriminants(vis(pub))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum_discriminants` is an attribute that can be used by the derive macro `EnumDiscriminants`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 926 + #[derive(EnumDiscriminants)] [INFO] [stdout] 927 | enum PrivateEnum { [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] 925 | #[strum_discriminants(name(PubDiscriminants))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum_discriminants` is an attribute that can be used by the derive macro `EnumDiscriminants`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 926 + #[derive(EnumDiscriminants)] [INFO] [stdout] 927 | enum PrivateEnum { [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] 934 | 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] 935 | 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 - display (line 415) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:418:5 [INFO] [stdout] | [INFO] [stdout] 418 | 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] 422 | #[strum(serialize = "redred")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 421 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 422 | enum Color { [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] 429 | #[strum(to_string = "purple with {sat} saturation")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 421 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 422 | enum Color { [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] 437 | 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] --> src/lib.rs:421:1 [INFO] [stdout] | [INFO] [stdout] 421 | enum Color { [INFO] [stdout] | ^^^^^^^^^^ [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] 421 | 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] 440 | 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/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/fmt/mod.rs:1007:0 [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] 445 | "blue: {} green: {}", [INFO] [stdout] | -- required by this formatting parameter [INFO] [stdout] 446 | 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] --> src/lib.rs:421:1 [INFO] [stdout] | [INFO] [stdout] 421 | enum Color { [INFO] [stdout] | ^^^^^^^^^^ [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] 421 | 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] 452 | 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/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/fmt/mod.rs:1007:0 [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 - enum_is (line 508) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:509:5 [INFO] [stdout] | [INFO] [stdout] 509 | 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] 512 | enum Color { [INFO] [stdout] | ---------- method `is_red` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 517 | 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] 512 | enum Color { [INFO] [stdout] | ---------- method `is_green` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 518 | 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_table (line 584) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:585:5 [INFO] [stdout] | [INFO] [stdout] 585 | 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] 595 | 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] 595 | 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] 596 | 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] 596 | 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] 597 | 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] 597 | 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] 598 | 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] 598 | 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] 600 | 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] 606 | 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 - to_string (line 350) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:353:5 [INFO] [stdout] | [INFO] [stdout] 353 | 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] 357 | #[strum(serialize = "redred")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 356 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 357 | enum Color { [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] 356 | 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] 368 | 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/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/fmt/mod.rs:1007:0 [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] 356 | 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] 371 | 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/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/fmt/mod.rs:1007:0 [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_properties (line 795) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:796:5 [INFO] [stdout] | [INFO] [stdout] 796 | 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] 803 | #[strum(props(Red = "255", Blue = "255", Green = "255"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 802 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 803 | enum Color { [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] 805 | #[strum(props(Red = "0", Blue = "0", Green = "0"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 802 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 803 | enum Color { [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] 807 | #[strum(props(Red = "0", Blue = "255", Green = "0"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 802 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 803 | enum Color { [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] 809 | #[strum(props(Red = "255", Blue = "0", Green = "0"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 802 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 803 | enum Color { [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] 811 | #[strum(props(Red = "0", Blue = "0", Green = "255"))] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 802 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 803 | enum Color { [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] 802 | enum Color { [INFO] [stdout] | ---------- method `get_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 819 | 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] 802 | enum Color { [INFO] [stdout] | ---------- method `get_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 820 | 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] 802 | enum Color { [INFO] [stdout] | ---------- method `get_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 821 | 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 - as_ref_str (line 144) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:147:5 [INFO] [stdout] | [INFO] [stdout] 147 | 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] 151 | #[strum(serialize = "redred")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 150 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 151 | enum Color { [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] 178 | #[strum(prefix = "/")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:180:7 [INFO] [stdout] | [INFO] [stdout] 180 | #[strum(serialize = "redred")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 179 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 180 | enum ColorWithPrefix { [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] 190 | #[strum(suffix = ".rs")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:192:7 [INFO] [stdout] | [INFO] [stdout] 192 | #[strum(serialize = "redred")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 191 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 192 | enum ColorWithSuffix { [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] 150 | enum Color { [INFO] [stdout] | ---------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 162 | 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] 150 | enum Color { [INFO] [stdout] | ---------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 165 | 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] 150 | enum Color { [INFO] [stdout] | ---------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 171 | 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] 150 | enum Color { [INFO] [stdout] | ---------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 172 | 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] 179 | enum ColorWithPrefix { [INFO] [stdout] | -------------------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 185 | 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] 179 | enum ColorWithPrefix { [INFO] [stdout] | -------------------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 186 | 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] 191 | enum ColorWithSuffix { [INFO] [stdout] | -------------------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 197 | 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] 191 | enum ColorWithSuffix { [INFO] [stdout] | -------------------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 198 | 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 - enum_iter (line 470) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:472:5 [INFO] [stdout] | [INFO] [stdout] 472 | 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] 473 | 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] 476 | enum Color { [INFO] [stdout] | ---------- variant or associated item `iter` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 484 | 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] 476 | enum Color { [INFO] [stdout] | ---------- variant or associated item `iter` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 488 | 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 - from_string (line 68) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | 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] 81 | #[strum(serialize = "blue", serialize = "b")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 73 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 74 | enum Color { [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] 85 | #[strum(disabled)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 73 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 74 | enum Color { [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] 89 | #[strum(ascii_case_insensitive)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 73 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 74 | enum Color { [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] 73 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 112 | 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] 112 - let color_variant = Color::from_str("Red").unwrap(); [INFO] [stdout] 112 + 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] 73 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 115 | 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] 115 - let color_variant = Color::from_str("b").unwrap(); [INFO] [stdout] 115 + 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] 73 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 118 | 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] 118 - let color_variant = Color::from_str("Yellow"); [INFO] [stdout] 118 + 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] 73 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 122 | 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] 122 - let color_variant = Color::from_str("bLACk").unwrap(); [INFO] [stdout] 122 + 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 - enum_try_as (line 534) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:535:5 [INFO] [stdout] | [INFO] [stdout] 535 | 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] 538 | enum Message { [INFO] [stdout] | ------------ method `try_as_write` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 546 | 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] 538 | enum Message { [INFO] [stdout] | ------------ method `try_as_change_color` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 550 | 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 - variant_names (line 215) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 217 | 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] 219 | 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] 221 | #[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] 222 | #[strum(serialize_all = "kebab-case")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [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] 223 | enum Color { [INFO] [stdout] | ---------- variant or associated item `VARIANTS` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 229 | 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] ---- 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] 638 | 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] 641 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 648 | 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] 641 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 649 | 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] 641 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 650 | 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] 641 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 651 | 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] 641 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 652 | 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] 657 | enum Vehicle { [INFO] [stdout] | ------------ variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 662 | 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 - enum_discriminants (line 852) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:855:5 [INFO] [stdout] | [INFO] [stdout] 855 | 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] 856 | 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] 864 | #[strum_discriminants(derive(EnumString, gratte::EnumMessage))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `strum_discriminants` is an attribute that can be used by the derive macro `EnumDiscriminants`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum_discriminants` in this scope [INFO] [stdout] --> src/lib.rs:865:3 [INFO] [stdout] | [INFO] [stdout] 865 | #[strum_discriminants(doc = "This is the docstring on the generated type.")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `strum_discriminants` is an attribute that can be used by the derive macro `EnumDiscriminants`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum_discriminants` in this scope [INFO] [stdout] --> src/lib.rs:867:7 [INFO] [stdout] | [INFO] [stdout] 867 | #[strum_discriminants(strum(message = "Variant zero"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum_discriminants` is an attribute that can be used by the derive macro `EnumDiscriminants`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 866 + #[derive(EnumDiscriminants)] [INFO] [stdout] 867 | enum MyEnum { [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] 875 | #[strum_discriminants(derive(EnumIter))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `strum_discriminants` is an attribute that can be used by the derive macro `EnumDiscriminants`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum_discriminants` in this scope [INFO] [stdout] --> src/lib.rs:876:3 [INFO] [stdout] | [INFO] [stdout] 876 | #[strum_discriminants(name(MyVariants))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `strum_discriminants` is an attribute that can be used by the derive macro `EnumDiscriminants`, you might be missing a `derive` attribute [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] 884 | 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] 885 | 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] 889 | 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] 889 | 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] 890 | 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] 896 | 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] 900 | 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] 901 | 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] 906 | 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] [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 1.06s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e49960538a19c2877ee51fb70480a8c10105ee00d6f4f194c8951c73b6a8b350", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e49960538a19c2877ee51fb70480a8c10105ee00d6f4f194c8951c73b6a8b350", kill_on_drop: false }` [INFO] [stdout] e49960538a19c2877ee51fb70480a8c10105ee00d6f4f194c8951c73b6a8b350