[INFO] fetching crate temporary_enum_delegate_codegen_0_3_0 0.3.0... [INFO] testing temporary_enum_delegate_codegen_0_3_0-0.3.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate temporary_enum_delegate_codegen_0_3_0 0.3.0 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate temporary_enum_delegate_codegen_0_3_0 0.3.0 [INFO] finished tweaking crates.io crate temporary_enum_delegate_codegen_0_3_0 0.3.0 [INFO] tweaked toml for crates.io crate temporary_enum_delegate_codegen_0_3_0 0.3.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate temporary_enum_delegate_codegen_0_3_0 0.3.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 15 packages to latest compatible versions [INFO] [stderr] Adding itertools v0.10.5 (available: v0.14.0) [INFO] [stderr] Adding proc-macro-crate v1.3.1 (available: v3.3.0) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.106) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c0b9d08b9b1aaf597d4b3750c3aefe99524fd37930a802d355ef5ca7a1128546 [INFO] running `Command { std: "docker" "start" "-a" "c0b9d08b9b1aaf597d4b3750c3aefe99524fd37930a802d355ef5ca7a1128546", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c0b9d08b9b1aaf597d4b3750c3aefe99524fd37930a802d355ef5ca7a1128546", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0b9d08b9b1aaf597d4b3750c3aefe99524fd37930a802d355ef5ca7a1128546", kill_on_drop: false }` [INFO] [stdout] c0b9d08b9b1aaf597d4b3750c3aefe99524fd37930a802d355ef5ca7a1128546 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4c2c78da2d83bec3e21c152c468b62cd30a57891b8b94ee90260bdf7727e4e4c [INFO] running `Command { std: "docker" "start" "-a" "4c2c78da2d83bec3e21c152c468b62cd30a57891b8b94ee90260bdf7727e4e4c", kill_on_drop: false }` [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling temporary_enum_delegate_codegen_0_3_0 v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: lint `unused_tuple_struct_fields` has been renamed to `dead_code` [INFO] [stdout] --> src/lib.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | unused_tuple_struct_fields [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `dead_code` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/impl_trait/mod.rs:54:22 [INFO] [stdout] | [INFO] [stdout] 54 | unsafety: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | unused_qualifications, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 54 - unsafety: Option, [INFO] [stdout] 54 + unsafety: Option, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.81s [INFO] running `Command { std: "docker" "inspect" "4c2c78da2d83bec3e21c152c468b62cd30a57891b8b94ee90260bdf7727e4e4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c2c78da2d83bec3e21c152c468b62cd30a57891b8b94ee90260bdf7727e4e4c", kill_on_drop: false }` [INFO] [stdout] 4c2c78da2d83bec3e21c152c468b62cd30a57891b8b94ee90260bdf7727e4e4c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ddbb168414fd1528af1b5870902cf306c8a49681bb74eed3c524d704911a8a8 [INFO] running `Command { std: "docker" "start" "-a" "1ddbb168414fd1528af1b5870902cf306c8a49681bb74eed3c524d704911a8a8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling temporary_enum_delegate_codegen_0_3_0 v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: lint `unused_tuple_struct_fields` has been renamed to `dead_code` [INFO] [stdout] --> src/lib.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | unused_tuple_struct_fields [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `dead_code` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/impl_trait/mod.rs:54:22 [INFO] [stdout] | [INFO] [stdout] 54 | unsafety: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | unused_qualifications, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 54 - unsafety: Option, [INFO] [stdout] 54 + unsafety: Option, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lint `unused_tuple_struct_fields` has been renamed to `dead_code` [INFO] [stdout] --> src/lib.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | unused_tuple_struct_fields [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `dead_code` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/impl_trait/mod.rs:54:22 [INFO] [stdout] | [INFO] [stdout] 54 | unsafety: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | unused_qualifications, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 54 - unsafety: Option, [INFO] [stdout] 54 + unsafety: Option, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `enum_delegate` [INFO] [stdout] --> tests/derives_trait.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use enum_delegate::delegate; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `enum_delegate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `enum_delegate`, use `cargo add enum_delegate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `enum_delegate` [INFO] [stdout] --> tests/traits_with_same_name.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use enum_delegate::delegate; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `enum_delegate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `enum_delegate`, use `cargo add enum_delegate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `enum_delegate` [INFO] [stdout] --> tests/trait_default_method_impls.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use enum_delegate::delegate; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `enum_delegate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `enum_delegate`, use `cargo add enum_delegate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for struct `Name` in the current scope [INFO] [stdout] --> tests/traits_with_same_name.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 34 | struct Name(String); [INFO] [stdout] | ----------- method `as_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 41 | assert_eq!(name.as_str(), "John"); [INFO] [stdout] | ^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `first_name::AsStr` defines an item `as_str`, perhaps you need to implement it [INFO] [stdout] --> tests/traits_with_same_name.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub(super) trait AsStr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 41 | assert_eq!(name.0.as_str(), "John"); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_string` found for struct `Name` in the current scope [INFO] [stdout] --> tests/traits_with_same_name.rs:42:21 [INFO] [stdout] | [INFO] [stdout] 34 | struct Name(String); [INFO] [stdout] | ----------- method `as_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 42 | assert_eq!(name.as_string(), "John"); [INFO] [stdout] | ^^^^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `last_name::AsStr` defines an item `as_string`, perhaps you need to implement it [INFO] [stdout] --> tests/traits_with_same_name.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub(super) trait AsStr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 42 | assert_eq!(name.0.as_string(), "John"); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `enum_delegate` [INFO] [stdout] --> tests/generics_in_methods.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use enum_delegate::delegate; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `enum_delegate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `enum_delegate`, use `cargo add enum_delegate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_mut_str` found for struct `FirstName` in the current scope [INFO] [stdout] --> tests/derives_trait.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 31 | struct FirstName(String); [INFO] [stdout] | ---------------- method `as_mut_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 41 | *first_name.as_mut_str() = "Jane".into(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `FirstName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_mut_str`, perhaps you need to implement it [INFO] [stdout] --> tests/derives_trait.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 41 | *first_name.0.as_mut_str() = "Jane".into(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `enum_delegate` [INFO] [stdout] --> tests/methods_lifetimes.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use enum_delegate::delegate; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `enum_delegate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `enum_delegate`, use `cargo add enum_delegate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `enum_delegate` [INFO] [stdout] --> tests/trait_generic_param.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use enum_delegate::delegate; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `enum_delegate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `enum_delegate`, use `cargo add enum_delegate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for struct `FirstName` in the current scope [INFO] [stdout] --> tests/derives_trait.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 31 | struct FirstName(String); [INFO] [stdout] | ---------------- method `as_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 42 | assert_eq!(first_name.as_str(), "Jane"); [INFO] [stdout] | ^^^^^^ method not found in `FirstName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_str`, perhaps you need to implement it [INFO] [stdout] --> tests/derives_trait.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 42 | assert_eq!(first_name.0.as_str(), "Jane"); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `temporary_enum_delegate_codegen_0_3_0` (test "traits_with_same_name") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `trybuild` [INFO] [stdout] --> tests/errors.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | let t = trybuild::TestCases::new(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `trybuild` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `trybuild`, use `cargo add trybuild` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `enum_delegate` [INFO] [stdout] --> tests/impls_for.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use enum_delegate::delegate; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `enum_delegate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `enum_delegate`, use `cargo add enum_delegate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `enum_delegate` [INFO] [stdout] --> tests/unsafe.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use enum_delegate::delegate; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `enum_delegate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `enum_delegate`, use `cargo add enum_delegate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for struct `FirstName` in the current scope [INFO] [stdout] --> tests/derives_trait.rs:43:27 [INFO] [stdout] | [INFO] [stdout] 31 | struct FirstName(String); [INFO] [stdout] | ---------------- method `into_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 43 | assert_eq!(first_name.into_string(), "Jane"); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `FirstName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `into_string`, perhaps you need to implement it [INFO] [stdout] --> tests/derives_trait.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 43 | assert_eq!(first_name.0.into_string(), "Jane"); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `enum_delegate` [INFO] [stdout] --> tests/trait_lifetimes.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use enum_delegate::delegate; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `enum_delegate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `enum_delegate`, use `cargo add enum_delegate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `prepend_string` found for enum `Name` in the current scope [INFO] [stdout] --> tests/generics_in_methods.rs:33:22 [INFO] [stdout] | [INFO] [stdout] 25 | enum Name { [INFO] [stdout] | --------- method `prepend_string` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 33 | assert_eq!(first.prepend_string("apple"), "Bob's apple"); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `PrependString` defines an item `prepend_string`, perhaps you need to implement it [INFO] [stdout] --> tests/generics_in_methods.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait PrependString { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `temporary_enum_delegate_codegen_0_3_0` (test "errors") due to 1 previous error [INFO] [stdout] error[E0432]: unresolved import `enum_delegate` [INFO] [stdout] --> tests/enum_generic_param.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use enum_delegate::delegate; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `enum_delegate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `enum_delegate`, use `cargo add enum_delegate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `prepend_string` found for enum `Name` in the current scope [INFO] [stdout] --> tests/generics_in_methods.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 25 | enum Name { [INFO] [stdout] | --------- method `prepend_string` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 36 | assert_eq!(last.prepend_string("apple"), "Smith's apple"); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `PrependString` defines an item `prepend_string`, perhaps you need to implement it [INFO] [stdout] --> tests/generics_in_methods.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait PrependString { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for struct `FirstName` in the current scope [INFO] [stdout] --> tests/trait_default_method_impls.rs:49:27 [INFO] [stdout] | [INFO] [stdout] 39 | struct FirstName(String); [INFO] [stdout] | ---------------- method `as_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 49 | assert_eq!(first_name.as_str(), "John"); [INFO] [stdout] | ^^^^^^ method not found in `FirstName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_str`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_default_method_impls.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 49 | assert_eq!(first_name.0.as_str(), "John"); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `temporary_enum_delegate_codegen_0_3_0` (test "generics_in_methods") due to 3 previous errors [INFO] [stdout] error[E0599]: no method named `name` found for enum `Users` in the current scope [INFO] [stdout] --> tests/trait_lifetimes.rs:47:21 [INFO] [stdout] | [INFO] [stdout] 39 | enum Users { [INFO] [stdout] | ---------- method `name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 47 | assert_eq!(oleg.name(), "Oleg"); [INFO] [stdout] | ^^^^ method not found in `Users` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `name`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_lifetimes.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | trait User<'s> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_prepended_with_name` found for enum `Users` in the current scope [INFO] [stdout] --> tests/trait_lifetimes.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 39 | enum Users { [INFO] [stdout] | ---------- method `into_prepended_with_name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 48 | assert_eq!(oleg.into_prepended_with_name("apple"), "Oleg's apple"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `into_prepended_with_name`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_lifetimes.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | trait User<'s> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: there is a method `into_either_with` with a similar name [INFO] [stdout] | [INFO] [stdout] 48 - assert_eq!(oleg.into_prepended_with_name("apple"), "Oleg's apple"); [INFO] [stdout] 48 + assert_eq!(oleg.into_either_with("apple"), "Oleg's apple"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_mut_str` found for struct `LastName` in the current scope [INFO] [stdout] --> tests/derives_trait.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 34 | struct LastName { [INFO] [stdout] | --------------- method `as_mut_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 46 | *last_name.as_mut_str() = "Smith".into(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `LastName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_mut_str`, perhaps you need to implement it [INFO] [stdout] --> tests/derives_trait.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 46 | *last_name.name.as_mut_str() = "Smith".into(); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_mut_str` found for struct `FirstName` in the current scope [INFO] [stdout] --> tests/trait_default_method_impls.rs:50:27 [INFO] [stdout] | [INFO] [stdout] 39 | struct FirstName(String); [INFO] [stdout] | ---------------- method `as_mut_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 50 | assert_eq!(first_name.as_mut_str(), "John"); [INFO] [stdout] | ^^^^^^^^^^ method not found in `FirstName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_mut_str`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_default_method_impls.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 50 | assert_eq!(first_name.0.as_mut_str(), "John"); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `name` found for enum `Users` in the current scope [INFO] [stdout] --> tests/trait_lifetimes.rs:51:22 [INFO] [stdout] | [INFO] [stdout] 39 | enum Users { [INFO] [stdout] | ---------- method `name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 51 | assert_eq!(boris.name(), "Boris"); [INFO] [stdout] | ^^^^ method not found in `Users` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `name`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_lifetimes.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | trait User<'s> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_prepended_with_name` found for enum `Users` in the current scope [INFO] [stdout] --> tests/trait_lifetimes.rs:52:22 [INFO] [stdout] | [INFO] [stdout] 39 | enum Users { [INFO] [stdout] | ---------- method `into_prepended_with_name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 52 | assert_eq!(boris.into_prepended_with_name("apple"), "Boris's apple"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `into_prepended_with_name`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_lifetimes.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | trait User<'s> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: there is a method `into_either_with` with a similar name [INFO] [stdout] | [INFO] [stdout] 52 - assert_eq!(boris.into_prepended_with_name("apple"), "Boris's apple"); [INFO] [stdout] 52 + assert_eq!(boris.into_either_with("apple"), "Boris's apple"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for struct `Name` in the current scope [INFO] [stdout] --> tests/unsafe.rs:33:30 [INFO] [stdout] | [INFO] [stdout] 26 | struct Name(String); [INFO] [stdout] | ----------- method `as_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 33 | assert_eq!(unsafe { name.as_str() }, "John"); [INFO] [stdout] | ^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsStr` defines an item `as_str`, perhaps you need to implement it [INFO] [stdout] --> tests/unsafe.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsStr { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 33 | assert_eq!(unsafe { name.0.as_str() }, "John"); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for struct `LastName` in the current scope [INFO] [stdout] --> tests/derives_trait.rs:47:26 [INFO] [stdout] | [INFO] [stdout] 34 | struct LastName { [INFO] [stdout] | --------------- method `as_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 47 | assert_eq!(last_name.as_str(), "Smith"); [INFO] [stdout] | ^^^^^^ method not found in `LastName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_str`, perhaps you need to implement it [INFO] [stdout] --> tests/derives_trait.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 47 | assert_eq!(last_name.name.as_str(), "Smith"); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for struct `FirstName` in the current scope [INFO] [stdout] --> tests/trait_default_method_impls.rs:51:27 [INFO] [stdout] | [INFO] [stdout] 39 | struct FirstName(String); [INFO] [stdout] | ---------------- method `into_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 51 | assert_eq!(first_name.into_string(), "John"); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `FirstName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `into_string`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_default_method_impls.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 51 | assert_eq!(first_name.0.into_string(), "John"); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_string` found for struct `Name` in the current scope [INFO] [stdout] --> tests/unsafe.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 26 | struct Name(String); [INFO] [stdout] | ----------- method `as_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 41 | assert_eq!(name.as_string(), "John"); [INFO] [stdout] | ^^^^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_string`, perhaps you need to implement it [INFO] [stdout] --> tests/unsafe.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | unsafe trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 41 | assert_eq!(name.0.as_string(), "John"); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `name` found for enum `Users` in the current scope [INFO] [stdout] --> tests/trait_generic_param.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 23 | enum Users { [INFO] [stdout] | ---------- method `name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 61 | assert_eq!(oleg.name(), "Oleg"); [INFO] [stdout] | ^^^^ method not found in `Users` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Named` defines an item `name`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_generic_param.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | trait Named [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for struct `LastName` in the current scope [INFO] [stdout] --> tests/derives_trait.rs:48:26 [INFO] [stdout] | [INFO] [stdout] 34 | struct LastName { [INFO] [stdout] | --------------- method `into_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 48 | assert_eq!(last_name.into_string(), "Smith"); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `LastName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `into_string`, perhaps you need to implement it [INFO] [stdout] --> tests/derives_trait.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 48 | assert_eq!(last_name.name.into_string(), "Smith"); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `temporary_enum_delegate_codegen_0_3_0` (test "trait_lifetimes") due to 5 previous errors [INFO] [stdout] error[E0599]: no method named `name` found for enum `Users` in the current scope [INFO] [stdout] --> tests/methods_lifetimes.rs:77:21 [INFO] [stdout] | [INFO] [stdout] 69 | enum Users { [INFO] [stdout] | ---------- method `name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 77 | assert_eq!(oleg.name(), "Oleg"); [INFO] [stdout] | ^^^^ method not found in `Users` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `name`, perhaps you need to implement it [INFO] [stdout] --> tests/methods_lifetimes.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `temporary_enum_delegate_codegen_0_3_0` (test "unsafe") due to 3 previous errors [INFO] [stdout] error[E0599]: no method named `as_str` found for struct `LastName` in the current scope [INFO] [stdout] --> tests/trait_default_method_impls.rs:54:26 [INFO] [stdout] | [INFO] [stdout] 42 | struct LastName { [INFO] [stdout] | --------------- method `as_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 54 | assert_eq!(last_name.as_str(), "default impl"); [INFO] [stdout] | ^^^^^^ method not found in `LastName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_str`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_default_method_impls.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 54 | assert_eq!(last_name.name.as_str(), "default impl"); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `name` found for enum `Users` in the current scope [INFO] [stdout] --> tests/trait_generic_param.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 23 | enum Users { [INFO] [stdout] | ---------- method `name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 68 | assert_eq!(boris.name(), "Boris"); [INFO] [stdout] | ^^^^ method not found in `Users` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Named` defines an item `name`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_generic_param.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | trait Named [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `version` found for enum `Users` in the current scope [INFO] [stdout] --> tests/trait_generic_param.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 23 | enum Users { [INFO] [stdout] | ---------- method `version` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 74 | assert_eq!(oleg.version(), "UserOleg v2"); [INFO] [stdout] | ^^^^^^^ method not found in `Users` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Versioned` defines an item `version`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_generic_param.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | trait Versioned { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_mut_str` found for struct `LastName` in the current scope [INFO] [stdout] --> tests/trait_default_method_impls.rs:55:26 [INFO] [stdout] | [INFO] [stdout] 42 | struct LastName { [INFO] [stdout] | --------------- method `as_mut_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 55 | assert_eq!(last_name.as_mut_str(), "default impl"); [INFO] [stdout] | ^^^^^^^^^^ method not found in `LastName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_mut_str`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_default_method_impls.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 55 | assert_eq!(last_name.name.as_mut_str(), "default impl"); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `prepended_with_name` found for enum `Users` in the current scope [INFO] [stdout] --> tests/methods_lifetimes.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 69 | enum Users { [INFO] [stdout] | ---------- method `prepended_with_name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 78 | assert_eq!(oleg.prepended_with_name("apple"), "Oleg's apple"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `Users` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `prepended_with_name`, perhaps you need to implement it [INFO] [stdout] --> tests/methods_lifetimes.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `temporary_enum_delegate_codegen_0_3_0` (test "trait_generic_param") due to 5 previous errors [INFO] [stdout] error[E0599]: no method named `as_mut_str` found for enum `Name` in the current scope [INFO] [stdout] --> tests/derives_trait.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 25 | enum Name { [INFO] [stdout] | --------- method `as_mut_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 54 | *first_name.as_mut_str() = "Jane".into(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_mut_str`, perhaps you need to implement it [INFO] [stdout] --> tests/derives_trait.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_mut_str` found for struct `FirstName` in the current scope [INFO] [stdout] --> tests/impls_for.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 31 | struct FirstName(String); [INFO] [stdout] | ---------------- method `as_mut_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 41 | *first_name.as_mut_str() = "Jane".into(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `FirstName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_mut_str`, perhaps you need to implement it [INFO] [stdout] --> tests/impls_for.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 41 | *first_name.0.as_mut_str() = "Jane".into(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `name` found for enum `EitherUser` in the current scope [INFO] [stdout] --> tests/enum_generic_param.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 34 | enum EitherUser { [INFO] [stdout] | --------------------- method `name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 67 | assert_eq!(oleg.name(), "Oleg"); [INFO] [stdout] | ^^^^ method not found in `EitherUser` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `name`, perhaps you need to implement it [INFO] [stdout] --> tests/enum_generic_param.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | trait User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for struct `FirstName` in the current scope [INFO] [stdout] --> tests/impls_for.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 31 | struct FirstName(String); [INFO] [stdout] | ---------------- method `as_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 42 | assert_eq!(first_name.as_str(), "Jane"); [INFO] [stdout] | ^^^^^^ method not found in `FirstName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_str`, perhaps you need to implement it [INFO] [stdout] --> tests/impls_for.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 42 | assert_eq!(first_name.0.as_str(), "Jane"); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `version` found for enum `Users` in the current scope [INFO] [stdout] --> tests/trait_generic_param.rs:81:22 [INFO] [stdout] | [INFO] [stdout] 23 | enum Users { [INFO] [stdout] | ---------- method `version` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 81 | assert_eq!(boris.version(), "UserBoris v2"); [INFO] [stdout] | ^^^^^^^ method not found in `Users` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Versioned` defines an item `version`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_generic_param.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | trait Versioned { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `prepend_with_name` found for enum `Users` in the current scope [INFO] [stdout] --> tests/methods_lifetimes.rs:80:14 [INFO] [stdout] | [INFO] [stdout] 69 | enum Users { [INFO] [stdout] | ---------- method `prepend_with_name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 80 | oleg.prepend_with_name(&mut String::from("orange")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ method not found in `Users` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `prepend_with_name`, perhaps you need to implement it [INFO] [stdout] --> tests/methods_lifetimes.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for struct `LastName` in the current scope [INFO] [stdout] --> tests/trait_default_method_impls.rs:56:26 [INFO] [stdout] | [INFO] [stdout] 42 | struct LastName { [INFO] [stdout] | --------------- method `into_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 56 | assert_eq!(last_name.into_string(), "default impl"); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `LastName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `into_string`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_default_method_impls.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 56 | assert_eq!(last_name.name.into_string(), "default impl"); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `name` found for enum `EitherUser` in the current scope [INFO] [stdout] --> tests/enum_generic_param.rs:70:22 [INFO] [stdout] | [INFO] [stdout] 34 | enum EitherUser { [INFO] [stdout] | --------------------- method `name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 70 | assert_eq!(boris.name(), "Boris"); [INFO] [stdout] | ^^^^ method not found in `EitherUser` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `name`, perhaps you need to implement it [INFO] [stdout] --> tests/enum_generic_param.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | trait User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for struct `FirstName` in the current scope [INFO] [stdout] --> tests/impls_for.rs:43:27 [INFO] [stdout] | [INFO] [stdout] 31 | struct FirstName(String); [INFO] [stdout] | ---------------- method `into_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 43 | assert_eq!(first_name.into_string(), "Jane"); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `FirstName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `into_string`, perhaps you need to implement it [INFO] [stdout] --> tests/impls_for.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 43 | assert_eq!(first_name.0.into_string(), "Jane"); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for enum `Name` in the current scope [INFO] [stdout] --> tests/derives_trait.rs:55:27 [INFO] [stdout] | [INFO] [stdout] 25 | enum Name { [INFO] [stdout] | --------- method `as_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 55 | assert_eq!(first_name.as_str(), "Jane"); [INFO] [stdout] | ^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_str`, perhaps you need to implement it [INFO] [stdout] --> tests/derives_trait.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_mut_str` found for struct `LastName` in the current scope [INFO] [stdout] --> tests/impls_for.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 34 | struct LastName { [INFO] [stdout] | --------------- method `as_mut_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 46 | *last_name.as_mut_str() = "Smith".into(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `LastName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_mut_str`, perhaps you need to implement it [INFO] [stdout] --> tests/impls_for.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 46 | *last_name.name.as_mut_str() = "Smith".into(); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `name` found for enum `GenericUser` in the current scope [INFO] [stdout] --> tests/enum_generic_param.rs:76:21 [INFO] [stdout] | [INFO] [stdout] 40 | enum GenericUser [INFO] [stdout] | -------------------------------------------- method `name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 76 | assert_eq!(oleg.name(), "Oleg"); [INFO] [stdout] | ^^^^ method not found in `GenericUser<1, 2>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `name`, perhaps you need to implement it [INFO] [stdout] --> tests/enum_generic_param.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | trait User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for enum `Name` in the current scope [INFO] [stdout] --> tests/derives_trait.rs:56:27 [INFO] [stdout] | [INFO] [stdout] 25 | enum Name { [INFO] [stdout] | --------- method `into_string` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 56 | assert_eq!(first_name.into_string(), "Jane"); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `into_string`, perhaps you need to implement it [INFO] [stdout] --> tests/derives_trait.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for enum `Name` in the current scope [INFO] [stdout] --> tests/trait_default_method_impls.rs:62:27 [INFO] [stdout] | [INFO] [stdout] 33 | enum Name { [INFO] [stdout] | --------- method `as_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 62 | assert_eq!(first_name.as_str(), "John"); [INFO] [stdout] | ^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_str`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_default_method_impls.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for struct `LastName` in the current scope [INFO] [stdout] --> tests/impls_for.rs:47:26 [INFO] [stdout] | [INFO] [stdout] 34 | struct LastName { [INFO] [stdout] | --------------- method `as_str` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 47 | assert_eq!(last_name.as_str(), "Smith"); [INFO] [stdout] | ^^^^^^ method not found in `LastName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_str`, perhaps you need to implement it [INFO] [stdout] --> tests/impls_for.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 47 | assert_eq!(last_name.name.as_str(), "Smith"); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `prepend_name_to` found for enum `Users` in the current scope [INFO] [stdout] --> tests/methods_lifetimes.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 69 | enum Users { [INFO] [stdout] | ---------- method `prepend_name_to` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 85 | oleg.prepend_name_to(&mut orange); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `Users` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `prepend_name_to`, perhaps you need to implement it [INFO] [stdout] --> tests/methods_lifetimes.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `name` found for enum `GenericUser` in the current scope [INFO] [stdout] --> tests/enum_generic_param.rs:80:22 [INFO] [stdout] | [INFO] [stdout] 40 | enum GenericUser [INFO] [stdout] | -------------------------------------------- method `name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 80 | assert_eq!(boris.name(), "Boris"); [INFO] [stdout] | ^^^^ method not found in `GenericUser<1, 2>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `name`, perhaps you need to implement it [INFO] [stdout] --> tests/enum_generic_param.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | trait User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for struct `LastName` in the current scope [INFO] [stdout] --> tests/impls_for.rs:48:26 [INFO] [stdout] | [INFO] [stdout] 34 | struct LastName { [INFO] [stdout] | --------------- method `into_string` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 48 | assert_eq!(last_name.into_string(), "Smith"); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `LastName` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `into_string`, perhaps you need to implement it [INFO] [stdout] --> tests/impls_for.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 48 | assert_eq!(last_name.name.into_string(), "Smith"); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_mut_str` found for enum `Name` in the current scope [INFO] [stdout] --> tests/trait_default_method_impls.rs:63:27 [INFO] [stdout] | [INFO] [stdout] 33 | enum Name { [INFO] [stdout] | --------- method `as_mut_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 63 | assert_eq!(first_name.as_mut_str(), "John"); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_mut_str`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_default_method_impls.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_mut_str` found for enum `Name` in the current scope [INFO] [stdout] --> tests/derives_trait.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 25 | enum Name { [INFO] [stdout] | --------- method `as_mut_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 61 | *last_name.as_mut_str() = "Smith".into(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_mut_str`, perhaps you need to implement it [INFO] [stdout] --> tests/derives_trait.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for enum `Name` in the current scope [INFO] [stdout] --> tests/trait_default_method_impls.rs:64:27 [INFO] [stdout] | [INFO] [stdout] 33 | enum Name { [INFO] [stdout] | --------- method `into_string` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 64 | assert_eq!(first_name.into_string(), "John"); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `into_string`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_default_method_impls.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for enum `Name` in the current scope [INFO] [stdout] --> tests/derives_trait.rs:62:26 [INFO] [stdout] | [INFO] [stdout] 25 | enum Name { [INFO] [stdout] | --------- method `as_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 62 | assert_eq!(last_name.as_str(), "Smith"); [INFO] [stdout] | ^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_str`, perhaps you need to implement it [INFO] [stdout] --> tests/derives_trait.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_mut_str` found for enum `Name` in the current scope [INFO] [stdout] --> tests/impls_for.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 25 | enum Name { [INFO] [stdout] | --------- method `as_mut_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 54 | *first_name.as_mut_str() = "Jane".to_string(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_mut_str`, perhaps you need to implement it [INFO] [stdout] --> tests/impls_for.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for enum `Name` in the current scope [INFO] [stdout] --> tests/impls_for.rs:55:27 [INFO] [stdout] | [INFO] [stdout] 25 | enum Name { [INFO] [stdout] | --------- method `as_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 55 | assert_eq!(first_name.as_str(), "Jane"); [INFO] [stdout] | ^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_str`, perhaps you need to implement it [INFO] [stdout] --> tests/impls_for.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for enum `Name` in the current scope [INFO] [stdout] --> tests/trait_default_method_impls.rs:69:26 [INFO] [stdout] | [INFO] [stdout] 33 | enum Name { [INFO] [stdout] | --------- method `as_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 69 | assert_eq!(last_name.as_str(), "default impl"); [INFO] [stdout] | ^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_str`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_default_method_impls.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for enum `Name` in the current scope [INFO] [stdout] --> tests/derives_trait.rs:63:26 [INFO] [stdout] | [INFO] [stdout] 25 | enum Name { [INFO] [stdout] | --------- method `into_string` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 63 | assert_eq!(last_name.into_string(), "Smith"); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `into_string`, perhaps you need to implement it [INFO] [stdout] --> tests/derives_trait.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `temporary_enum_delegate_codegen_0_3_0` (test "enum_generic_param") due to 5 previous errors [INFO] [stderr] error: could not compile `temporary_enum_delegate_codegen_0_3_0` (test "derives_trait") due to 13 previous errors [INFO] [stdout] error[E0599]: no method named `into_string` found for enum `Name` in the current scope [INFO] [stdout] --> tests/impls_for.rs:56:27 [INFO] [stdout] | [INFO] [stdout] 25 | enum Name { [INFO] [stdout] | --------- method `into_string` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 56 | assert_eq!(first_name.into_string(), "Jane"); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `into_string`, perhaps you need to implement it [INFO] [stdout] --> tests/impls_for.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_mut_str` found for enum `Name` in the current scope [INFO] [stdout] --> tests/trait_default_method_impls.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 33 | enum Name { [INFO] [stdout] | --------- method `as_mut_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 70 | assert_eq!(last_name.as_mut_str(), "default impl"); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_mut_str`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_default_method_impls.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_mut_str` found for enum `Name` in the current scope [INFO] [stdout] --> tests/impls_for.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 25 | enum Name { [INFO] [stdout] | --------- method `as_mut_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 61 | *last_name.as_mut_str() = "Smith".into(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_mut_str`, perhaps you need to implement it [INFO] [stdout] --> tests/impls_for.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for enum `Name` in the current scope [INFO] [stdout] --> tests/trait_default_method_impls.rs:71:26 [INFO] [stdout] | [INFO] [stdout] 33 | enum Name { [INFO] [stdout] | --------- method `into_string` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 71 | assert_eq!(last_name.into_string(), "default impl"); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `into_string`, perhaps you need to implement it [INFO] [stdout] --> tests/trait_default_method_impls.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `temporary_enum_delegate_codegen_0_3_0` (test "trait_default_method_impls") due to 13 previous errors [INFO] [stdout] error[E0599]: no method named `as_str` found for enum `Name` in the current scope [INFO] [stdout] --> tests/impls_for.rs:62:26 [INFO] [stdout] | [INFO] [stdout] 25 | enum Name { [INFO] [stdout] | --------- method `as_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 62 | assert_eq!(last_name.as_str(), "Smith"); [INFO] [stdout] | ^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `as_str`, perhaps you need to implement it [INFO] [stdout] --> tests/impls_for.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_string` found for enum `Name` in the current scope [INFO] [stdout] --> tests/impls_for.rs:63:26 [INFO] [stdout] | [INFO] [stdout] 25 | enum Name { [INFO] [stdout] | --------- method `into_string` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 63 | assert_eq!(last_name.into_string(), "Smith"); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Name` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsString` defines an item `into_string`, perhaps you need to implement it [INFO] [stdout] --> tests/impls_for.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait AsString { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `temporary_enum_delegate_codegen_0_3_0` (test "impls_for") due to 13 previous errors [INFO] [stdout] error[E0599]: no method named `into_prepended_with_name` found for enum `Users` in the current scope [INFO] [stdout] --> tests/methods_lifetimes.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 69 | enum Users { [INFO] [stdout] | ---------- method `into_prepended_with_name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 87 | assert_eq!(oleg.into_prepended_with_name("apple"), "Oleg's apple"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `into_prepended_with_name`, perhaps you need to implement it [INFO] [stdout] --> tests/methods_lifetimes.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] help: there is a method `into_either_with` with a similar name [INFO] [stdout] | [INFO] [stdout] 87 - assert_eq!(oleg.into_prepended_with_name("apple"), "Oleg's apple"); [INFO] [stdout] 87 + assert_eq!(oleg.into_either_with("apple"), "Oleg's apple"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `name` found for enum `Users` in the current scope [INFO] [stdout] --> tests/methods_lifetimes.rs:90:22 [INFO] [stdout] | [INFO] [stdout] 69 | enum Users { [INFO] [stdout] | ---------- method `name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 90 | assert_eq!(boris.name(), "Boris"); [INFO] [stdout] | ^^^^ method not found in `Users` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `name`, perhaps you need to implement it [INFO] [stdout] --> tests/methods_lifetimes.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `prepended_with_name` found for enum `Users` in the current scope [INFO] [stdout] --> tests/methods_lifetimes.rs:91:22 [INFO] [stdout] | [INFO] [stdout] 69 | enum Users { [INFO] [stdout] | ---------- method `prepended_with_name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 91 | assert_eq!(boris.prepended_with_name("apple"), "Boris's apple"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `Users` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `prepended_with_name`, perhaps you need to implement it [INFO] [stdout] --> tests/methods_lifetimes.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `prepend_with_name` found for enum `Users` in the current scope [INFO] [stdout] --> tests/methods_lifetimes.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 69 | enum Users { [INFO] [stdout] | ---------- method `prepend_with_name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 93 | boris.prepend_with_name(&mut String::from("orange")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ method not found in `Users` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `prepend_with_name`, perhaps you need to implement it [INFO] [stdout] --> tests/methods_lifetimes.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `prepend_name_to` found for enum `Users` in the current scope [INFO] [stdout] --> tests/methods_lifetimes.rs:98:11 [INFO] [stdout] | [INFO] [stdout] 69 | enum Users { [INFO] [stdout] | ---------- method `prepend_name_to` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 98 | boris.prepend_name_to(&mut orange); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `Users` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `prepend_name_to`, perhaps you need to implement it [INFO] [stdout] --> tests/methods_lifetimes.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_prepended_with_name` found for enum `Users` in the current scope [INFO] [stdout] --> tests/methods_lifetimes.rs:100:22 [INFO] [stdout] | [INFO] [stdout] 69 | enum Users { [INFO] [stdout] | ---------- method `into_prepended_with_name` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 100 | assert_eq!(boris.into_prepended_with_name("apple"), "Boris's apple"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `User` defines an item `into_prepended_with_name`, perhaps you need to implement it [INFO] [stdout] --> tests/methods_lifetimes.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | trait User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] help: there is a method `into_either_with` with a similar name [INFO] [stdout] | [INFO] [stdout] 100 - assert_eq!(boris.into_prepended_with_name("apple"), "Boris's apple"); [INFO] [stdout] 100 + assert_eq!(boris.into_either_with("apple"), "Boris's apple"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `temporary_enum_delegate_codegen_0_3_0` (test "methods_lifetimes") due to 11 previous errors [INFO] running `Command { std: "docker" "inspect" "1ddbb168414fd1528af1b5870902cf306c8a49681bb74eed3c524d704911a8a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ddbb168414fd1528af1b5870902cf306c8a49681bb74eed3c524d704911a8a8", kill_on_drop: false }` [INFO] [stdout] 1ddbb168414fd1528af1b5870902cf306c8a49681bb74eed3c524d704911a8a8