[INFO] fetching crate ambassador 0.4.1... [INFO] testing ambassador-0.4.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate ambassador 0.4.1 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate ambassador 0.4.1 [INFO] finished tweaking crates.io crate ambassador 0.4.1 [INFO] tweaked toml for crates.io crate ambassador 0.4.1 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate ambassador 0.4.1 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 58 packages to latest compatible versions [INFO] [stderr] Adding compiletest_rs v0.8.0 (available: v0.11.2) [INFO] [stderr] Adding itertools v0.10.5 (available: v0.14.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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 749e574d033f61a0696d6ec35fae04e6b35e559e9e174ef51d56f88832aee699 [INFO] running `Command { std: "docker" "start" "-a" "749e574d033f61a0696d6ec35fae04e6b35e559e9e174ef51d56f88832aee699", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "749e574d033f61a0696d6ec35fae04e6b35e559e9e174ef51d56f88832aee699", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "749e574d033f61a0696d6ec35fae04e6b35e559e9e174ef51d56f88832aee699", kill_on_drop: false }` [INFO] [stdout] 749e574d033f61a0696d6ec35fae04e6b35e559e9e174ef51d56f88832aee699 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 19efee0ec7ead34171889f504508d91f34d8bc6f9f69976ad863432ec7c7373e [INFO] running `Command { std: "docker" "start" "-a" "19efee0ec7ead34171889f504508d91f34d8bc6f9f69976ad863432ec7c7373e", kill_on_drop: false }` [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling ambassador v0.4.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.42s [INFO] running `Command { std: "docker" "inspect" "19efee0ec7ead34171889f504508d91f34d8bc6f9f69976ad863432ec7c7373e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19efee0ec7ead34171889f504508d91f34d8bc6f9f69976ad863432ec7c7373e", kill_on_drop: false }` [INFO] [stdout] 19efee0ec7ead34171889f504508d91f34d8bc6f9f69976ad863432ec7c7373e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f48627e6a63510ce32be07f440c87c3de8c9f8c1c22eb4777e54c42a995ef2d1 [INFO] running `Command { std: "docker" "start" "-a" "f48627e6a63510ce32be07f440c87c3de8c9f8c1c22eb4777e54c42a995ef2d1", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling compiletest_rs v0.8.0 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling getopts v0.2.24 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling filetime v0.2.26 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling tester v0.9.1 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling ambassador v0.4.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling rustfix v0.6.1 [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 18.10s [INFO] running `Command { std: "docker" "inspect" "f48627e6a63510ce32be07f440c87c3de8c9f8c1c22eb4777e54c42a995ef2d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f48627e6a63510ce32be07f440c87c3de8c9f8c1c22eb4777e54c42a995ef2d1", kill_on_drop: false }` [INFO] [stdout] f48627e6a63510ce32be07f440c87c3de8c9f8c1c22eb4777e54c42a995ef2d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2d0b53b9abfbf8c3da62a24d27f1755d2e6675e10a898879344eeb4d8bdf8f02 [INFO] running `Command { std: "docker" "start" "-a" "2d0b53b9abfbf8c3da62a24d27f1755d2e6675e10a898879344eeb4d8bdf8f02", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ambassador-668a91de36052736) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/compiletest.rs (/opt/rustwide/target/debug/deps/compiletest-e50f236915b95aa2) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] [INFO] [stdout] running 46 tests [INFO] [stdout] test [run-pass] run-pass/delegate_to_method_g_and_at.rs ... FAILED [INFO] [stdout] test [compile-fail] compile-fail/delegatable_trait.rs ... FAILED [INFO] [stdout] test [compile-fail] compile-fail/delegate_to_method_where.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/delegate_self.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/associated_types.rs ... FAILED [INFO] [stdout] test [compile-fail] compile-fail/delegate_to_method.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/auto_where_clause.rs ... FAILED [INFO] [stdout] test [compile-fail] compile-fail/extra_args_in_delegate_attr.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/const_generic.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/async.rs ... FAILED [INFO] [stdout] test [compile-fail] compile-fail/enum_associated_types.rs ... FAILED [INFO] [stdout] test [compile-fail] compile-fail/generic_trait_bad_where.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/delegate_remote.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/delegate_to_methods_in_trait_impl.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/delegate_to_methods.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/delegate_trait_remote_display.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/cfg.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/delegate_to_methods_dyn_works.rs ... FAILED [INFO] [stdout] test [compile-fail] compile-fail/single_field_struct.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/derive_and_trait_in_modules.rs ... FAILED [INFO] [stdout] test [compile-fail] compile-fail/enum_associated_constant.rs ... FAILED [INFO] [stdout] test [compile-fail] compile-fail/missing_delegate_attribute.rs ... FAILED [INFO] [stdout] test [compile-fail] compile-fail/taxonomy_fail.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/delegate_to_remote_methods.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/delegate_to_remote_methods_on_remote_type.rs ... FAILED [INFO] [stdout] test [compile-fail] compile-fail/delegate_to_missing_method.rs ... FAILED [INFO] [stdout] test [compile-fail] compile-fail/delegate_self_fail.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/derive_in_module.rs ... FAILED [INFO] [stdout] test [compile-fail] compile-fail/muti_field_struct.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/enum_associated_types.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/generic_enum.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/gat.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/double_generics.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/generic_struct.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/generic_trait_any.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/generic_method.rs ... FAILED [INFO] [stdout] test [compile-fail] compile-fail/extra_items_in_remote_methods_impl.rs ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [compile-fail] compile-fail/delegatable_trait.rs [INFO] [stdout] [compile-fail] compile-fail/delegate_self_fail.rs [INFO] [stdout] [compile-fail] compile-fail/delegate_to_method.rs [INFO] [stdout] [compile-fail] compile-fail/delegate_to_method_where.rs [INFO] [stdout] [compile-fail] compile-fail/delegate_to_missing_method.rs [INFO] [stdout] [compile-fail] compile-fail/enum_associated_constant.rs [INFO] [stdout] [compile-fail] compile-fail/enum_associated_types.rs [INFO] [stdout] [compile-fail] compile-fail/extra_args_in_delegate_attr.rs [INFO] [stdout] [compile-fail] compile-fail/extra_items_in_remote_methods_impl.rs [INFO] [stdout] [compile-fail] compile-fail/generic_trait_bad_where.rs [INFO] [stdout] [compile-fail] compile-fail/missing_delegate_attribute.rs [INFO] [stdout] [compile-fail] compile-fail/muti_field_struct.rs [INFO] [stdout] [compile-fail] compile-fail/single_field_struct.rs [INFO] [stdout] [compile-fail] compile-fail/taxonomy_fail.rs [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 14 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.16s [INFO] [stdout] [INFO] [stdout] test compile_fail ... FAILED [INFO] [stdout] test [run-pass] run-pass/generic_trait_complex.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/enum_associated_constant.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/inhibit_where_clause.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/method_mut_ref_self.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/generic_trait_lifetime.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/generic_tuple_struct.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/late_bound_lifetime.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/method_self.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/method_single_arg.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/single_trait_single_method.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/muti-feature.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/single_variant.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/generic_trait_single_type.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/method_ref_self.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/struct_field_target.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/struct_single_field_target.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/two_enums.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/struct_single_field.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/tuple_struct_single_field.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/taxonomy.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/tuple_struct_target.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/where_clause_split.rs ... FAILED [INFO] [stdout] test [run-pass] run-pass/where_clause.rs ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [run-pass] run-pass/associated_types.rs [INFO] [stdout] [run-pass] run-pass/async.rs [INFO] [stdout] [run-pass] run-pass/auto_where_clause.rs [INFO] [stdout] [run-pass] run-pass/cfg.rs [INFO] [stdout] [run-pass] run-pass/const_generic.rs [INFO] [stdout] [run-pass] run-pass/delegate_remote.rs [INFO] [stdout] [run-pass] run-pass/delegate_self.rs [INFO] [stdout] [run-pass] run-pass/delegate_to_method_g_and_at.rs [INFO] [stdout] [run-pass] run-pass/delegate_to_methods.rs [INFO] [stdout] [run-pass] run-pass/delegate_to_methods_dyn_works.rs [INFO] [stdout] [run-pass] run-pass/delegate_to_methods_in_trait_impl.rs [INFO] [stdout] [run-pass] run-pass/delegate_to_remote_methods.rs [INFO] [stdout] [run-pass] run-pass/delegate_to_remote_methods_on_remote_type.rs [INFO] [stdout] [run-pass] run-pass/delegate_trait_remote_display.rs [INFO] [stdout] [run-pass] run-pass/derive_and_trait_in_modules.rs [INFO] [stdout] [run-pass] run-pass/derive_in_module.rs [INFO] [stdout] [run-pass] run-pass/double_generics.rs [INFO] [stdout] [run-pass] run-pass/enum_associated_constant.rs [INFO] [stdout] [run-pass] run-pass/enum_associated_types.rs [INFO] [stdout] [run-pass] run-pass/gat.rs [INFO] [stdout] [run-pass] run-pass/generic_enum.rs [INFO] [stdout] [run-pass] run-pass/generic_method.rs [INFO] [stdout] [run-pass] run-pass/generic_struct.rs [INFO] [stdout] [run-pass] run-pass/generic_trait_any.rs [INFO] [stdout] [run-pass] run-pass/generic_trait_complex.rs [INFO] [stdout] [run-pass] run-pass/generic_trait_lifetime.rs [INFO] [stdout] [run-pass] run-pass/generic_trait_single_type.rs [INFO] [stdout] [run-pass] run-pass/generic_tuple_struct.rs [INFO] [stdout] [run-pass] run-pass/inhibit_where_clause.rs [INFO] [stdout] [run-pass] run-pass/late_bound_lifetime.rs [INFO] [stdout] [run-pass] run-pass/method_mut_ref_self.rs [INFO] [stdout] [run-pass] run-pass/method_ref_self.rs [INFO] [stdout] [run-pass] run-pass/method_self.rs [INFO] [stdout] [run-pass] run-pass/method_single_arg.rs [INFO] [stdout] [run-pass] run-pass/muti-feature.rs [INFO] [stdout] [run-pass] run-pass/single_trait_single_method.rs [INFO] [stdout] [run-pass] run-pass/single_variant.rs [INFO] [stdout] [run-pass] run-pass/struct_field_target.rs [INFO] [stdout] [run-pass] run-pass/struct_single_field.rs [INFO] [stdout] [run-pass] run-pass/struct_single_field_target.rs [INFO] [stdout] [run-pass] run-pass/taxonomy.rs [INFO] [stdout] [run-pass] run-pass/tuple_struct_single_field.rs [INFO] [stdout] [run-pass] run-pass/tuple_struct_target.rs [INFO] [stdout] [run-pass] run-pass/two_enums.rs [INFO] [stdout] [run-pass] run-pass/where_clause.rs [INFO] [stdout] [run-pass] run-pass/where_clause_split.rs [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 46 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.87s [INFO] [stdout] [INFO] [stdout] test run_pass ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- compile_fail stdout ---- [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegatable_trait.rs:1: unexpected error: '1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegatable_trait.rs:7: expected message not found: method must have a receiver [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegatable_trait.rs:9: expected message not found: method's receiver type is not supported [INFO] [stdout] [INFO] [stdout] error: 1 unexpected errors found, 2 expected errors not found [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/compile-fail/delegatable_trait.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/delegatable_trait.stage-id" "-A" "unused" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/delegatable_trait.stage-id.aux" [INFO] [stdout] unexpected errors (from JSON output): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 1, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] not found errors (from test file): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 7, [INFO] [stdout] kind: None, [INFO] [stdout] msg: "method must have a receiver", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 9, [INFO] [stdout] kind: None, [INFO] [stdout] msg: "method's receiver type is not supported", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] thread '[compile-fail] compile-fail/delegatable_trait.rs' (29) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13: [INFO] [stdout] explicit panic [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::libunwind::trace::h589a96ef7638b383 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::trace_unsynchronized::h23a30a7548c40de4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64277ecb5bd2 - std::sys::backtrace::_print_fmt::h87dabd6535c8c07a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64277ecb5bd2 - ::fmt::hffd20ad4e5eca8ab [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64277ecc73af - core::fmt::rt::Argument::fmt::h75c83e3fd5ce2419 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64277ecc73af - core::fmt::write::h6d9d3a7cfd7b84f5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x64277ec7d143 - std::io::default_write_fmt::he11a713685e2464d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64277ec7d143 - std::io::Write::write_fmt::h9d08f7e050bd2612 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x64277ec8a602 - std::sys::backtrace::BacktraceLock::print::hb28797143397220e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64277ec9039f - std::panicking::default_hook::{{closure}}::h7555113b62983743 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x64277ec90231 - std::panicking::default_hook::h2714b564abe8d914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x64277e82002e - as core::ops::function::Fn>::call::h0e9de8cceb22406e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x64277e82002e - test::test_main_with_exit_callback::{{closure}}::h8125bd66cf4739d0 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64277ec90aee - as core::ops::function::Fn>::call::h1fd0a0802eaec16b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x64277ec90aee - std::panicking::panic_with_hook::h190dc82263685ec5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x64277ec900ac - std::panicking::begin_panic::{{closure}}::h371cca45440e6abf [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:771:9 [INFO] [stdout] 16: 0x64277ec8a749 - std::sys::backtrace::__rust_end_short_backtrace::h9b3a6b121b8c060d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x64277ec9007e - std::panicking::begin_panic::h3af9d90983463902 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:770:5 [INFO] [stdout] 18: 0x64277e89753c - compiletest_rs::runtest::TestCx::check_expected_errors::h0e4d6a35760f7cc9 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13 [INFO] [stdout] 19: 0x64277e88a766 - compiletest_rs::runtest::TestCx::run_cfail_test::h655c83d667fef8ab [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:179:18 [INFO] [stdout] 20: 0x64277e8875ec - compiletest_rs::runtest::TestCx::run_revision::hc46338075548c65f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:131:31 [INFO] [stdout] 21: 0x64277e883c5f - compiletest_rs::runtest::run::h5fe3c976d8b40e9f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:83:17 [INFO] [stdout] 22: 0x64277e844f38 - compiletest_rs::make_test_closure::{{closure}}::h54edfd52e1527495 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:323:9 [INFO] [stdout] 23: 0x64277e8de4be - core::ops::function::FnOnce::call_once{{vtable.shim}}::hab47b15b3f95800a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 25: 0x64277ebd5564 - tester::__rust_begin_short_backtrace::h5150244038661dbc [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:516:5 [INFO] [stdout] 26: 0x64277ebd8b83 - tester::run_test::{{closure}}::hff34ea2bc503449b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:500:34 [INFO] [stdout] 27: 0x64277ebfcc38 - core::ops::function::FnOnce::call_once{{vtable.shim}}::he9b78dc7136dc8fb [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 28: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 29: 0x64277ebebe14 - as core::ops::function::FnOnce<()>>::call_once::h30f0b0eed8e482da [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 30: 0x64277ebde2ed - std::panicking::catch_unwind::do_call::h293b0844e3279831 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x64277ec20d1b - __rust_try [INFO] [stdout] 32: 0x64277ec1c01a - std::panicking::catch_unwind::h58b0fc39e40b1d57 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 33: 0x64277ec1c01a - std::panic::catch_unwind::hc4ed729524bce718 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 34: 0x64277ebd3995 - tester::run_test_in_process::h06dd2fae10c47743 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:539:18 [INFO] [stdout] 35: 0x64277ebd7e01 - tester::run_test::run_test_inner::{{closure}}::heefffadb11465e2b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:449:39 [INFO] [stdout] 36: 0x64277ec10786 - std::sys::backtrace::__rust_begin_short_backtrace::h94cd439659c5cd01 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 37: 0x64277ec16f9f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9901538627fa5989 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 38: 0x64277ebebdf4 - as core::ops::function::FnOnce<()>>::call_once::h1961fd39a77948a8 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 39: 0x64277ebde3bc - std::panicking::catch_unwind::do_call::hc11cd39e70bd8e02 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 40: 0x64277ec1b07b - __rust_try [INFO] [stdout] 41: 0x64277ec16b7a - std::panicking::catch_unwind::h2d15a55ccb17e3b1 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 42: 0x64277ec16b7a - std::panic::catch_unwind::h1514ec6a4230cf2a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 43: 0x64277ec16b7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h3f0b802b6c0ecde5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 44: 0x64277ebfcb3f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1c278c0d3cc56338 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 45: 0x64277ec840bf - as core::ops::function::FnOnce>::call_once::h1d452951a81e9d0a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 46: 0x64277ec840bf - std::sys::pal::unix::thread::Thread::new::thread_start::h29c84e109630689a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 47: 0x77ee87f82aa4 - [INFO] [stdout] 48: 0x77ee8800fa34 - clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_method_where.rs:1: unexpected error: '1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_method_where.rs:30: unexpected error: '30:3: 30:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_method_where.rs:56: unexpected error: '56:18: 56:26: no method named `into_u32` found for struct `Wrap` in the current scope [E0599]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_method_where.rs:56: expected error not found: the method `into_u32` exists for struct `Wrap>`, but its trait bounds were not satisfied [INFO] [stdout] [INFO] [stdout] error: 3 unexpected errors found, 1 expected errors not found [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/compile-fail/delegate_to_method_where.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/delegate_to_method_where.stage-id" "-A" "unused" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/delegate_to_method_where.stage-id.aux" [INFO] [stdout] unexpected errors (from JSON output): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 1, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 30, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "30:3: 30:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 56, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "56:18: 56:26: no method named `into_u32` found for struct `Wrap` in the current scope [E0599]", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] not found errors (from test file): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 56, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "the method `into_u32` exists for struct `Wrap>`, but its trait bounds were not satisfied", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] thread '[compile-fail] compile-fail/delegate_to_method_where.rs' (33) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13: [INFO] [stdout] explicit panic [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::libunwind::trace::h589a96ef7638b383 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::trace_unsynchronized::h23a30a7548c40de4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64277ecb5bd2 - std::sys::backtrace::_print_fmt::h87dabd6535c8c07a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64277ecb5bd2 - ::fmt::hffd20ad4e5eca8ab [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64277ecc73af - core::fmt::rt::Argument::fmt::h75c83e3fd5ce2419 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64277ecc73af - core::fmt::write::h6d9d3a7cfd7b84f5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x64277ec7d143 - std::io::default_write_fmt::he11a713685e2464d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64277ec7d143 - std::io::Write::write_fmt::h9d08f7e050bd2612 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x64277ec8a602 - std::sys::backtrace::BacktraceLock::print::hb28797143397220e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64277ec9039f - std::panicking::default_hook::{{closure}}::h7555113b62983743 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x64277ec90231 - std::panicking::default_hook::h2714b564abe8d914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x64277e82002e - as core::ops::function::Fn>::call::h0e9de8cceb22406e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x64277e82002e - test::test_main_with_exit_callback::{{closure}}::h8125bd66cf4739d0 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64277ec90aee - as core::ops::function::Fn>::call::h1fd0a0802eaec16b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x64277ec90aee - std::panicking::panic_with_hook::h190dc82263685ec5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x64277ec900ac - std::panicking::begin_panic::{{closure}}::h371cca45440e6abf [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:771:9 [INFO] [stdout] 16: 0x64277ec8a749 - std::sys::backtrace::__rust_end_short_backtrace::h9b3a6b121b8c060d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x64277ec9007e - std::panicking::begin_panic::h3af9d90983463902 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:770:5 [INFO] [stdout] 18: 0x64277e89753c - compiletest_rs::runtest::TestCx::check_expected_errors::h0e4d6a35760f7cc9 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13 [INFO] [stdout] 19: 0x64277e88a766 - compiletest_rs::runtest::TestCx::run_cfail_test::h655c83d667fef8ab [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:179:18 [INFO] [stdout] 20: 0x64277e8875ec - compiletest_rs::runtest::TestCx::run_revision::hc46338075548c65f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:131:31 [INFO] [stdout] 21: 0x64277e883c5f - compiletest_rs::runtest::run::h5fe3c976d8b40e9f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:83:17 [INFO] [stdout] 22: 0x64277e844f38 - compiletest_rs::make_test_closure::{{closure}}::h54edfd52e1527495 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:323:9 [INFO] [stdout] 23: 0x64277e8de4be - core::ops::function::FnOnce::call_once{{vtable.shim}}::hab47b15b3f95800a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 25: 0x64277ebd5564 - tester::__rust_begin_short_backtrace::h5150244038661dbc [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:516:5 [INFO] [stdout] 26: 0x64277ebd8b83 - tester::run_test::{{closure}}::hff34ea2bc503449b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:500:34 [INFO] [stdout] 27: 0x64277ebfcc38 - core::ops::function::FnOnce::call_once{{vtable.shim}}::he9b78dc7136dc8fb [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 28: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 29: 0x64277ebebe14 - as core::ops::function::FnOnce<()>>::call_once::h30f0b0eed8e482da [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 30: 0x64277ebde2ed - std::panicking::catch_unwind::do_call::h293b0844e3279831 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x64277ec20d1b - __rust_try [INFO] [stdout] 32: 0x64277ec1c01a - std::panicking::catch_unwind::h58b0fc39e40b1d57 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 33: 0x64277ec1c01a - std::panic::catch_unwind::hc4ed729524bce718 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 34: 0x64277ebd3995 - tester::run_test_in_process::h06dd2fae10c47743 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:539:18 [INFO] [stdout] 35: 0x64277ebd7e01 - tester::run_test::run_test_inner::{{closure}}::heefffadb11465e2b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:449:39 [INFO] [stdout] 36: 0x64277ec10786 - std::sys::backtrace::__rust_begin_short_backtrace::h94cd439659c5cd01 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 37: 0x64277ec16f9f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9901538627fa5989 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 38: 0x64277ebebdf4 - as core::ops::function::FnOnce<()>>::call_once::h1961fd39a77948a8 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 39: 0x64277ebde3bc - std::panicking::catch_unwind::do_call::hc11cd39e70bd8e02 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 40: 0x64277ec1b07b - __rust_try [INFO] [stdout] 41: 0x64277ec16b7a - std::panicking::catch_unwind::h2d15a55ccb17e3b1 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 42: 0x64277ec16b7a - std::panic::catch_unwind::h1514ec6a4230cf2a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 43: 0x64277ec16b7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h3f0b802b6c0ecde5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 44: 0x64277ebfcb3f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1c278c0d3cc56338 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 45: 0x64277ec840bf - as core::ops::function::FnOnce>::call_once::h1d452951a81e9d0a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 46: 0x64277ec840bf - std::sys::pal::unix::thread::Thread::new::thread_start::h29c84e109630689a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 47: 0x77ee87f82aa4 - [INFO] [stdout] 48: 0x77ee8800fa34 - clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_method.rs:1: unexpected error: '1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_method.rs:25: unexpected error: '25:3: 25:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_method.rs:27: unexpected error: '27:3: 27:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_method.rs:29: unexpected error: '29:3: 29:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_method.rs:31: unexpected error: '31:3: 31:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_method.rs:25: expected error not found: target methods have different return types [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_method.rs:27: expected error not found: method needs to have a receiver of type "self" [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_method.rs:29: expected error not found: Note: method used in #[delegate] attribute [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_method.rs:31: expected error not found: no targets were specified [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_method.rs:37: expected error not found: Note: other return type defined here [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_method.rs:42: expected error not found: Note: first return type defined here [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_method.rs:51: expected message not found: method must have a receiver [INFO] [stdout] [INFO] [stdout] error: 5 unexpected errors found, 7 expected errors not found [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/compile-fail/delegate_to_method.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/delegate_to_method.stage-id" "-A" "unused" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/delegate_to_method.stage-id.aux" [INFO] [stdout] unexpected errors (from JSON output): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 1, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 25, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "25:3: 25:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 27, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "27:3: 27:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 29, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "29:3: 29:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 31, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "31:3: 31:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] not found errors (from test file): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 25, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "target methods have different return types", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 27, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "method needs to have a receiver of type \"self\"", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 29, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "Note: method used in #[delegate] attribute", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 31, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "no targets were specified", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 37, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "Note: other return type defined here", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 42, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "Note: first return type defined here", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 51, [INFO] [stdout] kind: None, [INFO] [stdout] msg: "method must have a receiver", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] thread '[compile-fail] compile-fail/delegate_to_method.rs' (32) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13: [INFO] [stdout] explicit panic [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::libunwind::trace::h589a96ef7638b383 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::trace_unsynchronized::h23a30a7548c40de4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64277ecb5bd2 - std::sys::backtrace::_print_fmt::h87dabd6535c8c07a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64277ecb5bd2 - ::fmt::hffd20ad4e5eca8ab [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64277ecc73af - core::fmt::rt::Argument::fmt::h75c83e3fd5ce2419 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64277ecc73af - core::fmt::write::h6d9d3a7cfd7b84f5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x64277ec7d143 - std::io::default_write_fmt::he11a713685e2464d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64277ec7d143 - std::io::Write::write_fmt::h9d08f7e050bd2612 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x64277ec8a602 - std::sys::backtrace::BacktraceLock::print::hb28797143397220e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64277ec9039f - std::panicking::default_hook::{{closure}}::h7555113b62983743 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x64277ec90231 - std::panicking::default_hook::h2714b564abe8d914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x64277e82002e - as core::ops::function::Fn>::call::h0e9de8cceb22406e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x64277e82002e - test::test_main_with_exit_callback::{{closure}}::h8125bd66cf4739d0 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64277ec90aee - as core::ops::function::Fn>::call::h1fd0a0802eaec16b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x64277ec90aee - std::panicking::panic_with_hook::h190dc82263685ec5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x64277ec900ac - std::panicking::begin_panic::{{closure}}::h371cca45440e6abf [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:771:9 [INFO] [stdout] 16: 0x64277ec8a749 - std::sys::backtrace::__rust_end_short_backtrace::h9b3a6b121b8c060d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x64277ec9007e - std::panicking::begin_panic::h3af9d90983463902 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:770:5 [INFO] [stdout] 18: 0x64277e89753c - compiletest_rs::runtest::TestCx::check_expected_errors::h0e4d6a35760f7cc9 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13 [INFO] [stdout] 19: 0x64277e88a766 - compiletest_rs::runtest::TestCx::run_cfail_test::h655c83d667fef8ab [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:179:18 [INFO] [stdout] 20: 0x64277e8875ec - compiletest_rs::runtest::TestCx::run_revision::hc46338075548c65f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:131:31 [INFO] [stdout] 21: 0x64277e883c5f - compiletest_rs::runtest::run::h5fe3c976d8b40e9f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:83:17 [INFO] [stdout] 22: 0x64277e844f38 - compiletest_rs::make_test_closure::{{closure}}::h54edfd52e1527495 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:323:9 [INFO] [stdout] 23: 0x64277e8de4be - core::ops::function::FnOnce::call_once{{vtable.shim}}::hab47b15b3f95800a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 25: 0x64277ebd5564 - tester::__rust_begin_short_backtrace::h5150244038661dbc [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:516:5 [INFO] [stdout] 26: 0x64277ebd8b83 - tester::run_test::{{closure}}::hff34ea2bc503449b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:500:34 [INFO] [stdout] 27: 0x64277ebfcc38 - core::ops::function::FnOnce::call_once{{vtable.shim}}::he9b78dc7136dc8fb [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 28: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 29: 0x64277ebebe14 - as core::ops::function::FnOnce<()>>::call_once::h30f0b0eed8e482da [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 30: 0x64277ebde2ed - std::panicking::catch_unwind::do_call::h293b0844e3279831 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x64277ec20d1b - __rust_try [INFO] [stdout] 32: 0x64277ec1c01a - std::panicking::catch_unwind::h58b0fc39e40b1d57 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 33: 0x64277ec1c01a - std::panic::catch_unwind::hc4ed729524bce718 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 34: 0x64277ebd3995 - tester::run_test_in_process::h06dd2fae10c47743 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:539:18 [INFO] [stdout] 35: 0x64277ebd7e01 - tester::run_test::run_test_inner::{{closure}}::heefffadb11465e2b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:449:39 [INFO] [stdout] 36: 0x64277ec10786 - std::sys::backtrace::__rust_begin_short_backtrace::h94cd439659c5cd01 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 37: 0x64277ec16f9f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9901538627fa5989 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 38: 0x64277ebebdf4 - as core::ops::function::FnOnce<()>>::call_once::h1961fd39a77948a8 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 39: 0x64277ebde3bc - std::panicking::catch_unwind::do_call::hc11cd39e70bd8e02 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 40: 0x64277ec1b07b - __rust_try [INFO] [stdout] 41: 0x64277ec16b7a - std::panicking::catch_unwind::h2d15a55ccb17e3b1 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 42: 0x64277ec16b7a - std::panic::catch_unwind::h1514ec6a4230cf2a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 43: 0x64277ec16b7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h3f0b802b6c0ecde5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 44: 0x64277ebfcb3f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1c278c0d3cc56338 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 45: 0x64277ec840bf - as core::ops::function::FnOnce>::call_once::h1d452951a81e9d0a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 46: 0x64277ec840bf - std::sys::pal::unix::thread::Thread::new::thread_start::h29c84e109630689a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 47: 0x77ee87f82aa4 - [INFO] [stdout] 48: 0x77ee8800fa34 - clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_args_in_delegate_attr.rs:1: unexpected error: '1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_args_in_delegate_attr.rs:18: unexpected error: '18:3: 18:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_args_in_delegate_attr.rs:18: expected error not found: unexpected end of input, expected string literal [INFO] [stdout] [INFO] [stdout] error: 2 unexpected errors found, 1 expected errors not found [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/compile-fail/extra_args_in_delegate_attr.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/extra_args_in_delegate_attr.stage-id" "-A" "unused" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/extra_args_in_delegate_attr.stage-id.aux" [INFO] [stdout] unexpected errors (from JSON output): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 1, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 18, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "18:3: 18:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] not found errors (from test file): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 18, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "unexpected end of input, expected string literal", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] thread '[compile-fail] compile-fail/extra_args_in_delegate_attr.rs' (40) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13: [INFO] [stdout] explicit panic [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::libunwind::trace::h589a96ef7638b383 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::trace_unsynchronized::h23a30a7548c40de4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64277ecb5bd2 - std::sys::backtrace::_print_fmt::h87dabd6535c8c07a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64277ecb5bd2 - ::fmt::hffd20ad4e5eca8ab [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64277ecc73af - core::fmt::rt::Argument::fmt::h75c83e3fd5ce2419 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64277ecc73af - core::fmt::write::h6d9d3a7cfd7b84f5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x64277ec7d143 - std::io::default_write_fmt::he11a713685e2464d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64277ec7d143 - std::io::Write::write_fmt::h9d08f7e050bd2612 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x64277ec8a602 - std::sys::backtrace::BacktraceLock::print::hb28797143397220e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64277ec9039f - std::panicking::default_hook::{{closure}}::h7555113b62983743 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x64277ec90231 - std::panicking::default_hook::h2714b564abe8d914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x64277e82002e - as core::ops::function::Fn>::call::h0e9de8cceb22406e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x64277e82002e - test::test_main_with_exit_callback::{{closure}}::h8125bd66cf4739d0 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64277ec90aee - as core::ops::function::Fn>::call::h1fd0a0802eaec16b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x64277ec90aee - std::panicking::panic_with_hook::h190dc82263685ec5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x64277ec900ac - std::panicking::begin_panic::{{closure}}::h371cca45440e6abf [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:771:9 [INFO] [stdout] 16: 0x64277ec8a749 - std::sys::backtrace::__rust_end_short_backtrace::h9b3a6b121b8c060d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x64277ec9007e - std::panicking::begin_panic::h3af9d90983463902 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:770:5 [INFO] [stdout] 18: 0x64277e89753c - compiletest_rs::runtest::TestCx::check_expected_errors::h0e4d6a35760f7cc9 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13 [INFO] [stdout] 19: 0x64277e88a766 - compiletest_rs::runtest::TestCx::run_cfail_test::h655c83d667fef8ab [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:179:18 [INFO] [stdout] 20: 0x64277e8875ec - compiletest_rs::runtest::TestCx::run_revision::hc46338075548c65f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:131:31 [INFO] [stdout] 21: 0x64277e883c5f - compiletest_rs::runtest::run::h5fe3c976d8b40e9f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:83:17 [INFO] [stdout] 22: 0x64277e844f38 - compiletest_rs::make_test_closure::{{closure}}::h54edfd52e1527495 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:323:9 [INFO] [stdout] 23: 0x64277e8de4be - core::ops::function::FnOnce::call_once{{vtable.shim}}::hab47b15b3f95800a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 25: 0x64277ebd5564 - tester::__rust_begin_short_backtrace::h5150244038661dbc [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:516:5 [INFO] [stdout] 26: 0x64277ebd8b83 - tester::run_test::{{closure}}::hff34ea2bc503449b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:500:34 [INFO] [stdout] 27: 0x64277ebfcc38 - core::ops::function::FnOnce::call_once{{vtable.shim}}::he9b78dc7136dc8fb [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 28: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 29: 0x64277ebebe14 - as core::ops::function::FnOnce<()>>::call_once::h30f0b0eed8e482da [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 30: 0x64277ebde2ed - std::panicking::catch_unwind::do_call::h293b0844e3279831 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x64277ec20d1b - __rust_try [INFO] [stdout] 32: 0x64277ec1c01a - std::panicking::catch_unwind::h58b0fc39e40b1d57 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 33: 0x64277ec1c01a - std::panic::catch_unwind::hc4ed729524bce718 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 34: 0x64277ebd3995 - tester::run_test_in_process::h06dd2fae10c47743 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:539:18 [INFO] [stdout] 35: 0x64277ebd7e01 - tester::run_test::run_test_inner::{{closure}}::heefffadb11465e2b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:449:39 [INFO] [stdout] 36: 0x64277ec10786 - std::sys::backtrace::__rust_begin_short_backtrace::h94cd439659c5cd01 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 37: 0x64277ec16f9f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9901538627fa5989 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 38: 0x64277ebebdf4 - as core::ops::function::FnOnce<()>>::call_once::h1961fd39a77948a8 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 39: 0x64277ebde3bc - std::panicking::catch_unwind::do_call::hc11cd39e70bd8e02 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 40: 0x64277ec1b07b - __rust_try [INFO] [stdout] 41: 0x64277ec16b7a - std::panicking::catch_unwind::h2d15a55ccb17e3b1 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 42: 0x64277ec16b7a - std::panic::catch_unwind::h1514ec6a4230cf2a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 43: 0x64277ec16b7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h3f0b802b6c0ecde5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 44: 0x64277ebfcb3f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1c278c0d3cc56338 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 45: 0x64277ec840bf - as core::ops::function::FnOnce>::call_once::h1d452951a81e9d0a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 46: 0x64277ec840bf - std::sys::pal::unix::thread::Thread::new::thread_start::h29c84e109630689a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 47: 0x77ee87f82aa4 - [INFO] [stdout] 48: 0x77ee8800fa34 - clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/enum_associated_types.rs:1: unexpected error: '1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/enum_associated_types.rs:34: unexpected error: '34:3: 34:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/enum_associated_types.rs:41: unexpected error: '41:35: 41:51: the trait bound `Either: Animal` is not satisfied [E0277]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/enum_associated_types.rs:41: expected error not found: type mismatch resolving `::Baby == Puppy` [INFO] [stdout] [INFO] [stdout] error: 3 unexpected errors found, 1 expected errors not found [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/compile-fail/enum_associated_types.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/enum_associated_types.stage-id" "-A" "unused" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/enum_associated_types.stage-id.aux" [INFO] [stdout] unexpected errors (from JSON output): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 1, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 34, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "34:3: 34:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 41, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "41:35: 41:51: the trait bound `Either: Animal` is not satisfied [E0277]", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] not found errors (from test file): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 41, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "type mismatch resolving `::Baby == Puppy`", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] thread '[compile-fail] compile-fail/enum_associated_types.rs' (37) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13: [INFO] [stdout] explicit panic [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::libunwind::trace::h589a96ef7638b383 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::trace_unsynchronized::h23a30a7548c40de4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64277ecb5bd2 - std::sys::backtrace::_print_fmt::h87dabd6535c8c07a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64277ecb5bd2 - ::fmt::hffd20ad4e5eca8ab [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64277ecc73af - core::fmt::rt::Argument::fmt::h75c83e3fd5ce2419 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64277ecc73af - core::fmt::write::h6d9d3a7cfd7b84f5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x64277ec7d143 - std::io::default_write_fmt::he11a713685e2464d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64277ec7d143 - std::io::Write::write_fmt::h9d08f7e050bd2612 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x64277ec8a602 - std::sys::backtrace::BacktraceLock::print::hb28797143397220e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64277ec9039f - std::panicking::default_hook::{{closure}}::h7555113b62983743 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x64277ec90231 - std::panicking::default_hook::h2714b564abe8d914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x64277e82002e - as core::ops::function::Fn>::call::h0e9de8cceb22406e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x64277e82002e - test::test_main_with_exit_callback::{{closure}}::h8125bd66cf4739d0 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64277ec90aee - as core::ops::function::Fn>::call::h1fd0a0802eaec16b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x64277ec90aee - std::panicking::panic_with_hook::h190dc82263685ec5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x64277ec900ac - std::panicking::begin_panic::{{closure}}::h371cca45440e6abf [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:771:9 [INFO] [stdout] 16: 0x64277ec8a749 - std::sys::backtrace::__rust_end_short_backtrace::h9b3a6b121b8c060d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x64277ec9007e - std::panicking::begin_panic::h3af9d90983463902 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:770:5 [INFO] [stdout] 18: 0x64277e89753c - compiletest_rs::runtest::TestCx::check_expected_errors::h0e4d6a35760f7cc9 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13 [INFO] [stdout] 19: 0x64277e88a766 - compiletest_rs::runtest::TestCx::run_cfail_test::h655c83d667fef8ab [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:179:18 [INFO] [stdout] 20: 0x64277e8875ec - compiletest_rs::runtest::TestCx::run_revision::hc46338075548c65f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:131:31 [INFO] [stdout] 21: 0x64277e883c5f - compiletest_rs::runtest::run::h5fe3c976d8b40e9f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:83:17 [INFO] [stdout] 22: 0x64277e844f38 - compiletest_rs::make_test_closure::{{closure}}::h54edfd52e1527495 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:323:9 [INFO] [stdout] 23: 0x64277e8de4be - core::ops::function::FnOnce::call_once{{vtable.shim}}::hab47b15b3f95800a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 25: 0x64277ebd5564 - tester::__rust_begin_short_backtrace::h5150244038661dbc [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:516:5 [INFO] [stdout] 26: 0x64277ebd8b83 - tester::run_test::{{closure}}::hff34ea2bc503449b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:500:34 [INFO] [stdout] 27: 0x64277ebfcc38 - core::ops::function::FnOnce::call_once{{vtable.shim}}::he9b78dc7136dc8fb [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 28: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 29: 0x64277ebebe14 - as core::ops::function::FnOnce<()>>::call_once::h30f0b0eed8e482da [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 30: 0x64277ebde2ed - std::panicking::catch_unwind::do_call::h293b0844e3279831 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x64277ec20d1b - __rust_try [INFO] [stdout] 32: 0x64277ec1c01a - std::panicking::catch_unwind::h58b0fc39e40b1d57 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 33: 0x64277ec1c01a - std::panic::catch_unwind::hc4ed729524bce718 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 34: 0x64277ebd3995 - tester::run_test_in_process::h06dd2fae10c47743 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:539:18 [INFO] [stdout] 35: 0x64277ebd7e01 - tester::run_test::run_test_inner::{{closure}}::heefffadb11465e2b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:449:39 [INFO] [stdout] 36: 0x64277ec10786 - std::sys::backtrace::__rust_begin_short_backtrace::h94cd439659c5cd01 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 37: 0x64277ec16f9f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9901538627fa5989 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 38: 0x64277ebebdf4 - as core::ops::function::FnOnce<()>>::call_once::h1961fd39a77948a8 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 39: 0x64277ebde3bc - std::panicking::catch_unwind::do_call::hc11cd39e70bd8e02 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 40: 0x64277ec1b07b - __rust_try [INFO] [stdout] 41: 0x64277ec16b7a - std::panicking::catch_unwind::h2d15a55ccb17e3b1 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 42: 0x64277ec16b7a - std::panic::catch_unwind::h1514ec6a4230cf2a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 43: 0x64277ec16b7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h3f0b802b6c0ecde5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 44: 0x64277ebfcb3f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1c278c0d3cc56338 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 45: 0x64277ec840bf - as core::ops::function::FnOnce>::call_once::h1d452951a81e9d0a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 46: 0x64277ec840bf - std::sys::pal::unix::thread::Thread::new::thread_start::h29c84e109630689a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 47: 0x77ee87f82aa4 - [INFO] [stdout] 48: 0x77ee8800fa34 - clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/generic_trait_bad_where.rs:1: unexpected error: '1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/generic_trait_bad_where.rs:8: unexpected error: '8:1: 8:29: the name `Index` is defined multiple times [E0255]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/generic_trait_bad_where.rs:7: unexpected error: '7:3: 7:27: cannot find attribute `delegatable_trait_remote` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/generic_trait_bad_where.rs:13: unexpected error: '13:10: 13:18: cannot find derive macro `Delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/generic_trait_bad_where.rs:14: unexpected error: '14:3: 14:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/generic_trait_bad_where.rs:23: unexpected error: '23:18: 23:25: cannot index into a value of type `SomeMap` [E0608]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/generic_trait_bad_where.rs:25: unexpected error: '25:18: 25:25: cannot index into a value of type `SomeMap` [E0608]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/generic_trait_bad_where.rs:23: expected error not found: the trait bound `&_: Into` is not satisfied [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/generic_trait_bad_where.rs:25: expected error not found: the trait bound `&_: Into` is not satisfied [INFO] [stdout] [INFO] [stdout] error: 7 unexpected errors found, 2 expected errors not found [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/compile-fail/generic_trait_bad_where.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/generic_trait_bad_where.stage-id" "-A" "unused" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/generic_trait_bad_where.stage-id.aux" [INFO] [stdout] unexpected errors (from JSON output): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 1, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 8, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "8:1: 8:29: the name `Index` is defined multiple times [E0255]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 7, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "7:3: 7:27: cannot find attribute `delegatable_trait_remote` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 13, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "13:10: 13:18: cannot find derive macro `Delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 14, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "14:3: 14:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 23, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "23:18: 23:25: cannot index into a value of type `SomeMap` [E0608]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 25, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "25:18: 25:25: cannot index into a value of type `SomeMap` [E0608]", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] not found errors (from test file): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 23, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "the trait bound `&_: Into` is not satisfied", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 25, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "the trait bound `&_: Into` is not satisfied", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] thread '[compile-fail] compile-fail/generic_trait_bad_where.rs' (363) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13: [INFO] [stdout] explicit panic [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::libunwind::trace::h589a96ef7638b383 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::trace_unsynchronized::h23a30a7548c40de4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64277ecb5bd2 - std::sys::backtrace::_print_fmt::h87dabd6535c8c07a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64277ecb5bd2 - ::fmt::hffd20ad4e5eca8ab [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64277ecc73af - core::fmt::rt::Argument::fmt::h75c83e3fd5ce2419 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64277ecc73af - core::fmt::write::h6d9d3a7cfd7b84f5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x64277ec7d143 - std::io::default_write_fmt::he11a713685e2464d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64277ec7d143 - std::io::Write::write_fmt::h9d08f7e050bd2612 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x64277ec8a602 - std::sys::backtrace::BacktraceLock::print::hb28797143397220e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64277ec9039f - std::panicking::default_hook::{{closure}}::h7555113b62983743 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x64277ec90231 - std::panicking::default_hook::h2714b564abe8d914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x64277e82002e - as core::ops::function::Fn>::call::h0e9de8cceb22406e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x64277e82002e - test::test_main_with_exit_callback::{{closure}}::h8125bd66cf4739d0 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64277ec90aee - as core::ops::function::Fn>::call::h1fd0a0802eaec16b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x64277ec90aee - std::panicking::panic_with_hook::h190dc82263685ec5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x64277ec900ac - std::panicking::begin_panic::{{closure}}::h371cca45440e6abf [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:771:9 [INFO] [stdout] 16: 0x64277ec8a749 - std::sys::backtrace::__rust_end_short_backtrace::h9b3a6b121b8c060d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x64277ec9007e - std::panicking::begin_panic::h3af9d90983463902 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:770:5 [INFO] [stdout] 18: 0x64277e89753c - compiletest_rs::runtest::TestCx::check_expected_errors::h0e4d6a35760f7cc9 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13 [INFO] [stdout] 19: 0x64277e88a766 - compiletest_rs::runtest::TestCx::run_cfail_test::h655c83d667fef8ab [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:179:18 [INFO] [stdout] 20: 0x64277e8875ec - compiletest_rs::runtest::TestCx::run_revision::hc46338075548c65f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:131:31 [INFO] [stdout] 21: 0x64277e883c5f - compiletest_rs::runtest::run::h5fe3c976d8b40e9f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:83:17 [INFO] [stdout] 22: 0x64277e844f38 - compiletest_rs::make_test_closure::{{closure}}::h54edfd52e1527495 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:323:9 [INFO] [stdout] 23: 0x64277e8de4be - core::ops::function::FnOnce::call_once{{vtable.shim}}::hab47b15b3f95800a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 25: 0x64277ebd5564 - tester::__rust_begin_short_backtrace::h5150244038661dbc [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:516:5 [INFO] [stdout] 26: 0x64277ebd8b83 - tester::run_test::{{closure}}::hff34ea2bc503449b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:500:34 [INFO] [stdout] 27: 0x64277ebfcc38 - core::ops::function::FnOnce::call_once{{vtable.shim}}::he9b78dc7136dc8fb [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 28: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 29: 0x64277ebebe14 - as core::ops::function::FnOnce<()>>::call_once::h30f0b0eed8e482da [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 30: 0x64277ebde2ed - std::panicking::catch_unwind::do_call::h293b0844e3279831 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x64277ec20d1b - __rust_try [INFO] [stdout] 32: 0x64277ec1c01a - std::panicking::catch_unwind::h58b0fc39e40b1d57 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 33: 0x64277ec1c01a - std::panic::catch_unwind::hc4ed729524bce718 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 34: 0x64277ebd3995 - tester::run_test_in_process::h06dd2fae10c47743 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:539:18 [INFO] [stdout] 35: 0x64277ebd7e01 - tester::run_test::run_test_inner::{{closure}}::heefffadb11465e2b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:449:39 [INFO] [stdout] 36: 0x64277ec10786 - std::sys::backtrace::__rust_begin_short_backtrace::h94cd439659c5cd01 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 37: 0x64277ec16f9f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9901538627fa5989 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 38: 0x64277ebebdf4 - as core::ops::function::FnOnce<()>>::call_once::h1961fd39a77948a8 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 39: 0x64277ebde3bc - std::panicking::catch_unwind::do_call::hc11cd39e70bd8e02 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 40: 0x64277ec1b07b - __rust_try [INFO] [stdout] 41: 0x64277ec16b7a - std::panicking::catch_unwind::h2d15a55ccb17e3b1 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 42: 0x64277ec16b7a - std::panic::catch_unwind::h1514ec6a4230cf2a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 43: 0x64277ec16b7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h3f0b802b6c0ecde5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 44: 0x64277ebfcb3f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1c278c0d3cc56338 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 45: 0x64277ec840bf - as core::ops::function::FnOnce>::call_once::h1d452951a81e9d0a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 46: 0x64277ec840bf - std::sys::pal::unix::thread::Thread::new::thread_start::h29c84e109630689a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 47: 0x77ee87f82aa4 - [INFO] [stdout] 48: 0x77ee8800fa34 - clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/single_field_struct.rs:1: unexpected error: '1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/single_field_struct.rs:19: unexpected error: '19:3: 19:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/single_field_struct.rs:19: expected error not found: Unknown field specified as "target" value in #[delegate] attribute [INFO] [stdout] [INFO] [stdout] error: 2 unexpected errors found, 1 expected errors not found [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/compile-fail/single_field_struct.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/single_field_struct.stage-id" "-A" "unused" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/single_field_struct.stage-id.aux" [INFO] [stdout] unexpected errors (from JSON output): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 1, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 19, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "19:3: 19:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] not found errors (from test file): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 19, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "Unknown field specified as \"target\" value in #[delegate] attribute", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] thread '[compile-fail] compile-fail/single_field_struct.rs' (536) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13: [INFO] [stdout] explicit panic [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::libunwind::trace::h589a96ef7638b383 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::trace_unsynchronized::h23a30a7548c40de4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64277ecb5bd2 - std::sys::backtrace::_print_fmt::h87dabd6535c8c07a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64277ecb5bd2 - ::fmt::hffd20ad4e5eca8ab [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64277ecc73af - core::fmt::rt::Argument::fmt::h75c83e3fd5ce2419 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64277ecc73af - core::fmt::write::h6d9d3a7cfd7b84f5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x64277ec7d143 - std::io::default_write_fmt::he11a713685e2464d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64277ec7d143 - std::io::Write::write_fmt::h9d08f7e050bd2612 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x64277ec8a602 - std::sys::backtrace::BacktraceLock::print::hb28797143397220e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64277ec9039f - std::panicking::default_hook::{{closure}}::h7555113b62983743 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x64277ec90231 - std::panicking::default_hook::h2714b564abe8d914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x64277e82002e - as core::ops::function::Fn>::call::h0e9de8cceb22406e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x64277e82002e - test::test_main_with_exit_callback::{{closure}}::h8125bd66cf4739d0 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64277ec90aee - as core::ops::function::Fn>::call::h1fd0a0802eaec16b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x64277ec90aee - std::panicking::panic_with_hook::h190dc82263685ec5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x64277ec900ac - std::panicking::begin_panic::{{closure}}::h371cca45440e6abf [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:771:9 [INFO] [stdout] 16: 0x64277ec8a749 - std::sys::backtrace::__rust_end_short_backtrace::h9b3a6b121b8c060d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x64277ec9007e - std::panicking::begin_panic::h3af9d90983463902 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:770:5 [INFO] [stdout] 18: 0x64277e89753c - compiletest_rs::runtest::TestCx::check_expected_errors::h0e4d6a35760f7cc9 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13 [INFO] [stdout] 19: 0x64277e88a766 - compiletest_rs::runtest::TestCx::run_cfail_test::h655c83d667fef8ab [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:179:18 [INFO] [stdout] 20: 0x64277e8875ec - compiletest_rs::runtest::TestCx::run_revision::hc46338075548c65f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:131:31 [INFO] [stdout] 21: 0x64277e883c5f - compiletest_rs::runtest::run::h5fe3c976d8b40e9f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:83:17 [INFO] [stdout] 22: 0x64277e844f38 - compiletest_rs::make_test_closure::{{closure}}::h54edfd52e1527495 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:323:9 [INFO] [stdout] 23: 0x64277e8de4be - core::ops::function::FnOnce::call_once{{vtable.shim}}::hab47b15b3f95800a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 25: 0x64277ebd5564 - tester::__rust_begin_short_backtrace::h5150244038661dbc [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:516:5 [INFO] [stdout] 26: 0x64277ebd8b83 - tester::run_test::{{closure}}::hff34ea2bc503449b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:500:34 [INFO] [stdout] 27: 0x64277ebfcc38 - core::ops::function::FnOnce::call_once{{vtable.shim}}::he9b78dc7136dc8fb [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 28: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 29: 0x64277ebebe14 - as core::ops::function::FnOnce<()>>::call_once::h30f0b0eed8e482da [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 30: 0x64277ebde2ed - std::panicking::catch_unwind::do_call::h293b0844e3279831 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x64277ec20d1b - __rust_try [INFO] [stdout] 32: 0x64277ec1c01a - std::panicking::catch_unwind::h58b0fc39e40b1d57 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 33: 0x64277ec1c01a - std::panic::catch_unwind::hc4ed729524bce718 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 34: 0x64277ebd3995 - tester::run_test_in_process::h06dd2fae10c47743 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:539:18 [INFO] [stdout] 35: 0x64277ebd7e01 - tester::run_test::run_test_inner::{{closure}}::heefffadb11465e2b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:449:39 [INFO] [stdout] 36: 0x64277ec10786 - std::sys::backtrace::__rust_begin_short_backtrace::h94cd439659c5cd01 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 37: 0x64277ec16f9f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9901538627fa5989 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 38: 0x64277ebebdf4 - as core::ops::function::FnOnce<()>>::call_once::h1961fd39a77948a8 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 39: 0x64277ebde3bc - std::panicking::catch_unwind::do_call::hc11cd39e70bd8e02 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 40: 0x64277ec1b07b - __rust_try [INFO] [stdout] 41: 0x64277ec16b7a - std::panicking::catch_unwind::h2d15a55ccb17e3b1 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 42: 0x64277ec16b7a - std::panic::catch_unwind::h1514ec6a4230cf2a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 43: 0x64277ec16b7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h3f0b802b6c0ecde5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 44: 0x64277ebfcb3f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1c278c0d3cc56338 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 45: 0x64277ec840bf - as core::ops::function::FnOnce>::call_once::h1d452951a81e9d0a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 46: 0x64277ec840bf - std::sys::pal::unix::thread::Thread::new::thread_start::h29c84e109630689a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 47: 0x77ee87f82aa4 - [INFO] [stdout] 48: 0x77ee8800fa34 - clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/enum_associated_constant.rs:1: unexpected error: '1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/enum_associated_constant.rs:5: unexpected error: '5:3: 5:20: cannot find attribute `delegatable_trait` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/enum_associated_constant.rs:22: unexpected error: '22:10: 22:18: cannot find derive macro `Delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/enum_associated_constant.rs:23: unexpected error: '23:3: 23:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/enum_associated_constant.rs:30: unexpected error: '30:25: 30:33: no variant or associated item named `NUM_LEGS` found for enum `Pet` in the current scope [E0599]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/enum_associated_constant.rs:5: expected error not found: evaluation of constant value failed [E0080] [INFO] [stdout] [INFO] [stdout] error: 5 unexpected errors found, 1 expected errors not found [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/compile-fail/enum_associated_constant.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/enum_associated_constant.stage-id" "-A" "unused" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/enum_associated_constant.stage-id.aux" [INFO] [stdout] unexpected errors (from JSON output): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 1, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 5, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "5:3: 5:20: cannot find attribute `delegatable_trait` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 22, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "22:10: 22:18: cannot find derive macro `Delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 23, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "23:3: 23:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 30, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "30:25: 30:33: no variant or associated item named `NUM_LEGS` found for enum `Pet` in the current scope [E0599]", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] not found errors (from test file): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 5, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "evaluation of constant value failed [E0080]", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] thread '[compile-fail] compile-fail/enum_associated_constant.rs' (36) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13: [INFO] [stdout] explicit panic [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::libunwind::trace::h589a96ef7638b383 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::trace_unsynchronized::h23a30a7548c40de4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64277ecb5bd2 - std::sys::backtrace::_print_fmt::h87dabd6535c8c07a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64277ecb5bd2 - ::fmt::hffd20ad4e5eca8ab [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64277ecc73af - core::fmt::rt::Argument::fmt::h75c83e3fd5ce2419 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64277ecc73af - core::fmt::write::h6d9d3a7cfd7b84f5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x64277ec7d143 - std::io::default_write_fmt::he11a713685e2464d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64277ec7d143 - std::io::Write::write_fmt::h9d08f7e050bd2612 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x64277ec8a602 - std::sys::backtrace::BacktraceLock::print::hb28797143397220e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64277ec9039f - std::panicking::default_hook::{{closure}}::h7555113b62983743 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x64277ec90231 - std::panicking::default_hook::h2714b564abe8d914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x64277e82002e - as core::ops::function::Fn>::call::h0e9de8cceb22406e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x64277e82002e - test::test_main_with_exit_callback::{{closure}}::h8125bd66cf4739d0 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64277ec90aee - as core::ops::function::Fn>::call::h1fd0a0802eaec16b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x64277ec90aee - std::panicking::panic_with_hook::h190dc82263685ec5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x64277ec900ac - std::panicking::begin_panic::{{closure}}::h371cca45440e6abf [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:771:9 [INFO] [stdout] 16: 0x64277ec8a749 - std::sys::backtrace::__rust_end_short_backtrace::h9b3a6b121b8c060d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x64277ec9007e - std::panicking::begin_panic::h3af9d90983463902 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:770:5 [INFO] [stdout] 18: 0x64277e89753c - compiletest_rs::runtest::TestCx::check_expected_errors::h0e4d6a35760f7cc9 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13 [INFO] [stdout] 19: 0x64277e88a766 - compiletest_rs::runtest::TestCx::run_cfail_test::h655c83d667fef8ab [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:179:18 [INFO] [stdout] 20: 0x64277e8875ec - compiletest_rs::runtest::TestCx::run_revision::hc46338075548c65f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:131:31 [INFO] [stdout] 21: 0x64277e883c5f - compiletest_rs::runtest::run::h5fe3c976d8b40e9f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:83:17 [INFO] [stdout] 22: 0x64277e844f38 - compiletest_rs::make_test_closure::{{closure}}::h54edfd52e1527495 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:323:9 [INFO] [stdout] 23: 0x64277e8de4be - core::ops::function::FnOnce::call_once{{vtable.shim}}::hab47b15b3f95800a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 25: 0x64277ebd5564 - tester::__rust_begin_short_backtrace::h5150244038661dbc [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:516:5 [INFO] [stdout] 26: 0x64277ebd8b83 - tester::run_test::{{closure}}::hff34ea2bc503449b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:500:34 [INFO] [stdout] 27: 0x64277ebfcc38 - core::ops::function::FnOnce::call_once{{vtable.shim}}::he9b78dc7136dc8fb [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 28: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 29: 0x64277ebebe14 - as core::ops::function::FnOnce<()>>::call_once::h30f0b0eed8e482da [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 30: 0x64277ebde2ed - std::panicking::catch_unwind::do_call::h293b0844e3279831 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x64277ec20d1b - __rust_try [INFO] [stdout] 32: 0x64277ec1c01a - std::panicking::catch_unwind::h58b0fc39e40b1d57 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 33: 0x64277ec1c01a - std::panic::catch_unwind::hc4ed729524bce718 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 34: 0x64277ebd3995 - tester::run_test_in_process::h06dd2fae10c47743 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:539:18 [INFO] [stdout] 35: 0x64277ebd7e01 - tester::run_test::run_test_inner::{{closure}}::heefffadb11465e2b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:449:39 [INFO] [stdout] 36: 0x64277ec10786 - std::sys::backtrace::__rust_begin_short_backtrace::h94cd439659c5cd01 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 37: 0x64277ec16f9f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9901538627fa5989 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 38: 0x64277ebebdf4 - as core::ops::function::FnOnce<()>>::call_once::h1961fd39a77948a8 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 39: 0x64277ebde3bc - std::panicking::catch_unwind::do_call::hc11cd39e70bd8e02 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 40: 0x64277ec1b07b - __rust_try [INFO] [stdout] 41: 0x64277ec16b7a - std::panicking::catch_unwind::h2d15a55ccb17e3b1 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 42: 0x64277ec16b7a - std::panic::catch_unwind::h1514ec6a4230cf2a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 43: 0x64277ec16b7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h3f0b802b6c0ecde5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 44: 0x64277ebfcb3f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1c278c0d3cc56338 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 45: 0x64277ec840bf - as core::ops::function::FnOnce>::call_once::h1d452951a81e9d0a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 46: 0x64277ec840bf - std::sys::pal::unix::thread::Thread::new::thread_start::h29c84e109630689a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 47: 0x77ee87f82aa4 - [INFO] [stdout] 48: 0x77ee8800fa34 - clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/missing_delegate_attribute.rs:1: unexpected error: '1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/missing_delegate_attribute.rs:26: expected error not found: No #[delegate] attribute specified [INFO] [stdout] [INFO] [stdout] error: 1 unexpected errors found, 1 expected errors not found [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/compile-fail/missing_delegate_attribute.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/missing_delegate_attribute.stage-id" "-A" "unused" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/missing_delegate_attribute.stage-id.aux" [INFO] [stdout] unexpected errors (from JSON output): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 1, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] not found errors (from test file): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 26, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "No #[delegate] attribute specified", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] thread '[compile-fail] compile-fail/missing_delegate_attribute.rs' (454) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13: [INFO] [stdout] explicit panic [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::libunwind::trace::h589a96ef7638b383 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::trace_unsynchronized::h23a30a7548c40de4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64277ecb5bd2 - std::sys::backtrace::_print_fmt::h87dabd6535c8c07a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64277ecb5bd2 - ::fmt::hffd20ad4e5eca8ab [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64277ecc73af - core::fmt::rt::Argument::fmt::h75c83e3fd5ce2419 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64277ecc73af - core::fmt::write::h6d9d3a7cfd7b84f5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x64277ec7d143 - std::io::default_write_fmt::he11a713685e2464d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64277ec7d143 - std::io::Write::write_fmt::h9d08f7e050bd2612 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x64277ec8a602 - std::sys::backtrace::BacktraceLock::print::hb28797143397220e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64277ec9039f - std::panicking::default_hook::{{closure}}::h7555113b62983743 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x64277ec90231 - std::panicking::default_hook::h2714b564abe8d914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x64277e82002e - as core::ops::function::Fn>::call::h0e9de8cceb22406e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x64277e82002e - test::test_main_with_exit_callback::{{closure}}::h8125bd66cf4739d0 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64277ec90aee - as core::ops::function::Fn>::call::h1fd0a0802eaec16b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x64277ec90aee - std::panicking::panic_with_hook::h190dc82263685ec5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x64277ec900ac - std::panicking::begin_panic::{{closure}}::h371cca45440e6abf [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:771:9 [INFO] [stdout] 16: 0x64277ec8a749 - std::sys::backtrace::__rust_end_short_backtrace::h9b3a6b121b8c060d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x64277ec9007e - std::panicking::begin_panic::h3af9d90983463902 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:770:5 [INFO] [stdout] 18: 0x64277e89753c - compiletest_rs::runtest::TestCx::check_expected_errors::h0e4d6a35760f7cc9 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13 [INFO] [stdout] 19: 0x64277e88a766 - compiletest_rs::runtest::TestCx::run_cfail_test::h655c83d667fef8ab [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:179:18 [INFO] [stdout] 20: 0x64277e8875ec - compiletest_rs::runtest::TestCx::run_revision::hc46338075548c65f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:131:31 [INFO] [stdout] 21: 0x64277e883c5f - compiletest_rs::runtest::run::h5fe3c976d8b40e9f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:83:17 [INFO] [stdout] 22: 0x64277e844f38 - compiletest_rs::make_test_closure::{{closure}}::h54edfd52e1527495 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:323:9 [INFO] [stdout] 23: 0x64277e8de4be - core::ops::function::FnOnce::call_once{{vtable.shim}}::hab47b15b3f95800a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 25: 0x64277ebd5564 - tester::__rust_begin_short_backtrace::h5150244038661dbc [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:516:5 [INFO] [stdout] 26: 0x64277ebd8b83 - tester::run_test::{{closure}}::hff34ea2bc503449b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:500:34 [INFO] [stdout] 27: 0x64277ebfcc38 - core::ops::function::FnOnce::call_once{{vtable.shim}}::he9b78dc7136dc8fb [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 28: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 29: 0x64277ebebe14 - as core::ops::function::FnOnce<()>>::call_once::h30f0b0eed8e482da [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 30: 0x64277ebde2ed - std::panicking::catch_unwind::do_call::h293b0844e3279831 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x64277ec20d1b - __rust_try [INFO] [stdout] 32: 0x64277ec1c01a - std::panicking::catch_unwind::h58b0fc39e40b1d57 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 33: 0x64277ec1c01a - std::panic::catch_unwind::hc4ed729524bce718 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 34: 0x64277ebd3995 - tester::run_test_in_process::h06dd2fae10c47743 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:539:18 [INFO] [stdout] 35: 0x64277ebd7e01 - tester::run_test::run_test_inner::{{closure}}::heefffadb11465e2b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:449:39 [INFO] [stdout] 36: 0x64277ec10786 - std::sys::backtrace::__rust_begin_short_backtrace::h94cd439659c5cd01 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 37: 0x64277ec16f9f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9901538627fa5989 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 38: 0x64277ebebdf4 - as core::ops::function::FnOnce<()>>::call_once::h1961fd39a77948a8 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 39: 0x64277ebde3bc - std::panicking::catch_unwind::do_call::hc11cd39e70bd8e02 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 40: 0x64277ec1b07b - __rust_try [INFO] [stdout] 41: 0x64277ec16b7a - std::panicking::catch_unwind::h2d15a55ccb17e3b1 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 42: 0x64277ec16b7a - std::panic::catch_unwind::h1514ec6a4230cf2a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 43: 0x64277ec16b7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h3f0b802b6c0ecde5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 44: 0x64277ebfcb3f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1c278c0d3cc56338 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 45: 0x64277ec840bf - as core::ops::function::FnOnce>::call_once::h1d452951a81e9d0a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 46: 0x64277ec840bf - std::sys::pal::unix::thread::Thread::new::thread_start::h29c84e109630689a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 47: 0x77ee87f82aa4 - [INFO] [stdout] 48: 0x77ee8800fa34 - clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/taxonomy_fail.rs:1: unexpected error: '1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/taxonomy_fail.rs:55: unexpected error: '55:3: 55:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/taxonomy_fail.rs:63: unexpected error: '63:22: 63:44: the trait bound `Either: Taxonomy` is not satisfied [E0277]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/taxonomy_fail.rs:63: expected error not found: type mismatch resolving `>::Res == Reptile` [INFO] [stdout] [INFO] [stdout] error: 3 unexpected errors found, 1 expected errors not found [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/compile-fail/taxonomy_fail.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/taxonomy_fail.stage-id" "-A" "unused" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/taxonomy_fail.stage-id.aux" [INFO] [stdout] unexpected errors (from JSON output): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 1, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 55, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "55:3: 55:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 63, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "63:22: 63:44: the trait bound `Either: Taxonomy` is not satisfied [E0277]", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] not found errors (from test file): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 63, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "type mismatch resolving `>::Res == Reptile`", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] thread '[compile-fail] compile-fail/taxonomy_fail.rs' (582) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13: [INFO] [stdout] explicit panic [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::libunwind::trace::h589a96ef7638b383 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::trace_unsynchronized::h23a30a7548c40de4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64277ecb5bd2 - std::sys::backtrace::_print_fmt::h87dabd6535c8c07a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64277ecb5bd2 - ::fmt::hffd20ad4e5eca8ab [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64277ecc73af - core::fmt::rt::Argument::fmt::h75c83e3fd5ce2419 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64277ecc73af - core::fmt::write::h6d9d3a7cfd7b84f5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x64277ec7d143 - std::io::default_write_fmt::he11a713685e2464d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64277ec7d143 - std::io::Write::write_fmt::h9d08f7e050bd2612 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x64277ec8a602 - std::sys::backtrace::BacktraceLock::print::hb28797143397220e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64277ec9039f - std::panicking::default_hook::{{closure}}::h7555113b62983743 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x64277ec90231 - std::panicking::default_hook::h2714b564abe8d914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x64277e82002e - as core::ops::function::Fn>::call::h0e9de8cceb22406e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x64277e82002e - test::test_main_with_exit_callback::{{closure}}::h8125bd66cf4739d0 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64277ec90aee - as core::ops::function::Fn>::call::h1fd0a0802eaec16b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x64277ec90aee - std::panicking::panic_with_hook::h190dc82263685ec5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x64277ec900ac - std::panicking::begin_panic::{{closure}}::h371cca45440e6abf [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:771:9 [INFO] [stdout] 16: 0x64277ec8a749 - std::sys::backtrace::__rust_end_short_backtrace::h9b3a6b121b8c060d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x64277ec9007e - std::panicking::begin_panic::h3af9d90983463902 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:770:5 [INFO] [stdout] 18: 0x64277e89753c - compiletest_rs::runtest::TestCx::check_expected_errors::h0e4d6a35760f7cc9 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13 [INFO] [stdout] 19: 0x64277e88a766 - compiletest_rs::runtest::TestCx::run_cfail_test::h655c83d667fef8ab [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:179:18 [INFO] [stdout] 20: 0x64277e8875ec - compiletest_rs::runtest::TestCx::run_revision::hc46338075548c65f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:131:31 [INFO] [stdout] 21: 0x64277e883c5f - compiletest_rs::runtest::run::h5fe3c976d8b40e9f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:83:17 [INFO] [stdout] 22: 0x64277e844f38 - compiletest_rs::make_test_closure::{{closure}}::h54edfd52e1527495 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:323:9 [INFO] [stdout] 23: 0x64277e8de4be - core::ops::function::FnOnce::call_once{{vtable.shim}}::hab47b15b3f95800a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 25: 0x64277ebd5564 - tester::__rust_begin_short_backtrace::h5150244038661dbc [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:516:5 [INFO] [stdout] 26: 0x64277ebd8b83 - tester::run_test::{{closure}}::hff34ea2bc503449b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:500:34 [INFO] [stdout] 27: 0x64277ebfcc38 - core::ops::function::FnOnce::call_once{{vtable.shim}}::he9b78dc7136dc8fb [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 28: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 29: 0x64277ebebe14 - as core::ops::function::FnOnce<()>>::call_once::h30f0b0eed8e482da [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 30: 0x64277ebde2ed - std::panicking::catch_unwind::do_call::h293b0844e3279831 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x64277ec20d1b - __rust_try [INFO] [stdout] 32: 0x64277ec1c01a - std::panicking::catch_unwind::h58b0fc39e40b1d57 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 33: 0x64277ec1c01a - std::panic::catch_unwind::hc4ed729524bce718 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 34: 0x64277ebd3995 - tester::run_test_in_process::h06dd2fae10c47743 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:539:18 [INFO] [stdout] 35: 0x64277ebd7e01 - tester::run_test::run_test_inner::{{closure}}::heefffadb11465e2b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:449:39 [INFO] [stdout] 36: 0x64277ec10786 - std::sys::backtrace::__rust_begin_short_backtrace::h94cd439659c5cd01 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 37: 0x64277ec16f9f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9901538627fa5989 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 38: 0x64277ebebdf4 - as core::ops::function::FnOnce<()>>::call_once::h1961fd39a77948a8 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 39: 0x64277ebde3bc - std::panicking::catch_unwind::do_call::hc11cd39e70bd8e02 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 40: 0x64277ec1b07b - __rust_try [INFO] [stdout] 41: 0x64277ec16b7a - std::panicking::catch_unwind::h2d15a55ccb17e3b1 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 42: 0x64277ec16b7a - std::panic::catch_unwind::h1514ec6a4230cf2a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 43: 0x64277ec16b7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h3f0b802b6c0ecde5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 44: 0x64277ebfcb3f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1c278c0d3cc56338 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 45: 0x64277ec840bf - as core::ops::function::FnOnce>::call_once::h1d452951a81e9d0a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 46: 0x64277ec840bf - std::sys::pal::unix::thread::Thread::new::thread_start::h29c84e109630689a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 47: 0x77ee87f82aa4 - [INFO] [stdout] 48: 0x77ee8800fa34 - clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_missing_method.rs:1: unexpected error: '1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_missing_method.rs:30: unexpected error: '30:3: 30:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_missing_method.rs:46: unexpected error: '46:18: 46:21: no method named `get` found for struct `Wrap` in the current scope [E0599]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_missing_method.rs:47: unexpected error: '47:7: 47:13: no method named `change` found for struct `Wrap` in the current scope [E0599]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_missing_method.rs:48: unexpected error: '48:18: 48:26: no method named `into_u32` found for struct `Wrap` in the current scope [E0599]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_to_missing_method.rs:6: expected error not found: target_owned was not specified but was needed [INFO] [stdout] [INFO] [stdout] error: 5 unexpected errors found, 1 expected errors not found [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/compile-fail/delegate_to_missing_method.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/delegate_to_missing_method.stage-id" "-A" "unused" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/delegate_to_missing_method.stage-id.aux" [INFO] [stdout] unexpected errors (from JSON output): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 1, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 30, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "30:3: 30:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 46, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "46:18: 46:21: no method named `get` found for struct `Wrap` in the current scope [E0599]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 47, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "47:7: 47:13: no method named `change` found for struct `Wrap` in the current scope [E0599]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 48, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "48:18: 48:26: no method named `into_u32` found for struct `Wrap` in the current scope [E0599]", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] not found errors (from test file): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 6, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "target_owned was not specified but was needed", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] thread '[compile-fail] compile-fail/delegate_to_missing_method.rs' (35) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13: [INFO] [stdout] explicit panic [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::libunwind::trace::h589a96ef7638b383 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::trace_unsynchronized::h23a30a7548c40de4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64277ecb5bd2 - std::sys::backtrace::_print_fmt::h87dabd6535c8c07a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64277ecb5bd2 - ::fmt::hffd20ad4e5eca8ab [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64277ecc73af - core::fmt::rt::Argument::fmt::h75c83e3fd5ce2419 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64277ecc73af - core::fmt::write::h6d9d3a7cfd7b84f5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x64277ec7d143 - std::io::default_write_fmt::he11a713685e2464d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64277ec7d143 - std::io::Write::write_fmt::h9d08f7e050bd2612 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x64277ec8a602 - std::sys::backtrace::BacktraceLock::print::hb28797143397220e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64277ec9039f - std::panicking::default_hook::{{closure}}::h7555113b62983743 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x64277ec90231 - std::panicking::default_hook::h2714b564abe8d914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x64277e82002e - as core::ops::function::Fn>::call::h0e9de8cceb22406e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x64277e82002e - test::test_main_with_exit_callback::{{closure}}::h8125bd66cf4739d0 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64277ec90aee - as core::ops::function::Fn>::call::h1fd0a0802eaec16b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x64277ec90aee - std::panicking::panic_with_hook::h190dc82263685ec5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x64277ec900ac - std::panicking::begin_panic::{{closure}}::h371cca45440e6abf [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:771:9 [INFO] [stdout] 16: 0x64277ec8a749 - std::sys::backtrace::__rust_end_short_backtrace::h9b3a6b121b8c060d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x64277ec9007e - std::panicking::begin_panic::h3af9d90983463902 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:770:5 [INFO] [stdout] 18: 0x64277e89753c - compiletest_rs::runtest::TestCx::check_expected_errors::h0e4d6a35760f7cc9 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13 [INFO] [stdout] 19: 0x64277e88a766 - compiletest_rs::runtest::TestCx::run_cfail_test::h655c83d667fef8ab [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:179:18 [INFO] [stdout] 20: 0x64277e8875ec - compiletest_rs::runtest::TestCx::run_revision::hc46338075548c65f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:131:31 [INFO] [stdout] 21: 0x64277e883c5f - compiletest_rs::runtest::run::h5fe3c976d8b40e9f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:83:17 [INFO] [stdout] 22: 0x64277e844f38 - compiletest_rs::make_test_closure::{{closure}}::h54edfd52e1527495 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:323:9 [INFO] [stdout] 23: 0x64277e8de4be - core::ops::function::FnOnce::call_once{{vtable.shim}}::hab47b15b3f95800a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 25: 0x64277ebd5564 - tester::__rust_begin_short_backtrace::h5150244038661dbc [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:516:5 [INFO] [stdout] 26: 0x64277ebd8b83 - tester::run_test::{{closure}}::hff34ea2bc503449b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:500:34 [INFO] [stdout] 27: 0x64277ebfcc38 - core::ops::function::FnOnce::call_once{{vtable.shim}}::he9b78dc7136dc8fb [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 28: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 29: 0x64277ebebe14 - as core::ops::function::FnOnce<()>>::call_once::h30f0b0eed8e482da [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 30: 0x64277ebde2ed - std::panicking::catch_unwind::do_call::h293b0844e3279831 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x64277ec20d1b - __rust_try [INFO] [stdout] 32: 0x64277ec1c01a - std::panicking::catch_unwind::h58b0fc39e40b1d57 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 33: 0x64277ec1c01a - std::panic::catch_unwind::hc4ed729524bce718 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 34: 0x64277ebd3995 - tester::run_test_in_process::h06dd2fae10c47743 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:539:18 [INFO] [stdout] 35: 0x64277ebd7e01 - tester::run_test::run_test_inner::{{closure}}::heefffadb11465e2b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:449:39 [INFO] [stdout] 36: 0x64277ec10786 - std::sys::backtrace::__rust_begin_short_backtrace::h94cd439659c5cd01 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 37: 0x64277ec16f9f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9901538627fa5989 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 38: 0x64277ebebdf4 - as core::ops::function::FnOnce<()>>::call_once::h1961fd39a77948a8 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 39: 0x64277ebde3bc - std::panicking::catch_unwind::do_call::hc11cd39e70bd8e02 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 40: 0x64277ec1b07b - __rust_try [INFO] [stdout] 41: 0x64277ec16b7a - std::panicking::catch_unwind::h2d15a55ccb17e3b1 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 42: 0x64277ec16b7a - std::panic::catch_unwind::h1514ec6a4230cf2a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 43: 0x64277ec16b7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h3f0b802b6c0ecde5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 44: 0x64277ebfcb3f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1c278c0d3cc56338 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 45: 0x64277ec840bf - as core::ops::function::FnOnce>::call_once::h1d452951a81e9d0a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 46: 0x64277ec840bf - std::sys::pal::unix::thread::Thread::new::thread_start::h29c84e109630689a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 47: 0x77ee87f82aa4 - [INFO] [stdout] 48: 0x77ee8800fa34 - clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_self_fail.rs:1: unexpected error: '1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_self_fail.rs:32: unexpected error: '32:1: 32:27: the name `HashMap` is defined multiple times [E0255]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_self_fail.rs:36: unexpected error: '36:1: 36:25: the name `BTreeMap` is defined multiple times [E0255]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_self_fail.rs:31: unexpected error: '31:3: 31:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_self_fail.rs:35: unexpected error: '35:3: 35:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_self_fail.rs:39: unexpected error: '39:3: 39:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_self_fail.rs:40: unexpected error: '40:3: 40:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_self_fail.rs:32: unexpected error: '32:16: 32:17: type parameter `K` is never used [E0392]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_self_fail.rs:32: unexpected error: '32:19: 32:20: type parameter `V` is never used [E0392]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_self_fail.rs:32: unexpected error: '32:22: 32:23: type parameter `S` is never used [E0392]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_self_fail.rs:36: unexpected error: '36:17: 36:18: type parameter `K` is never used [E0392]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_self_fail.rs:36: unexpected error: '36:20: 36:21: type parameter `V` is never used [E0392]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_self_fail.rs:49: unexpected error: '49:29: 49:32: no method named `get` found for enum `Either` in the current scope [E0599]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/delegate_self_fail.rs:17: expected error not found: function cannot return without recursing [unconditional_recursion] [INFO] [stdout] [INFO] [stdout] error: 13 unexpected errors found, 1 expected errors not found [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/compile-fail/delegate_self_fail.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/delegate_self_fail.stage-id" "-A" "unused" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/delegate_self_fail.stage-id.aux" [INFO] [stdout] unexpected errors (from JSON output): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 1, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 32, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "32:1: 32:27: the name `HashMap` is defined multiple times [E0255]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 36, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "36:1: 36:25: the name `BTreeMap` is defined multiple times [E0255]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 31, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "31:3: 31:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 35, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "35:3: 35:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 39, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "39:3: 39:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 40, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "40:3: 40:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 32, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "32:16: 32:17: type parameter `K` is never used [E0392]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 32, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "32:19: 32:20: type parameter `V` is never used [E0392]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 32, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "32:22: 32:23: type parameter `S` is never used [E0392]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 36, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "36:17: 36:18: type parameter `K` is never used [E0392]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 36, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "36:20: 36:21: type parameter `V` is never used [E0392]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 49, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "49:29: 49:32: no method named `get` found for enum `Either` in the current scope [E0599]", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] not found errors (from test file): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 17, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "function cannot return without recursing [unconditional_recursion]", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] thread '[compile-fail] compile-fail/delegate_self_fail.rs' (30) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13: [INFO] [stdout] explicit panic [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::libunwind::trace::h589a96ef7638b383 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::trace_unsynchronized::h23a30a7548c40de4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64277ecb5bd2 - std::sys::backtrace::_print_fmt::h87dabd6535c8c07a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64277ecb5bd2 - ::fmt::hffd20ad4e5eca8ab [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64277ecc73af - core::fmt::rt::Argument::fmt::h75c83e3fd5ce2419 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64277ecc73af - core::fmt::write::h6d9d3a7cfd7b84f5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x64277ec7d143 - std::io::default_write_fmt::he11a713685e2464d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64277ec7d143 - std::io::Write::write_fmt::h9d08f7e050bd2612 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x64277ec8a602 - std::sys::backtrace::BacktraceLock::print::hb28797143397220e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64277ec9039f - std::panicking::default_hook::{{closure}}::h7555113b62983743 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x64277ec90231 - std::panicking::default_hook::h2714b564abe8d914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x64277e82002e - as core::ops::function::Fn>::call::h0e9de8cceb22406e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x64277e82002e - test::test_main_with_exit_callback::{{closure}}::h8125bd66cf4739d0 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64277ec90aee - as core::ops::function::Fn>::call::h1fd0a0802eaec16b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x64277ec90aee - std::panicking::panic_with_hook::h190dc82263685ec5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x64277ec900ac - std::panicking::begin_panic::{{closure}}::h371cca45440e6abf [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:771:9 [INFO] [stdout] 16: 0x64277ec8a749 - std::sys::backtrace::__rust_end_short_backtrace::h9b3a6b121b8c060d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x64277ec9007e - std::panicking::begin_panic::h3af9d90983463902 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:770:5 [INFO] [stdout] 18: 0x64277e89753c - compiletest_rs::runtest::TestCx::check_expected_errors::h0e4d6a35760f7cc9 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13 [INFO] [stdout] 19: 0x64277e88a766 - compiletest_rs::runtest::TestCx::run_cfail_test::h655c83d667fef8ab [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:179:18 [INFO] [stdout] 20: 0x64277e8875ec - compiletest_rs::runtest::TestCx::run_revision::hc46338075548c65f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:131:31 [INFO] [stdout] 21: 0x64277e883c5f - compiletest_rs::runtest::run::h5fe3c976d8b40e9f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:83:17 [INFO] [stdout] 22: 0x64277e844f38 - compiletest_rs::make_test_closure::{{closure}}::h54edfd52e1527495 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:323:9 [INFO] [stdout] 23: 0x64277e8de4be - core::ops::function::FnOnce::call_once{{vtable.shim}}::hab47b15b3f95800a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 25: 0x64277ebd5564 - tester::__rust_begin_short_backtrace::h5150244038661dbc [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:516:5 [INFO] [stdout] 26: 0x64277ebd8b83 - tester::run_test::{{closure}}::hff34ea2bc503449b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:500:34 [INFO] [stdout] 27: 0x64277ebfcc38 - core::ops::function::FnOnce::call_once{{vtable.shim}}::he9b78dc7136dc8fb [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 28: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 29: 0x64277ebebe14 - as core::ops::function::FnOnce<()>>::call_once::h30f0b0eed8e482da [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 30: 0x64277ebde2ed - std::panicking::catch_unwind::do_call::h293b0844e3279831 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x64277ec20d1b - __rust_try [INFO] [stdout] 32: 0x64277ec1c01a - std::panicking::catch_unwind::h58b0fc39e40b1d57 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 33: 0x64277ec1c01a - std::panic::catch_unwind::hc4ed729524bce718 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 34: 0x64277ebd3995 - tester::run_test_in_process::h06dd2fae10c47743 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:539:18 [INFO] [stdout] 35: 0x64277ebd7e01 - tester::run_test::run_test_inner::{{closure}}::heefffadb11465e2b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:449:39 [INFO] [stdout] 36: 0x64277ec10786 - std::sys::backtrace::__rust_begin_short_backtrace::h94cd439659c5cd01 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 37: 0x64277ec16f9f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9901538627fa5989 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 38: 0x64277ebebdf4 - as core::ops::function::FnOnce<()>>::call_once::h1961fd39a77948a8 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 39: 0x64277ebde3bc - std::panicking::catch_unwind::do_call::hc11cd39e70bd8e02 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 40: 0x64277ec1b07b - __rust_try [INFO] [stdout] 41: 0x64277ec16b7a - std::panicking::catch_unwind::h2d15a55ccb17e3b1 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 42: 0x64277ec16b7a - std::panic::catch_unwind::h1514ec6a4230cf2a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 43: 0x64277ec16b7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h3f0b802b6c0ecde5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 44: 0x64277ebfcb3f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1c278c0d3cc56338 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 45: 0x64277ec840bf - as core::ops::function::FnOnce>::call_once::h1d452951a81e9d0a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 46: 0x64277ec840bf - std::sys::pal::unix::thread::Thread::new::thread_start::h29c84e109630689a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 47: 0x77ee87f82aa4 - [INFO] [stdout] 48: 0x77ee8800fa34 - clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/muti_field_struct.rs:1: unexpected error: '1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/muti_field_struct.rs:27: unexpected error: '27:3: 27:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/muti_field_struct.rs:29: unexpected error: '29:3: 29:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/muti_field_struct.rs:30: unexpected error: '30:3: 30:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/muti_field_struct.rs:31: unexpected error: '31:3: 31:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/muti_field_struct.rs:32: unexpected error: '32:3: 32:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/muti_field_struct.rs:33: unexpected error: '33:3: 33:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/muti_field_struct.rs:34: unexpected error: '34:3: 34:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/muti_field_struct.rs:27: expected error not found: "target" value on #[delegate] attribute has to be specified for structs with multiple fields [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/muti_field_struct.rs:29: expected error not found: expected `,` [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/muti_field_struct.rs:30: expected error not found: expected `=` [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/muti_field_struct.rs:31: expected error not found: invalid key for a delegate attribute [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/muti_field_struct.rs:32: expected error not found: unexpected token [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/muti_field_struct.rs:33: expected error not found: Unknown field specified as "target" value in #[delegate] attribute [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/muti_field_struct.rs:34: expected error not found: Unknown field specified as "target" value in #[delegate] attribute [INFO] [stdout] [INFO] [stdout] error: 8 unexpected errors found, 7 expected errors not found [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/compile-fail/muti_field_struct.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/muti_field_struct.stage-id" "-A" "unused" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/muti_field_struct.stage-id.aux" [INFO] [stdout] unexpected errors (from JSON output): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 1, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 27, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "27:3: 27:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 29, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "29:3: 29:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 30, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "30:3: 30:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 31, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "31:3: 31:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 32, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "32:3: 32:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 33, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "33:3: 33:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 34, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "34:3: 34:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] not found errors (from test file): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 27, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "\"target\" value on #[delegate] attribute has to be specified for structs with multiple fields", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 29, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "expected `,`", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 30, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "expected `=`", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 31, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "invalid key for a delegate attribute", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 32, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "unexpected token", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 33, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "Unknown field specified as \"target\" value in #[delegate] attribute", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 34, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "Unknown field specified as \"target\" value in #[delegate] attribute", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] thread '[compile-fail] compile-fail/muti_field_struct.rs' (459) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13: [INFO] [stdout] explicit panic [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::libunwind::trace::h589a96ef7638b383 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::trace_unsynchronized::h23a30a7548c40de4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64277ecb5bd2 - std::sys::backtrace::_print_fmt::h87dabd6535c8c07a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64277ecb5bd2 - ::fmt::hffd20ad4e5eca8ab [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64277ecc73af - core::fmt::rt::Argument::fmt::h75c83e3fd5ce2419 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64277ecc73af - core::fmt::write::h6d9d3a7cfd7b84f5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x64277ec7d143 - std::io::default_write_fmt::he11a713685e2464d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64277ec7d143 - std::io::Write::write_fmt::h9d08f7e050bd2612 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x64277ec8a602 - std::sys::backtrace::BacktraceLock::print::hb28797143397220e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64277ec9039f - std::panicking::default_hook::{{closure}}::h7555113b62983743 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x64277ec90231 - std::panicking::default_hook::h2714b564abe8d914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x64277e82002e - as core::ops::function::Fn>::call::h0e9de8cceb22406e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x64277e82002e - test::test_main_with_exit_callback::{{closure}}::h8125bd66cf4739d0 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64277ec90aee - as core::ops::function::Fn>::call::h1fd0a0802eaec16b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x64277ec90aee - std::panicking::panic_with_hook::h190dc82263685ec5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x64277ec900ac - std::panicking::begin_panic::{{closure}}::h371cca45440e6abf [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:771:9 [INFO] [stdout] 16: 0x64277ec8a749 - std::sys::backtrace::__rust_end_short_backtrace::h9b3a6b121b8c060d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x64277ec9007e - std::panicking::begin_panic::h3af9d90983463902 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:770:5 [INFO] [stdout] 18: 0x64277e89753c - compiletest_rs::runtest::TestCx::check_expected_errors::h0e4d6a35760f7cc9 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13 [INFO] [stdout] 19: 0x64277e88a766 - compiletest_rs::runtest::TestCx::run_cfail_test::h655c83d667fef8ab [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:179:18 [INFO] [stdout] 20: 0x64277e8875ec - compiletest_rs::runtest::TestCx::run_revision::hc46338075548c65f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:131:31 [INFO] [stdout] 21: 0x64277e883c5f - compiletest_rs::runtest::run::h5fe3c976d8b40e9f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:83:17 [INFO] [stdout] 22: 0x64277e844f38 - compiletest_rs::make_test_closure::{{closure}}::h54edfd52e1527495 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:323:9 [INFO] [stdout] 23: 0x64277e8de4be - core::ops::function::FnOnce::call_once{{vtable.shim}}::hab47b15b3f95800a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 25: 0x64277ebd5564 - tester::__rust_begin_short_backtrace::h5150244038661dbc [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:516:5 [INFO] [stdout] 26: 0x64277ebd8b83 - tester::run_test::{{closure}}::hff34ea2bc503449b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:500:34 [INFO] [stdout] 27: 0x64277ebfcc38 - core::ops::function::FnOnce::call_once{{vtable.shim}}::he9b78dc7136dc8fb [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 28: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 29: 0x64277ebebe14 - as core::ops::function::FnOnce<()>>::call_once::h30f0b0eed8e482da [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 30: 0x64277ebde2ed - std::panicking::catch_unwind::do_call::h293b0844e3279831 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x64277ec20d1b - __rust_try [INFO] [stdout] 32: 0x64277ec1c01a - std::panicking::catch_unwind::h58b0fc39e40b1d57 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 33: 0x64277ec1c01a - std::panic::catch_unwind::hc4ed729524bce718 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 34: 0x64277ebd3995 - tester::run_test_in_process::h06dd2fae10c47743 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:539:18 [INFO] [stdout] 35: 0x64277ebd7e01 - tester::run_test::run_test_inner::{{closure}}::heefffadb11465e2b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:449:39 [INFO] [stdout] 36: 0x64277ec10786 - std::sys::backtrace::__rust_begin_short_backtrace::h94cd439659c5cd01 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 37: 0x64277ec16f9f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9901538627fa5989 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 38: 0x64277ebebdf4 - as core::ops::function::FnOnce<()>>::call_once::h1961fd39a77948a8 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 39: 0x64277ebde3bc - std::panicking::catch_unwind::do_call::hc11cd39e70bd8e02 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 40: 0x64277ec1b07b - __rust_try [INFO] [stdout] 41: 0x64277ec16b7a - std::panicking::catch_unwind::h2d15a55ccb17e3b1 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 42: 0x64277ec16b7a - std::panic::catch_unwind::h1514ec6a4230cf2a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 43: 0x64277ec16b7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h3f0b802b6c0ecde5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 44: 0x64277ebfcb3f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1c278c0d3cc56338 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 45: 0x64277ec840bf - as core::ops::function::FnOnce>::call_once::h1d452951a81e9d0a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 46: 0x64277ec840bf - std::sys::pal::unix::thread::Thread::new::thread_start::h29c84e109630689a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 47: 0x77ee87f82aa4 - [INFO] [stdout] 48: 0x77ee8800fa34 - clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_items_in_remote_methods_impl.rs:1: unexpected error: '1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_items_in_remote_methods_impl.rs:25: unexpected error: '25:5: 25:27: associated function in `impl` without body' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_items_in_remote_methods_impl.rs:26: unexpected error: '26:5: 26:39: associated function in `impl` without body' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_items_in_remote_methods_impl.rs:28: unexpected error: '28:5: 28:38: associated function in `impl` without body' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_items_in_remote_methods_impl.rs:29: unexpected error: '29:5: 29:29: associated function in `impl` without body' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_items_in_remote_methods_impl.rs:22: unexpected error: '22:3: 22:11: cannot find attribute `delegate` in this scope' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_items_in_remote_methods_impl.rs:40: unexpected error: '40:5: 40:24: inherent associated types are unstable [E0658]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_items_in_remote_methods_impl.rs:24: unexpected error: '24:1: 24:33: cannot define inherent `impl` for a type outside of the crate where the type is defined [E0116]' [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_items_in_remote_methods_impl.rs:22: expected message not found: no method named `deref` found for reference `&Box` in the current scope [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_items_in_remote_methods_impl.rs:28: expected error not found: This method is not used by any `delegate` attributes; please remove it [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_items_in_remote_methods_impl.rs:29: expected error not found: delegated to methods must return [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_items_in_remote_methods_impl.rs:31: expected error not found: Only method signatures are allowed here (no blocks!) [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_items_in_remote_methods_impl.rs:31: expected error not found: This method is not used by any `delegate` attributes; please remove it [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_items_in_remote_methods_impl.rs:37: expected error not found: Only method signatures are allowed here, everything else is discarded [INFO] [stdout] [INFO] [stdout] error: tests/compile-fail/extra_items_in_remote_methods_impl.rs:40: expected error not found: Only method signatures are allowed here, everything else is discarded [INFO] [stdout] [INFO] [stdout] error: 8 unexpected errors found, 7 expected errors not found [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/compile-fail/extra_items_in_remote_methods_impl.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/extra_items_in_remote_methods_impl.stage-id" "-A" "unused" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/extra_items_in_remote_methods_impl.stage-id.aux" [INFO] [stdout] unexpected errors (from JSON output): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 1, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "1:1: 1:25: multiple candidates for `dylib` dependency `ambassador` found [E0464]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 25, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "25:5: 25:27: associated function in `impl` without body", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 26, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "26:5: 26:39: associated function in `impl` without body", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 28, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "28:5: 28:38: associated function in `impl` without body", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 29, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "29:5: 29:29: associated function in `impl` without body", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 22, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "22:3: 22:11: cannot find attribute `delegate` in this scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 40, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "40:5: 40:24: inherent associated types are unstable [E0658]", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 24, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "24:1: 24:33: cannot define inherent `impl` for a type outside of the crate where the type is defined [E0116]", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] not found errors (from test file): [ [INFO] [stdout] Error { [INFO] [stdout] line_num: 22, [INFO] [stdout] kind: None, [INFO] [stdout] msg: "no method named `deref` found for reference `&Box` in the current scope", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 28, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "This method is not used by any `delegate` attributes; please remove it", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 29, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "delegated to methods must return", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 31, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "Only method signatures are allowed here (no blocks!)", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 31, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "This method is not used by any `delegate` attributes; please remove it", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 37, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "Only method signatures are allowed here, everything else is discarded", [INFO] [stdout] }, [INFO] [stdout] Error { [INFO] [stdout] line_num: 40, [INFO] [stdout] kind: Some( [INFO] [stdout] Error, [INFO] [stdout] ), [INFO] [stdout] msg: "Only method signatures are allowed here, everything else is discarded", [INFO] [stdout] }, [INFO] [stdout] ] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] thread '[compile-fail] compile-fail/extra_items_in_remote_methods_impl.rs' (362) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13: [INFO] [stdout] explicit panic [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::libunwind::trace::h589a96ef7638b383 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::trace_unsynchronized::h23a30a7548c40de4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64277ecb5bd2 - std::sys::backtrace::_print_fmt::h87dabd6535c8c07a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64277ecb5bd2 - ::fmt::hffd20ad4e5eca8ab [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64277ecc73af - core::fmt::rt::Argument::fmt::h75c83e3fd5ce2419 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64277ecc73af - core::fmt::write::h6d9d3a7cfd7b84f5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x64277ec7d143 - std::io::default_write_fmt::he11a713685e2464d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64277ec7d143 - std::io::Write::write_fmt::h9d08f7e050bd2612 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x64277ec8a602 - std::sys::backtrace::BacktraceLock::print::hb28797143397220e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64277ec9039f - std::panicking::default_hook::{{closure}}::h7555113b62983743 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x64277ec90231 - std::panicking::default_hook::h2714b564abe8d914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x64277e82002e - as core::ops::function::Fn>::call::h0e9de8cceb22406e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x64277e82002e - test::test_main_with_exit_callback::{{closure}}::h8125bd66cf4739d0 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64277ec90aee - as core::ops::function::Fn>::call::h1fd0a0802eaec16b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x64277ec90aee - std::panicking::panic_with_hook::h190dc82263685ec5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x64277ec900ac - std::panicking::begin_panic::{{closure}}::h371cca45440e6abf [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:771:9 [INFO] [stdout] 16: 0x64277ec8a749 - std::sys::backtrace::__rust_end_short_backtrace::h9b3a6b121b8c060d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x64277ec9007e - std::panicking::begin_panic::h3af9d90983463902 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:770:5 [INFO] [stdout] 18: 0x64277e89753c - compiletest_rs::runtest::TestCx::check_expected_errors::h0e4d6a35760f7cc9 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:1092:13 [INFO] [stdout] 19: 0x64277e88a766 - compiletest_rs::runtest::TestCx::run_cfail_test::h655c83d667fef8ab [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:179:18 [INFO] [stdout] 20: 0x64277e8875ec - compiletest_rs::runtest::TestCx::run_revision::hc46338075548c65f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:131:31 [INFO] [stdout] 21: 0x64277e883c5f - compiletest_rs::runtest::run::h5fe3c976d8b40e9f [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/runtest.rs:83:17 [INFO] [stdout] 22: 0x64277e844f38 - compiletest_rs::make_test_closure::{{closure}}::h54edfd52e1527495 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:323:9 [INFO] [stdout] 23: 0x64277e8de4be - core::ops::function::FnOnce::call_once{{vtable.shim}}::hab47b15b3f95800a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 25: 0x64277ebd5564 - tester::__rust_begin_short_backtrace::h5150244038661dbc [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:516:5 [INFO] [stdout] 26: 0x64277ebd8b83 - tester::run_test::{{closure}}::hff34ea2bc503449b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:500:34 [INFO] [stdout] 27: 0x64277ebfcc38 - core::ops::function::FnOnce::call_once{{vtable.shim}}::he9b78dc7136dc8fb [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 28: 0x64277ebebd68 - as core::ops::function::FnOnce>::call_once::h7874aec752d2b0f3 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 29: 0x64277ebebe14 - as core::ops::function::FnOnce<()>>::call_once::h30f0b0eed8e482da [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 30: 0x64277ebde2ed - std::panicking::catch_unwind::do_call::h293b0844e3279831 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 31: 0x64277ec20d1b - __rust_try [INFO] [stdout] 32: 0x64277ec1c01a - std::panicking::catch_unwind::h58b0fc39e40b1d57 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 33: 0x64277ec1c01a - std::panic::catch_unwind::hc4ed729524bce718 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 34: 0x64277ebd3995 - tester::run_test_in_process::h06dd2fae10c47743 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:539:18 [INFO] [stdout] 35: 0x64277ebd7e01 - tester::run_test::run_test_inner::{{closure}}::heefffadb11465e2b [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tester-0.9.1/src/lib.rs:449:39 [INFO] [stdout] 36: 0x64277ec10786 - std::sys::backtrace::__rust_begin_short_backtrace::h94cd439659c5cd01 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 37: 0x64277ec16f9f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9901538627fa5989 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 38: 0x64277ebebdf4 - as core::ops::function::FnOnce<()>>::call_once::h1961fd39a77948a8 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 39: 0x64277ebde3bc - std::panicking::catch_unwind::do_call::hc11cd39e70bd8e02 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 40: 0x64277ec1b07b - __rust_try [INFO] [stdout] 41: 0x64277ec16b7a - std::panicking::catch_unwind::h2d15a55ccb17e3b1 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 42: 0x64277ec16b7a - std::panic::catch_unwind::h1514ec6a4230cf2a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 43: 0x64277ec16b7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h3f0b802b6c0ecde5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 44: 0x64277ebfcb3f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1c278c0d3cc56338 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 45: 0x64277ec840bf - as core::ops::function::FnOnce>::call_once::h1d452951a81e9d0a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 46: 0x64277ec840bf - std::sys::pal::unix::thread::Thread::new::thread_start::h29c84e109630689a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 47: 0x77ee87f82aa4 - [INFO] [stdout] 48: 0x77ee8800fa34 - clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] thread 'compile_fail' (26) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:111:22: [INFO] [stdout] Some tests failed [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::libunwind::trace::h589a96ef7638b383 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::trace_unsynchronized::h23a30a7548c40de4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64277ecb5bd2 - std::sys::backtrace::_print_fmt::h87dabd6535c8c07a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64277ecb5bd2 - ::fmt::hffd20ad4e5eca8ab [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64277ecc73af - core::fmt::rt::Argument::fmt::h75c83e3fd5ce2419 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64277ecc73af - core::fmt::write::h6d9d3a7cfd7b84f5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x64277ec7d143 - std::io::default_write_fmt::he11a713685e2464d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64277ec7d143 - std::io::Write::write_fmt::h9d08f7e050bd2612 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x64277ec8a602 - std::sys::backtrace::BacktraceLock::print::hb28797143397220e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64277ec9039f - std::panicking::default_hook::{{closure}}::h7555113b62983743 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x64277ec90231 - std::panicking::default_hook::h2714b564abe8d914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x64277e82002e - as core::ops::function::Fn>::call::h0e9de8cceb22406e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x64277e82002e - test::test_main_with_exit_callback::{{closure}}::h8125bd66cf4739d0 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64277ec90aee - as core::ops::function::Fn>::call::h1fd0a0802eaec16b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x64277ec90aee - std::panicking::panic_with_hook::h190dc82263685ec5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x64277ec900ac - std::panicking::begin_panic::{{closure}}::h371cca45440e6abf [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:771:9 [INFO] [stdout] 16: 0x64277ec8a749 - std::sys::backtrace::__rust_end_short_backtrace::h9b3a6b121b8c060d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x64277ec9007e - std::panicking::begin_panic::h3af9d90983463902 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:770:5 [INFO] [stdout] 18: 0x64277e84a204 - compiletest_rs::run_tests::hd587e4ec38833717 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:111:22 [INFO] [stdout] 19: 0x64277e7fec2a - compiletest::run_mode::hd4365168a6ab0f9f [INFO] [stdout] at /opt/rustwide/workdir/tests/compiletest.rs:15:5 [INFO] [stdout] 20: 0x64277e7fe932 - compiletest::compile_fail::h2a826041cea8e23d [INFO] [stdout] at /opt/rustwide/workdir/tests/compiletest.rs:25:5 [INFO] [stdout] 21: 0x64277e7fe957 - compiletest::compile_fail::{{closure}}::h1d319639e3c585f2 [INFO] [stdout] at /opt/rustwide/workdir/tests/compiletest.rs:24:18 [INFO] [stdout] 22: 0x64277e7fedb6 - core::ops::function::FnOnce::call_once::h0a8b7df47ab716ec [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 23: 0x64277e81fdeb - core::ops::function::FnOnce::call_once::hdbf42be2a49fb464 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x64277e81fdeb - test::__rust_begin_short_backtrace::h8ae08814d38cb356 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:663:18 [INFO] [stdout] 25: 0x64277e8358d5 - test::run_test_in_process::{{closure}}::h54574ee4f414d690 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:686:74 [INFO] [stdout] 26: 0x64277e8358d5 - as core::ops::function::FnOnce<()>>::call_once::h01a0b7e7aad1a501 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 27: 0x64277e8358d5 - std::panicking::catch_unwind::do_call::h23820e817c5612cd [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 28: 0x64277e8358d5 - std::panicking::catch_unwind::h89c73a1febce5587 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 29: 0x64277e8358d5 - std::panic::catch_unwind::h6f55caf410861914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 30: 0x64277e8358d5 - test::run_test_in_process::h4db851878e5d3983 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:686:27 [INFO] [stdout] 31: 0x64277e8358d5 - test::run_test::{{closure}}::h57e8c5acaceacd24 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:607:43 [INFO] [stdout] 32: 0x64277e80c2c4 - test::run_test::{{closure}}::he775ccc3a9d3b97e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:637:41 [INFO] [stdout] 33: 0x64277e80c2c4 - std::sys::backtrace::__rust_begin_short_backtrace::hcd94d85d7765225a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 34: 0x64277e80fb0a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha814de8393f07830 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 35: 0x64277e80fb0a - as core::ops::function::FnOnce<()>>::call_once::h8deb00af0abdeaf1 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 36: 0x64277e80fb0a - std::panicking::catch_unwind::do_call::h1917979b0c279ea2 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 37: 0x64277e80fb0a - std::panicking::catch_unwind::h791ad91fee6ce34e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 38: 0x64277e80fb0a - std::panic::catch_unwind::h982b8f40ed9c3cce [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 39: 0x64277e80fb0a - std::thread::Builder::spawn_unchecked_::{{closure}}::h545e54700c945db4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 40: 0x64277e80fb0a - core::ops::function::FnOnce::call_once{{vtable.shim}}::hb427481a5227d78a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 41: 0x64277ec840bf - as core::ops::function::FnOnce>::call_once::h1d452951a81e9d0a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 42: 0x64277ec840bf - std::sys::pal::unix::thread::Thread::new::thread_start::h29c84e109630689a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 43: 0x77ee87f82aa4 - [INFO] [stdout] 44: 0x77ee8800fa34 - clone [INFO] [stdout] 45: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- run_pass stdout ---- [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/delegate_to_method_g_and_at.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/delegate_to_method_g_and_at.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/delegate_to_method_g_and_at.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_method_g_and_at.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/delegate_to_method_g_and_at.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_method_g_and_at.rs","byte_start":374,"byte_end":382,"line_start":22,"line_end":22,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(FnLike, target_ref = \"to_fn\", generics = \"X\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/delegate_to_method_g_and_at.rs:22:3\n |\n22 | #[delegate(FnLike, target_ref = \"to_fn\", generics = \"X\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"the method `apply` exists for struct `Cat`, but its trait bounds were not satisfied","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_method_g_and_at.rs","byte_start":641,"byte_end":646,"line_start":33,"line_end":33,"column_start":20,"column_end":25,"is_primary":true,"text":[{"text":" assert_eq!(Cat.apply(String::new()), \"meow\")","highlight_start":20,"highlight_end":25}],"label":"method cannot be called on `Cat` due to unsatisfied trait bounds","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_to_method_g_and_at.rs","byte_start":332,"byte_end":346,"line_start":19,"line_end":19,"column_start":1,"column_end":15,"is_primary":false,"text":[{"text":"pub struct Cat;","highlight_start":1,"highlight_end":15}],"label":"method `apply` not found for this struct because it doesn't satisfy `>::Output = _`, `Cat: Fn<(_,)>` or `Cat: FnLike<_>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the following trait bounds were not satisfied:\n`>::Output = _`\n`Cat: Fn<(_,)>`","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/delegate_to_method_g_and_at.rs","byte_start":213,"byte_end":214,"line_start":11,"line_end":11,"column_start":23,"column_end":24,"is_primary":true,"text":[{"text":"impl R, R> FnLike for F {","highlight_start":23,"highlight_end":24}],"label":"unsatisfied trait bound introduced here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_to_method_g_and_at.rs","byte_start":219,"byte_end":229,"line_start":11,"line_end":11,"column_start":29,"column_end":39,"is_primary":false,"text":[{"text":"impl R, R> FnLike for F {","highlight_start":29,"highlight_end":39}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_to_method_g_and_at.rs","byte_start":234,"byte_end":235,"line_start":11,"line_end":11,"column_start":44,"column_end":45,"is_primary":false,"text":[{"text":"impl R, R> FnLike for F {","highlight_start":44,"highlight_end":45}],"label":"","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_to_method_g_and_at.rs","byte_start":203,"byte_end":214,"line_start":11,"line_end":11,"column_start":13,"column_end":24,"is_primary":true,"text":[{"text":"impl R, R> FnLike for F {","highlight_start":13,"highlight_end":24}],"label":"unsatisfied trait bound introduced here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the trait `Fn` must be implemented","code":null,"level":"note","spans":[{"file_name":"/rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs","byte_start":2739,"byte_end":2777,"line_start":77,"line_end":77,"column_start":1,"column_end":39,"is_primary":true,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`FnLike` defines an item `apply`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/delegate_to_method_g_and_at.rs","byte_start":106,"byte_end":126,"line_start":6,"line_end":6,"column_start":1,"column_end":21,"is_primary":true,"text":[{"text":"pub trait FnLike {","highlight_start":1,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: the method `apply` exists for struct `Cat`, but its trait bounds were not satisfied\n --> tests/run-pass/delegate_to_method_g_and_at.rs:33:20\n |\n19 | pub struct Cat;\n | -------------- method `apply` not found for this struct because it doesn't satisfy `>::Output = _`, `Cat: Fn<(_,)>` or `Cat: FnLike<_>`\n...\n33 | assert_eq!(Cat.apply(String::new()), \"meow\")\n | ^^^^^ method cannot be called on `Cat` due to unsatisfied trait bounds\n |\nnote: the following trait bounds were not satisfied:\n `>::Output = _`\n `Cat: Fn<(_,)>`\n --> tests/run-pass/delegate_to_method_g_and_at.rs:11:13\n |\n11 | impl R, R> FnLike for F {\n | ^^^^^^^^^^^ ---------- -\n | | |\n | | unsatisfied trait bound introduced here\n | unsatisfied trait bound introduced here\nnote: the trait `Fn` must be implemented\n --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:77:1\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `FnLike` defines an item `apply`, perhaps you need to implement it\n --> tests/run-pass/delegate_to_method_g_and_at.rs:6:1\n |\n 6 | pub trait FnLike {\n | ^^^^^^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/delegate_self.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/delegate_self.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/delegate_self.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_self.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/delegate_self.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/delegate_self.rs","byte_start":182,"byte_end":190,"line_start":11,"line_end":11,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout, target=\"self\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/delegate_self.rs:11:3\n |\n11 | #[delegate(Shout, target=\"self\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"the trait bound `Cat: Shout` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_self.rs","byte_start":416,"byte_end":419,"line_start":25,"line_end":25,"column_start":15,"column_end":18,"is_primary":true,"text":[{"text":" use_shout(Cat)","highlight_start":15,"highlight_end":18}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_self.rs","byte_start":406,"byte_end":415,"line_start":25,"line_end":25,"column_start":5,"column_end":14,"is_primary":false,"text":[{"text":" use_shout(Cat)","highlight_start":5,"highlight_end":14}],"label":"required by a bound introduced by this call","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `Shout` is not implemented for `Cat`","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_self.rs","byte_start":214,"byte_end":228,"line_start":12,"line_end":12,"column_start":1,"column_end":15,"is_primary":true,"text":[{"text":"pub struct Cat;","highlight_start":1,"highlight_end":15}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"this trait has no implementations, consider adding one","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_self.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"required by a bound in `use_shout`","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/delegate_self.rs","byte_start":354,"byte_end":359,"line_start":20,"line_end":20,"column_start":22,"column_end":27,"is_primary":true,"text":[{"text":"fn use_shout(x: impl Shout) {","highlight_start":22,"highlight_end":27}],"label":"required by this bound in `use_shout`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0277]: the trait bound `Cat: Shout` is not satisfied\n --> tests/run-pass/delegate_self.rs:25:15\n |\n25 | use_shout(Cat)\n | --------- ^^^ unsatisfied trait bound\n | |\n | required by a bound introduced by this call\n |\nhelp: the trait `Shout` is not implemented for `Cat`\n --> tests/run-pass/delegate_self.rs:12:1\n |\n12 | pub struct Cat;\n | ^^^^^^^^^^^^^^\nhelp: this trait has no implementations, consider adding one\n --> tests/run-pass/delegate_self.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\nnote: required by a bound in `use_shout`\n --> tests/run-pass/delegate_self.rs:20:22\n |\n20 | fn use_shout(x: impl Shout) {\n | ^^^^^ required by this bound in `use_shout`\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0277, E0464.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0277, E0464.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0277`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0277`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/associated_types.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/associated_types.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/associated_types.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/associated_types.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/associated_types.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"the name `IntoIterator` is defined multiple times","code":{"code":"E0255","explanation":"You can't import a value whose name is the same as another value defined in the\nmodule.\n\nErroneous code example:\n\n```compile_fail,E0255\nuse bar::foo; // error: an item named `foo` is already in scope\n\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {}\n```\n\nYou can use aliases in order to fix this error. Example:\n\n```\nuse bar::foo as bar_foo; // ok!\n\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {}\n```\n\nOr you can reference the item with its parent:\n\n```\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {\n bar::foo(); // we get the item by referring to its parent\n}\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/associated_types.rs","byte_start":138,"byte_end":160,"line_start":7,"line_end":7,"column_start":1,"column_end":23,"is_primary":true,"text":[{"text":"pub trait IntoIterator {","highlight_start":1,"highlight_end":23}],"label":"`IntoIterator` redefined here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/associated_types.rs","byte_start":84,"byte_end":107,"line_start":4,"line_end":4,"column_start":5,"column_end":28,"is_primary":false,"text":[{"text":"use std::iter::IntoIterator;","highlight_start":5,"highlight_end":28}],"label":"previous import of the trait `IntoIterator` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`IntoIterator` must be defined only once in the type namespace of this module","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"you can use `as` to change the binding name of the import","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/associated_types.rs","byte_start":107,"byte_end":107,"line_start":4,"line_end":4,"column_start":28,"column_end":28,"is_primary":true,"text":[{"text":"use std::iter::IntoIterator;","highlight_start":28,"highlight_end":28}],"label":null,"suggested_replacement":" as OtherIntoIterator","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0255]: the name `IntoIterator` is defined multiple times\n --> tests/run-pass/associated_types.rs:7:1\n |\n4 | use std::iter::IntoIterator;\n | ----------------------- previous import of the trait `IntoIterator` here\n...\n7 | pub trait IntoIterator {\n | ^^^^^^^^^^^^^^^^^^^^^^ `IntoIterator` redefined here\n |\n = note: `IntoIterator` must be defined only once in the type namespace of this module\nhelp: you can use `as` to change the binding name of the import\n |\n4 | use std::iter::IntoIterator as OtherIntoIterator;\n | ++++++++++++++++++++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/associated_types.rs","byte_start":293,"byte_end":301,"line_start":14,"line_end":14,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(IntoIterator)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/associated_types.rs:14:3\n |\n14 | #[delegate(IntoIterator)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"the method `into_iter` exists for struct `WrappedVec<{integer}>`, but its trait bounds were not satisfied","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/associated_types.rs","byte_start":440,"byte_end":449,"line_start":19,"line_end":19,"column_start":30,"column_end":39,"is_primary":true,"text":[{"text":" println!(\"{:?}\", wrapped.into_iter().collect::>());","highlight_start":30,"highlight_end":39}],"label":"method cannot be called on `WrappedVec<{integer}>` due to unsatisfied trait bounds","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/associated_types.rs","byte_start":317,"byte_end":341,"line_start":15,"line_end":15,"column_start":1,"column_end":25,"is_primary":false,"text":[{"text":"pub struct WrappedVec(Vec);","highlight_start":1,"highlight_end":25}],"label":"method `into_iter` not found for this struct because it doesn't satisfy `WrappedVec<{integer}>: Iterator` or `WrappedVec<{integer}>: std::iter::IntoIterator`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the following trait bounds were not satisfied:\n`WrappedVec<{integer}>: Iterator`\nwhich is required by `WrappedVec<{integer}>: std::iter::IntoIterator`\n`&WrappedVec<{integer}>: Iterator`\nwhich is required by `&WrappedVec<{integer}>: std::iter::IntoIterator`\n`&mut WrappedVec<{integer}>: Iterator`\nwhich is required by `&mut WrappedVec<{integer}>: std::iter::IntoIterator`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"the trait `Iterator` must be implemented","code":null,"level":"note","spans":[{"file_name":"/rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/iter/traits/iterator.rs","byte_start":1491,"byte_end":1509,"line_start":39,"line_end":39,"column_start":1,"column_end":19,"is_primary":true,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following traits define an item `into_iter`, perhaps you need to implement one of them:\ncandidate #1: `IntoIterator`\ncandidate #2: `std::iter::IntoIterator`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0599]: the method `into_iter` exists for struct `WrappedVec<{integer}>`, but its trait bounds were not satisfied\n --> tests/run-pass/associated_types.rs:19:30\n |\n15 | pub struct WrappedVec(Vec);\n | ------------------------ method `into_iter` not found for this struct because it doesn't satisfy `WrappedVec<{integer}>: Iterator` or `WrappedVec<{integer}>: std::iter::IntoIterator`\n...\n19 | println!(\"{:?}\", wrapped.into_iter().collect::>());\n | ^^^^^^^^^ method cannot be called on `WrappedVec<{integer}>` due to unsatisfied trait bounds\n |\n = note: the following trait bounds were not satisfied:\n `WrappedVec<{integer}>: Iterator`\n which is required by `WrappedVec<{integer}>: std::iter::IntoIterator`\n `&WrappedVec<{integer}>: Iterator`\n which is required by `&WrappedVec<{integer}>: std::iter::IntoIterator`\n `&mut WrappedVec<{integer}>: Iterator`\n which is required by `&mut WrappedVec<{integer}>: std::iter::IntoIterator`\nnote: the trait `Iterator` must be implemented\n --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/iter/traits/iterator.rs:39:1\n = help: items from traits can only be used if the trait is implemented and in scope\n = note: the following traits define an item `into_iter`, perhaps you need to implement one of them:\n candidate #1: `IntoIterator`\n candidate #2: `std::iter::IntoIterator`\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0255, E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0255, E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0255`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0255`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/auto_where_clause.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/auto_where_clause.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/auto_where_clause.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/auto_where_clause.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/auto_where_clause.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/auto_where_clause.rs","byte_start":457,"byte_end":465,"line_start":31,"line_end":31,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/auto_where_clause.rs:31:3\n |\n31 | #[delegate(Shout)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Either` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/auto_where_clause.rs","byte_start":627,"byte_end":632,"line_start":40,"line_end":40,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `Either`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/auto_where_clause.rs","byte_start":474,"byte_end":495,"line_start":32,"line_end":32,"column_start":1,"column_end":22,"is_primary":false,"text":[{"text":"pub enum Either {","highlight_start":1,"highlight_end":22}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/auto_where_clause.rs","byte_start":109,"byte_end":124,"line_start":7,"line_end":7,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Either` in the current scope\n --> tests/run-pass/auto_where_clause.rs:40:31\n |\n32 | pub enum Either {\n | --------------------- method `shout` not found for this enum\n...\n40 | println!(\"{}\", foo_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `Either`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/auto_where_clause.rs:7:1\n |\n 7 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Either` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/auto_where_clause.rs","byte_start":725,"byte_end":730,"line_start":42,"line_end":42,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", bar_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `Either`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/auto_where_clause.rs","byte_start":474,"byte_end":495,"line_start":32,"line_end":32,"column_start":1,"column_end":22,"is_primary":false,"text":[{"text":"pub enum Either {","highlight_start":1,"highlight_end":22}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/auto_where_clause.rs","byte_start":109,"byte_end":124,"line_start":7,"line_end":7,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Either` in the current scope\n --> tests/run-pass/auto_where_clause.rs:42:31\n |\n32 | pub enum Either {\n | --------------------- method `shout` not found for this enum\n...\n42 | println!(\"{}\", bar_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `Either`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/auto_where_clause.rs:7:1\n |\n 7 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/const_generic.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/const_generic.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/const_generic.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/const_generic.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/const_generic.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/const_generic.rs","byte_start":323,"byte_end":331,"line_start":21,"line_end":21,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(S<1>)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/const_generic.rs:21:3\n |\n21 | #[delegate(S<1>)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/const_generic.rs","byte_start":341,"byte_end":349,"line_start":22,"line_end":22,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(S)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/const_generic.rs:22:3\n |\n22 | #[delegate(S)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/const_generic.rs","byte_start":359,"byte_end":367,"line_start":23,"line_end":23,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(S<{C+1}>)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/const_generic.rs:23:3\n |\n23 | #[delegate(S<{C+1}>)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `handle` found for struct `Wrap` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/const_generic.rs","byte_start":441,"byte_end":447,"line_start":28,"line_end":28,"column_start":7,"column_end":13,"is_primary":true,"text":[{"text":" w.handle([1]);","highlight_start":7,"highlight_end":13}],"label":"method not found in `Wrap`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/const_generic.rs","byte_start":379,"byte_end":390,"line_start":24,"line_end":24,"column_start":1,"column_end":12,"is_primary":false,"text":[{"text":"struct Wrap(Base);","highlight_start":1,"highlight_end":12}],"label":"method `handle` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`S` defines an item `handle`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/const_generic.rs","byte_start":95,"byte_end":118,"line_start":6,"line_end":6,"column_start":1,"column_end":24,"is_primary":true,"text":[{"text":"trait S {","highlight_start":1,"highlight_end":24}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/const_generic.rs","byte_start":441,"byte_end":441,"line_start":28,"line_end":28,"column_start":7,"column_end":7,"is_primary":true,"text":[{"text":" w.handle([1]);","highlight_start":7,"highlight_end":7}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `handle` found for struct `Wrap` in the current scope\n --> tests/run-pass/const_generic.rs:28:7\n |\n24 | struct Wrap(Base);\n | ----------- method `handle` not found for this struct\n...\n28 | w.handle([1]);\n | ^^^^^^ method not found in `Wrap`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `S` defines an item `handle`, perhaps you need to implement it\n --> tests/run-pass/const_generic.rs:6:1\n |\n 6 | trait S {\n | ^^^^^^^^^^^^^^^^^^^^^^^\nhelp: one of the expressions' fields has a method of the same name\n |\n28 | w.0.handle([1]);\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `handle` found for struct `Wrap` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/const_generic.rs","byte_start":460,"byte_end":466,"line_start":29,"line_end":29,"column_start":7,"column_end":13,"is_primary":true,"text":[{"text":" w.handle([1, 2]);","highlight_start":7,"highlight_end":13}],"label":"method not found in `Wrap`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/const_generic.rs","byte_start":379,"byte_end":390,"line_start":24,"line_end":24,"column_start":1,"column_end":12,"is_primary":false,"text":[{"text":"struct Wrap(Base);","highlight_start":1,"highlight_end":12}],"label":"method `handle` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`S` defines an item `handle`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/const_generic.rs","byte_start":95,"byte_end":118,"line_start":6,"line_end":6,"column_start":1,"column_end":24,"is_primary":true,"text":[{"text":"trait S {","highlight_start":1,"highlight_end":24}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/const_generic.rs","byte_start":460,"byte_end":460,"line_start":29,"line_end":29,"column_start":7,"column_end":7,"is_primary":true,"text":[{"text":" w.handle([1, 2]);","highlight_start":7,"highlight_end":7}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `handle` found for struct `Wrap` in the current scope\n --> tests/run-pass/const_generic.rs:29:7\n |\n24 | struct Wrap(Base);\n | ----------- method `handle` not found for this struct\n...\n29 | w.handle([1, 2]);\n | ^^^^^^ method not found in `Wrap`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `S` defines an item `handle`, perhaps you need to implement it\n --> tests/run-pass/const_generic.rs:6:1\n |\n 6 | trait S {\n | ^^^^^^^^^^^^^^^^^^^^^^^\nhelp: one of the expressions' fields has a method of the same name\n |\n29 | w.0.handle([1, 2]);\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `handle` found for struct `Wrap` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/const_generic.rs","byte_start":482,"byte_end":488,"line_start":30,"line_end":30,"column_start":7,"column_end":13,"is_primary":true,"text":[{"text":" w.handle([1, 2, 3]);","highlight_start":7,"highlight_end":13}],"label":"method not found in `Wrap`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/const_generic.rs","byte_start":379,"byte_end":390,"line_start":24,"line_end":24,"column_start":1,"column_end":12,"is_primary":false,"text":[{"text":"struct Wrap(Base);","highlight_start":1,"highlight_end":12}],"label":"method `handle` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`S` defines an item `handle`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/const_generic.rs","byte_start":95,"byte_end":118,"line_start":6,"line_end":6,"column_start":1,"column_end":24,"is_primary":true,"text":[{"text":"trait S {","highlight_start":1,"highlight_end":24}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/const_generic.rs","byte_start":482,"byte_end":482,"line_start":30,"line_end":30,"column_start":7,"column_end":7,"is_primary":true,"text":[{"text":" w.handle([1, 2, 3]);","highlight_start":7,"highlight_end":7}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `handle` found for struct `Wrap` in the current scope\n --> tests/run-pass/const_generic.rs:30:7\n |\n24 | struct Wrap(Base);\n | ----------- method `handle` not found for this struct\n...\n30 | w.handle([1, 2, 3]);\n | ^^^^^^ method not found in `Wrap`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `S` defines an item `handle`, perhaps you need to implement it\n --> tests/run-pass/const_generic.rs:6:1\n |\n 6 | trait S {\n | ^^^^^^^^^^^^^^^^^^^^^^^\nhelp: one of the expressions' fields has a method of the same name\n |\n30 | w.0.handle([1, 2, 3]);\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 7 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 7 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/async.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/async.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/async.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/async.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/async.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate_to_methods` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/async.rs","byte_start":516,"byte_end":535,"line_start":39,"line_end":39,"column_start":3,"column_end":22,"is_primary":true,"text":[{"text":"#[delegate_to_methods]","highlight_start":3,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate_to_methods` in this scope\n --> tests/run-pass/async.rs:39:3\n |\n39 | #[delegate_to_methods]\n | ^^^^^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/async.rs","byte_start":539,"byte_end":547,"line_start":40,"line_end":40,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Hello, target_ref = \"unwrap_ref\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/async.rs:40:3\n |\n40 | #[delegate(Hello, target_ref = \"unwrap_ref\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find derive macro `Delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/async.rs","byte_start":396,"byte_end":404,"line_start":30,"line_end":30,"column_start":10,"column_end":18,"is_primary":true,"text":[{"text":"#[derive(Delegate)]","highlight_start":10,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find derive macro `Delegate` in this scope\n --> tests/run-pass/async.rs:30:10\n |\n30 | #[derive(Delegate)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/async.rs","byte_start":409,"byte_end":417,"line_start":31,"line_end":31,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Hello)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/async.rs:31:3\n |\n31 | #[delegate(Hello)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find derive macro `Delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/async.rs","byte_start":318,"byte_end":326,"line_start":24,"line_end":24,"column_start":10,"column_end":18,"is_primary":true,"text":[{"text":"#[derive(Delegate)]","highlight_start":10,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find derive macro `Delegate` in this scope\n --> tests/run-pass/async.rs:24:10\n |\n24 | #[derive(Delegate)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/async.rs","byte_start":331,"byte_end":339,"line_start":25,"line_end":25,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Hello)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/async.rs:25:3\n |\n25 | #[delegate(Hello)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegatable_trait` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/async.rs","byte_start":191,"byte_end":208,"line_start":15,"line_end":15,"column_start":3,"column_end":20,"is_primary":true,"text":[{"text":"#[delegatable_trait]","highlight_start":3,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegatable_trait` in this scope\n --> tests/run-pass/async.rs:15:3\n |\n15 | #[delegatable_trait]\n | ^^^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find derive macro `Delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/async.rs","byte_start":76,"byte_end":84,"line_start":7,"line_end":7,"column_start":10,"column_end":18,"is_primary":true,"text":[{"text":"#[derive(Delegate)]","highlight_start":10,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find derive macro `Delegate` in this scope\n --> tests/run-pass/async.rs:7:10\n |\n7 | #[derive(Delegate)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/async.rs","byte_start":89,"byte_end":97,"line_start":8,"line_end":8,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Hello, target = \"self\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/async.rs:8:3\n |\n8 | #[delegate(Hello, target = \"self\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `hello` found for struct `Dram` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/async.rs","byte_start":741,"byte_end":746,"line_start":50,"line_end":50,"column_start":15,"column_end":20,"is_primary":true,"text":[{"text":" let _ = d.hello();","highlight_start":15,"highlight_end":20}],"label":"method not found in `Dram`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/async.rs","byte_start":348,"byte_end":363,"line_start":26,"line_end":26,"column_start":1,"column_end":16,"is_primary":false,"text":[{"text":"pub struct Dram {","highlight_start":1,"highlight_end":16}],"label":"method `hello` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Hello` defines an item `hello`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/async.rs","byte_start":210,"byte_end":221,"line_start":16,"line_end":16,"column_start":1,"column_end":12,"is_primary":true,"text":[{"text":"trait Hello {","highlight_start":1,"highlight_end":12}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/async.rs","byte_start":741,"byte_end":741,"line_start":50,"line_end":50,"column_start":15,"column_end":15,"is_primary":true,"text":[{"text":" let _ = d.hello();","highlight_start":15,"highlight_end":15}],"label":null,"suggested_replacement":"inner.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `hello` found for struct `Dram` in the current scope\n --> tests/run-pass/async.rs:50:15\n |\n26 | pub struct Dram {\n | --------------- method `hello` not found for this struct\n...\n50 | let _ = d.hello();\n | ^^^^^ method not found in `Dram`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Hello` defines an item `hello`, perhaps you need to implement it\n --> tests/run-pass/async.rs:16:1\n |\n16 | trait Hello {\n | ^^^^^^^^^^^\nhelp: one of the expressions' fields has a method of the same name\n |\n50 | let _ = d.inner.hello();\n | ++++++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 11 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 11 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/delegate_remote.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/delegate_remote.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/delegate_remote.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_remote.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/delegate_remote.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/delegate_remote.rs","byte_start":762,"byte_end":770,"line_start":44,"line_end":44,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout, target = \"bar\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/delegate_remote.rs:44:3\n |\n44 | #[delegate(Shout, target = \"bar\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"unused import: `wrapped::*`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"tests/run-pass/delegate_remote.rs","byte_start":728,"byte_end":738,"line_start":41,"line_end":41,"column_start":5,"column_end":15,"is_primary":true,"text":[{"text":"use wrapped::*;","highlight_start":5,"highlight_end":15}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove the whole `use` item","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_remote.rs","byte_start":724,"byte_end":740,"line_start":41,"line_end":42,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use wrapped::*;","highlight_start":1,"highlight_end":16},{"text":"","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"warning: unused import: `wrapped::*`\n --> tests/run-pass/delegate_remote.rs:41:5\n |\n41 | use wrapped::*;\n | ^^^^^^^^^^\n |\n = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no function or associated item named `new` found for struct `WrappedAnimals` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_remote.rs","byte_start":912,"byte_end":915,"line_start":52,"line_end":52,"column_start":38,"column_end":41,"is_primary":true,"text":[{"text":" let foo_animal = WrappedAnimals::new(Cat, Cat);","highlight_start":38,"highlight_end":41}],"label":"function or associated item not found in `WrappedAnimals<_>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_remote.rs","byte_start":795,"byte_end":826,"line_start":45,"line_end":45,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"struct WrappedAnimals {","highlight_start":1,"highlight_end":32}],"label":"function or associated item `new` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0599]: no function or associated item named `new` found for struct `WrappedAnimals` in the current scope\n --> tests/run-pass/delegate_remote.rs:52:38\n |\n45 | struct WrappedAnimals {\n | ------------------------------- function or associated item `new` not found for this struct\n...\n52 | let foo_animal = WrappedAnimals::new(Cat, Cat);\n | ^^^ function or associated item not found in `WrappedAnimals<_>`\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no function or associated item named `new` found for struct `WrappedAnimals` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_remote.rs","byte_start":1009,"byte_end":1012,"line_start":54,"line_end":54,"column_start":38,"column_end":41,"is_primary":true,"text":[{"text":" let bar_animal = WrappedAnimals::new(Cat, Dog);","highlight_start":38,"highlight_end":41}],"label":"function or associated item not found in `WrappedAnimals<_>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_remote.rs","byte_start":795,"byte_end":826,"line_start":45,"line_end":45,"column_start":1,"column_end":32,"is_primary":false,"text":[{"text":"struct WrappedAnimals {","highlight_start":1,"highlight_end":32}],"label":"function or associated item `new` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0599]: no function or associated item named `new` found for struct `WrappedAnimals` in the current scope\n --> tests/run-pass/delegate_remote.rs:54:38\n |\n45 | struct WrappedAnimals {\n | ------------------------------- function or associated item `new` not found for this struct\n...\n54 | let bar_animal = WrappedAnimals::new(Cat, Dog);\n | ^^^ function or associated item not found in `WrappedAnimals<_>`\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 4 previous errors; 1 warning emitted","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors; 1 warning emitted\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/delegate_to_methods_in_trait_impl.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/delegate_to_methods_in_trait_impl.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/delegate_to_methods_in_trait_impl.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_methods_in_trait_impl.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/delegate_to_methods_in_trait_impl.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_methods_in_trait_impl.rs","byte_start":465,"byte_end":473,"line_start":30,"line_end":30,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(MyTrait, target_ref = \"get_ref\", target_mut = \"get_mut_ref\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/delegate_to_methods_in_trait_impl.rs:30:3\n |\n30 | #[delegate(MyTrait, target_ref = \"get_ref\", target_mut = \"get_mut_ref\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `get` found for struct `Wrap` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_methods_in_trait_impl.rs","byte_start":788,"byte_end":791,"line_start":41,"line_end":41,"column_start":18,"column_end":21,"is_primary":true,"text":[{"text":" assert_eq!(x.get(), 42);","highlight_start":18,"highlight_end":21}],"label":"method not found in `Wrap>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_to_methods_in_trait_impl.rs","byte_start":327,"byte_end":341,"line_start":22,"line_end":22,"column_start":1,"column_end":15,"is_primary":false,"text":[{"text":"struct Wrap(X);","highlight_start":1,"highlight_end":15}],"label":"method `get` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following traits define an item `get`, perhaps you need to implement one of them:\ncandidate #1: `MyTrait`\ncandidate #2: `SliceIndex`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_to_methods_in_trait_impl.rs","byte_start":788,"byte_end":788,"line_start":41,"line_end":41,"column_start":18,"column_end":18,"is_primary":true,"text":[{"text":" assert_eq!(x.get(), 42);","highlight_start":18,"highlight_end":18}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `get` found for struct `Wrap` in the current scope\n --> tests/run-pass/delegate_to_methods_in_trait_impl.rs:41:18\n |\n22 | struct Wrap(X);\n | -------------- method `get` not found for this struct\n...\n41 | assert_eq!(x.get(), 42);\n | ^^^ method not found in `Wrap>`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\n = note: the following traits define an item `get`, perhaps you need to implement one of them:\n candidate #1: `MyTrait`\n candidate #2: `SliceIndex`\nhelp: one of the expressions' fields has a method of the same name\n |\n41 | assert_eq!(x.0.get(), 42);\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `change` found for struct `Wrap` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_methods_in_trait_impl.rs","byte_start":806,"byte_end":812,"line_start":42,"line_end":42,"column_start":7,"column_end":13,"is_primary":true,"text":[{"text":" x.change();","highlight_start":7,"highlight_end":13}],"label":"method not found in `Wrap>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_to_methods_in_trait_impl.rs","byte_start":327,"byte_end":341,"line_start":22,"line_end":22,"column_start":1,"column_end":15,"is_primary":false,"text":[{"text":"struct Wrap(X);","highlight_start":1,"highlight_end":15}],"label":"method `change` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`MyTrait` defines an item `change`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/delegate_to_methods_in_trait_impl.rs","byte_start":130,"byte_end":143,"line_start":7,"line_end":7,"column_start":1,"column_end":14,"is_primary":true,"text":[{"text":"trait MyTrait {","highlight_start":1,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_to_methods_in_trait_impl.rs","byte_start":806,"byte_end":806,"line_start":42,"line_end":42,"column_start":7,"column_end":7,"is_primary":true,"text":[{"text":" x.change();","highlight_start":7,"highlight_end":7}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `change` found for struct `Wrap` in the current scope\n --> tests/run-pass/delegate_to_methods_in_trait_impl.rs:42:7\n |\n22 | struct Wrap(X);\n | -------------- method `change` not found for this struct\n...\n42 | x.change();\n | ^^^^^^ method not found in `Wrap>`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `MyTrait` defines an item `change`, perhaps you need to implement it\n --> tests/run-pass/delegate_to_methods_in_trait_impl.rs:7:1\n |\n 7 | trait MyTrait {\n | ^^^^^^^^^^^^^\nhelp: one of the expressions' fields has a method of the same name\n |\n42 | x.0.change();\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `get` found for struct `Wrap` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_methods_in_trait_impl.rs","byte_start":833,"byte_end":836,"line_start":43,"line_end":43,"column_start":18,"column_end":21,"is_primary":true,"text":[{"text":" assert_eq!(x.get(), 43);","highlight_start":18,"highlight_end":21}],"label":"method not found in `Wrap>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_to_methods_in_trait_impl.rs","byte_start":327,"byte_end":341,"line_start":22,"line_end":22,"column_start":1,"column_end":15,"is_primary":false,"text":[{"text":"struct Wrap(X);","highlight_start":1,"highlight_end":15}],"label":"method `get` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following traits define an item `get`, perhaps you need to implement one of them:\ncandidate #1: `MyTrait`\ncandidate #2: `SliceIndex`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_to_methods_in_trait_impl.rs","byte_start":833,"byte_end":833,"line_start":43,"line_end":43,"column_start":18,"column_end":18,"is_primary":true,"text":[{"text":" assert_eq!(x.get(), 43);","highlight_start":18,"highlight_end":18}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `get` found for struct `Wrap` in the current scope\n --> tests/run-pass/delegate_to_methods_in_trait_impl.rs:43:18\n |\n22 | struct Wrap(X);\n | -------------- method `get` not found for this struct\n...\n43 | assert_eq!(x.get(), 43);\n | ^^^ method not found in `Wrap>`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\n = note: the following traits define an item `get`, perhaps you need to implement one of them:\n candidate #1: `MyTrait`\n candidate #2: `SliceIndex`\nhelp: one of the expressions' fields has a method of the same name\n |\n43 | assert_eq!(x.0.get(), 43);\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 5 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 5 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/delegate_to_methods.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/delegate_to_methods.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/delegate_to_methods.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_methods.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/delegate_to_methods.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_methods.rs","byte_start":372,"byte_end":380,"line_start":25,"line_end":25,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(MyTrait, target_ref = \"inner_ref\", target_mut = \"inner_mut\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/delegate_to_methods.rs:25:3\n |\n25 | #[delegate(MyTrait, target_ref = \"inner_ref\", target_mut = \"inner_mut\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `get` found for struct `Wrap` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_methods.rs","byte_start":830,"byte_end":833,"line_start":49,"line_end":49,"column_start":18,"column_end":21,"is_primary":true,"text":[{"text":" assert_eq!(x.get(), 42);","highlight_start":18,"highlight_end":21}],"label":"method not found in `Wrap>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_to_methods.rs","byte_start":327,"byte_end":341,"line_start":22,"line_end":22,"column_start":1,"column_end":15,"is_primary":false,"text":[{"text":"struct Wrap(X);","highlight_start":1,"highlight_end":15}],"label":"method `get` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following traits define an item `get`, perhaps you need to implement one of them:\ncandidate #1: `MyTrait`\ncandidate #2: `SliceIndex`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_to_methods.rs","byte_start":830,"byte_end":830,"line_start":49,"line_end":49,"column_start":18,"column_end":18,"is_primary":true,"text":[{"text":" assert_eq!(x.get(), 42);","highlight_start":18,"highlight_end":18}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `get` found for struct `Wrap` in the current scope\n --> tests/run-pass/delegate_to_methods.rs:49:18\n |\n22 | struct Wrap(X);\n | -------------- method `get` not found for this struct\n...\n49 | assert_eq!(x.get(), 42);\n | ^^^ method not found in `Wrap>`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\n = note: the following traits define an item `get`, perhaps you need to implement one of them:\n candidate #1: `MyTrait`\n candidate #2: `SliceIndex`\nhelp: one of the expressions' fields has a method of the same name\n |\n49 | assert_eq!(x.0.get(), 42);\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `change` found for struct `Wrap` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_methods.rs","byte_start":848,"byte_end":854,"line_start":50,"line_end":50,"column_start":7,"column_end":13,"is_primary":true,"text":[{"text":" x.change();","highlight_start":7,"highlight_end":13}],"label":"method not found in `Wrap>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_to_methods.rs","byte_start":327,"byte_end":341,"line_start":22,"line_end":22,"column_start":1,"column_end":15,"is_primary":false,"text":[{"text":"struct Wrap(X);","highlight_start":1,"highlight_end":15}],"label":"method `change` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`MyTrait` defines an item `change`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/delegate_to_methods.rs","byte_start":130,"byte_end":143,"line_start":7,"line_end":7,"column_start":1,"column_end":14,"is_primary":true,"text":[{"text":"trait MyTrait {","highlight_start":1,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_to_methods.rs","byte_start":848,"byte_end":848,"line_start":50,"line_end":50,"column_start":7,"column_end":7,"is_primary":true,"text":[{"text":" x.change();","highlight_start":7,"highlight_end":7}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `change` found for struct `Wrap` in the current scope\n --> tests/run-pass/delegate_to_methods.rs:50:7\n |\n22 | struct Wrap(X);\n | -------------- method `change` not found for this struct\n...\n50 | x.change();\n | ^^^^^^ method not found in `Wrap>`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `MyTrait` defines an item `change`, perhaps you need to implement it\n --> tests/run-pass/delegate_to_methods.rs:7:1\n |\n 7 | trait MyTrait {\n | ^^^^^^^^^^^^^\nhelp: one of the expressions' fields has a method of the same name\n |\n50 | x.0.change();\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `get` found for struct `Wrap` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_methods.rs","byte_start":875,"byte_end":878,"line_start":51,"line_end":51,"column_start":18,"column_end":21,"is_primary":true,"text":[{"text":" assert_eq!(x.get(), 43);","highlight_start":18,"highlight_end":21}],"label":"method not found in `Wrap>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_to_methods.rs","byte_start":327,"byte_end":341,"line_start":22,"line_end":22,"column_start":1,"column_end":15,"is_primary":false,"text":[{"text":"struct Wrap(X);","highlight_start":1,"highlight_end":15}],"label":"method `get` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following traits define an item `get`, perhaps you need to implement one of them:\ncandidate #1: `MyTrait`\ncandidate #2: `SliceIndex`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_to_methods.rs","byte_start":875,"byte_end":875,"line_start":51,"line_end":51,"column_start":18,"column_end":18,"is_primary":true,"text":[{"text":" assert_eq!(x.get(), 43);","highlight_start":18,"highlight_end":18}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `get` found for struct `Wrap` in the current scope\n --> tests/run-pass/delegate_to_methods.rs:51:18\n |\n22 | struct Wrap(X);\n | -------------- method `get` not found for this struct\n...\n51 | assert_eq!(x.get(), 43);\n | ^^^ method not found in `Wrap>`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\n = note: the following traits define an item `get`, perhaps you need to implement one of them:\n candidate #1: `MyTrait`\n candidate #2: `SliceIndex`\nhelp: one of the expressions' fields has a method of the same name\n |\n51 | assert_eq!(x.0.get(), 43);\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 5 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 5 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/delegate_trait_remote_display.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/delegate_trait_remote_display.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/delegate_trait_remote_display.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_trait_remote_display.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/delegate_trait_remote_display.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"the name `Display` is defined multiple times","code":{"code":"E0255","explanation":"You can't import a value whose name is the same as another value defined in the\nmodule.\n\nErroneous code example:\n\n```compile_fail,E0255\nuse bar::foo; // error: an item named `foo` is already in scope\n\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {}\n```\n\nYou can use aliases in order to fix this error. Example:\n\n```\nuse bar::foo as bar_foo; // ok!\n\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {}\n```\n\nOr you can reference the item with its parent:\n\n```\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {\n bar::foo(); // we get the item by referring to its parent\n}\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_trait_remote_display.rs","byte_start":296,"byte_end":309,"line_start":15,"line_end":15,"column_start":1,"column_end":14,"is_primary":true,"text":[{"text":"trait Display {","highlight_start":1,"highlight_end":14}],"label":"`Display` redefined here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_trait_remote_display.rs","byte_start":84,"byte_end":101,"line_start":4,"line_end":4,"column_start":5,"column_end":22,"is_primary":false,"text":[{"text":"use std::fmt::Display;","highlight_start":5,"highlight_end":22}],"label":"previous import of the trait `Display` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`Display` must be defined only once in the type namespace of this module","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"you can use `as` to change the binding name of the import","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_trait_remote_display.rs","byte_start":101,"byte_end":101,"line_start":4,"line_end":4,"column_start":22,"column_end":22,"is_primary":true,"text":[{"text":"use std::fmt::Display;","highlight_start":22,"highlight_end":22}],"label":null,"suggested_replacement":" as OtherDisplay","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0255]: the name `Display` is defined multiple times\n --> tests/run-pass/delegate_trait_remote_display.rs:15:1\n |\n 4 | use std::fmt::Display;\n | ----------------- previous import of the trait `Display` here\n...\n15 | trait Display {\n | ^^^^^^^^^^^^^ `Display` redefined here\n |\n = note: `Display` must be defined only once in the type namespace of this module\nhelp: you can use `as` to change the binding name of the import\n |\n 4 | use std::fmt::Display as OtherDisplay;\n | +++++++++++++++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/delegate_trait_remote_display.rs","byte_start":420,"byte_end":428,"line_start":20,"line_end":20,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Display)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/delegate_trait_remote_display.rs:20:3\n |\n20 | #[delegate(Display)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"unused import: `std::fmt::Display`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"tests/run-pass/delegate_trait_remote_display.rs","byte_start":84,"byte_end":101,"line_start":4,"line_end":4,"column_start":5,"column_end":22,"is_primary":true,"text":[{"text":"use std::fmt::Display;","highlight_start":5,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove the whole `use` item","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_trait_remote_display.rs","byte_start":80,"byte_end":103,"line_start":4,"line_end":5,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::fmt::Display;","highlight_start":1,"highlight_end":23},{"text":"","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"warning: unused import: `std::fmt::Display`\n --> tests/run-pass/delegate_trait_remote_display.rs:4:5\n |\n4 | use std::fmt::Display;\n | ^^^^^^^^^^^^^^^^^\n |\n = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"`WrappedCat` doesn't implement `std::fmt::Display`","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_trait_remote_display.rs","byte_start":541,"byte_end":551,"line_start":25,"line_end":25,"column_start":20,"column_end":30,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal);","highlight_start":20,"highlight_end":30}],"label":"`WrappedCat` cannot be formatted with the default formatter","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/macros.rs","byte_start":4407,"byte_end":4440,"line_start":143,"line_end":143,"column_start":28,"column_end":61,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/macros.rs","byte_start":4407,"byte_end":4440,"line_start":143,"line_end":143,"column_start":28,"column_end":61,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"tests/run-pass/delegate_trait_remote_display.rs","byte_start":526,"byte_end":552,"line_start":25,"line_end":25,"column_start":5,"column_end":31,"is_primary":false,"text":[{"text":" println!(\"{}\", foo_animal);","highlight_start":5,"highlight_end":31}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"println!","def_site_span":{"file_name":"/rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/macros.rs","byte_start":4285,"byte_end":4305,"line_start":138,"line_end":138,"column_start":1,"column_end":21,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::format_args_nl!","def_site_span":{"file_name":"/rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/macros/mod.rs","byte_start":35734,"byte_end":35761,"line_start":1021,"line_end":1021,"column_start":5,"column_end":32,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"desugaring of format string literal","def_site_span":{"file_name":"tests/run-pass/delegate_trait_remote_display.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},{"file_name":"tests/run-pass/delegate_trait_remote_display.rs","byte_start":536,"byte_end":538,"line_start":25,"line_end":25,"column_start":15,"column_end":17,"is_primary":false,"text":[{"text":" println!(\"{}\", foo_animal);","highlight_start":15,"highlight_end":17}],"label":"required by this formatting parameter","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/macros.rs","byte_start":4407,"byte_end":4440,"line_start":143,"line_end":143,"column_start":28,"column_end":61,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"/rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/macros.rs","byte_start":4407,"byte_end":4440,"line_start":143,"line_end":143,"column_start":28,"column_end":61,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"tests/run-pass/delegate_trait_remote_display.rs","byte_start":526,"byte_end":552,"line_start":25,"line_end":25,"column_start":5,"column_end":31,"is_primary":false,"text":[{"text":" println!(\"{}\", foo_animal);","highlight_start":5,"highlight_end":31}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"println!","def_site_span":{"file_name":"/rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/macros.rs","byte_start":4285,"byte_end":4305,"line_start":138,"line_end":138,"column_start":1,"column_end":21,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"$crate::format_args_nl!","def_site_span":{"file_name":"/rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/macros/mod.rs","byte_start":35734,"byte_end":35761,"line_start":1021,"line_end":1021,"column_start":5,"column_end":32,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}},"macro_decl_name":"desugaring of format string literal","def_site_span":{"file_name":"tests/run-pass/delegate_trait_remote_display.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":false,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[{"message":"the trait `std::fmt::Display` is not implemented for `WrappedCat`","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_trait_remote_display.rs","byte_start":439,"byte_end":460,"line_start":21,"line_end":21,"column_start":1,"column_end":22,"is_primary":true,"text":[{"text":"pub struct WrappedCat(Cat);","highlight_start":1,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0277]: `WrappedCat` doesn't implement `std::fmt::Display`\n --> tests/run-pass/delegate_trait_remote_display.rs:25:20\n |\n25 | println!(\"{}\", foo_animal);\n | -- ^^^^^^^^^^ `WrappedCat` cannot be formatted with the default formatter\n | |\n | required by this formatting parameter\n |\nhelp: the trait `std::fmt::Display` is not implemented for `WrappedCat`\n --> tests/run-pass/delegate_trait_remote_display.rs:21:1\n |\n21 | pub struct WrappedCat(Cat);\n | ^^^^^^^^^^^^^^^^^^^^^\n = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead\n = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 4 previous errors; 1 warning emitted","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors; 1 warning emitted\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0255, E0277, E0464.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0255, E0277, E0464.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0255`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0255`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/cfg.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/cfg.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/cfg.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/cfg.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/cfg.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/cfg.rs","byte_start":321,"byte_end":329,"line_start":23,"line_end":23,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Trait)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/cfg.rs:23:3\n |\n23 | #[delegate(Trait)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `method` found for struct `WrappedCat` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/cfg.rs","byte_start":460,"byte_end":466,"line_start":30,"line_end":30,"column_start":16,"column_end":22,"is_primary":true,"text":[{"text":" foo_animal.method()","highlight_start":16,"highlight_end":22}],"label":"method not found in `WrappedCat`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/cfg.rs","byte_start":338,"byte_end":359,"line_start":24,"line_end":24,"column_start":1,"column_end":22,"is_primary":false,"text":[{"text":"pub struct WrappedCat {","highlight_start":1,"highlight_end":22}],"label":"method `method` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Trait` defines an item `method`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/cfg.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Trait {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/cfg.rs","byte_start":460,"byte_end":460,"line_start":30,"line_end":30,"column_start":16,"column_end":16,"is_primary":true,"text":[{"text":" foo_animal.method()","highlight_start":16,"highlight_end":16}],"label":null,"suggested_replacement":"inner.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `method` found for struct `WrappedCat` in the current scope\n --> tests/run-pass/cfg.rs:30:16\n |\n24 | pub struct WrappedCat {\n | --------------------- method `method` not found for this struct\n...\n30 | foo_animal.method()\n | ^^^^^^ method not found in `WrappedCat`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Trait` defines an item `method`, perhaps you need to implement it\n --> tests/run-pass/cfg.rs:6:1\n |\n 6 | pub trait Trait {\n | ^^^^^^^^^^^^^^^\nhelp: one of the expressions' fields has a method of the same name\n |\n30 | foo_animal.inner.method()\n | ++++++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/delegate_to_methods_dyn_works.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/delegate_to_methods_dyn_works.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/delegate_to_methods_dyn_works.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_methods_dyn_works.rs","byte_start":135,"byte_end":159,"line_start":3,"line_end":3,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/delegate_to_methods_dyn_works.rs:3:1\n |\n3 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_methods_dyn_works.rs","byte_start":638,"byte_end":646,"line_start":32,"line_end":32,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout, target_ref=\"deref\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/delegate_to_methods_dyn_works.rs:32:3\n |\n32 | #[delegate(Shout, target_ref=\"deref\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"the trait bound `WrappedAnimals: Shout` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_methods_dyn_works.rs","byte_start":1390,"byte_end":1400,"line_start":52,"line_end":52,"column_start":12,"column_end":22,"is_primary":true,"text":[{"text":" use_it(foo_animal);","highlight_start":12,"highlight_end":22}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_to_methods_dyn_works.rs","byte_start":1383,"byte_end":1389,"line_start":52,"line_end":52,"column_start":5,"column_end":11,"is_primary":false,"text":[{"text":" use_it(foo_animal);","highlight_start":5,"highlight_end":11}],"label":"required by a bound introduced by this call","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `Shout` is not implemented for `WrappedAnimals`","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_to_methods_dyn_works.rs","byte_start":564,"byte_end":589,"line_start":28,"line_end":28,"column_start":1,"column_end":26,"is_primary":true,"text":[{"text":"pub struct WrappedAnimals(pub Box);","highlight_start":1,"highlight_end":26}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `Shout`:\n Cat\n Dog","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `use_it`","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/delegate_to_methods_dyn_works.rs","byte_start":1244,"byte_end":1249,"line_start":46,"line_end":46,"column_start":14,"column_end":19,"is_primary":true,"text":[{"text":"fn use_it (shouter: T) {","highlight_start":14,"highlight_end":19}],"label":"required by this bound in `use_it`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0277]: the trait bound `WrappedAnimals: Shout` is not satisfied\n --> tests/run-pass/delegate_to_methods_dyn_works.rs:52:12\n |\n52 | use_it(foo_animal);\n | ------ ^^^^^^^^^^ unsatisfied trait bound\n | |\n | required by a bound introduced by this call\n |\nhelp: the trait `Shout` is not implemented for `WrappedAnimals`\n --> tests/run-pass/delegate_to_methods_dyn_works.rs:28:1\n |\n28 | pub struct WrappedAnimals(pub Box);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\n = help: the following other types implement trait `Shout`:\n Cat\n Dog\nnote: required by a bound in `use_it`\n --> tests/run-pass/delegate_to_methods_dyn_works.rs:46:14\n |\n46 | fn use_it (shouter: T) {\n | ^^^^^ required by this bound in `use_it`\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0277, E0464.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0277, E0464.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0277`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0277`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/derive_and_trait_in_modules.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/derive_and_trait_in_modules.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/derive_and_trait_in_modules.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/derive_and_trait_in_modules.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/derive_and_trait_in_modules.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"unresolved import `super::ambassador_impl_Shout`","code":{"code":"E0432","explanation":"An import was unresolved.\n\nErroneous code example:\n\n```compile_fail,E0432\nuse something::Foo; // error: unresolved import `something::Foo`.\n```\n\nIn Rust 2015, paths in `use` statements are relative to the crate root. To\nimport items relative to the current and parent modules, use the `self::` and\n`super::` prefixes, respectively.\n\nIn Rust 2018 or later, paths in `use` statements are relative to the current\nmodule unless they begin with the name of a crate or a literal `crate::`, in\nwhich case they start from the crate root. As in Rust 2015 code, the `self::`\nand `super::` prefixes refer to the current and parent modules respectively.\n\nAlso verify that you didn't misspell the import name and that the import exists\nin the module from where you tried to import it. Example:\n\n```\nuse self::something::Foo; // Ok.\n\nmod something {\n pub struct Foo;\n}\n# fn main() {}\n```\n\nIf you tried to use a module from an external crate and are using Rust 2015,\nyou may have missed the `extern crate` declaration (which is usually placed in\nthe crate root):\n\n```edition2015\nextern crate core; // Required to use the `core` crate in Rust 2015.\n\nuse core::any;\n# fn main() {}\n```\n\nSince Rust 2018 the `extern crate` declaration is not required and\nyou can instead just `use` it:\n\n```edition2018\nuse core::any; // No extern crate required in Rust 2018.\n# fn main() {}\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/derive_and_trait_in_modules.rs","byte_start":206,"byte_end":227,"line_start":13,"line_end":13,"column_start":17,"column_end":38,"is_primary":true,"text":[{"text":" use super::{ambassador_impl_Shout, Shout};","highlight_start":17,"highlight_end":38}],"label":"no `ambassador_impl_Shout` in the root","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0432]: unresolved import `super::ambassador_impl_Shout`\n --> tests/run-pass/derive_and_trait_in_modules.rs:13:17\n |\n13 | use super::{ambassador_impl_Shout, Shout};\n | ^^^^^^^^^^^^^^^^^^^^^ no `ambassador_impl_Shout` in the root\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"unresolved import `baz::ambassador_impl_Shout`","code":{"code":"E0432","explanation":"An import was unresolved.\n\nErroneous code example:\n\n```compile_fail,E0432\nuse something::Foo; // error: unresolved import `something::Foo`.\n```\n\nIn Rust 2015, paths in `use` statements are relative to the crate root. To\nimport items relative to the current and parent modules, use the `self::` and\n`super::` prefixes, respectively.\n\nIn Rust 2018 or later, paths in `use` statements are relative to the current\nmodule unless they begin with the name of a crate or a literal `crate::`, in\nwhich case they start from the crate root. As in Rust 2015 code, the `self::`\nand `super::` prefixes refer to the current and parent modules respectively.\n\nAlso verify that you didn't misspell the import name and that the import exists\nin the module from where you tried to import it. Example:\n\n```\nuse self::something::Foo; // Ok.\n\nmod something {\n pub struct Foo;\n}\n# fn main() {}\n```\n\nIf you tried to use a module from an external crate and are using Rust 2015,\nyou may have missed the `extern crate` declaration (which is usually placed in\nthe crate root):\n\n```edition2015\nextern crate core; // Required to use the `core` crate in Rust 2015.\n\nuse core::any;\n# fn main() {}\n```\n\nSince Rust 2018 the `extern crate` declaration is not required and\nyou can instead just `use` it:\n\n```edition2018\nuse core::any; // No extern crate required in Rust 2018.\n# fn main() {}\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/derive_and_trait_in_modules.rs","byte_start":724,"byte_end":745,"line_start":41,"line_end":41,"column_start":11,"column_end":32,"is_primary":true,"text":[{"text":"use baz::{ambassador_impl_Shout, Shout};","highlight_start":11,"highlight_end":32}],"label":"no `ambassador_impl_Shout` in `baz`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0432]: unresolved import `baz::ambassador_impl_Shout`\n --> tests/run-pass/derive_and_trait_in_modules.rs:41:11\n |\n41 | use baz::{ambassador_impl_Shout, Shout};\n | ^^^^^^^^^^^^^^^^^^^^^ no `ambassador_impl_Shout` in `baz`\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/derive_and_trait_in_modules.rs","byte_start":604,"byte_end":612,"line_start":33,"line_end":33,"column_start":7,"column_end":15,"is_primary":true,"text":[{"text":" #[delegate(Shout)]","highlight_start":7,"highlight_end":15}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/derive_and_trait_in_modules.rs:33:7\n |\n33 | #[delegate(Shout)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Animals` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/derive_and_trait_in_modules.rs","byte_start":842,"byte_end":847,"line_start":45,"line_end":45,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `Animals`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/derive_and_trait_in_modules.rs","byte_start":625,"byte_end":641,"line_start":34,"line_end":34,"column_start":5,"column_end":21,"is_primary":false,"text":[{"text":" pub enum Animals {","highlight_start":5,"highlight_end":21}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/derive_and_trait_in_modules.rs","byte_start":105,"byte_end":120,"line_start":7,"line_end":7,"column_start":5,"column_end":20,"is_primary":true,"text":[{"text":" pub trait Shout {","highlight_start":5,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Animals` in the current scope\n --> tests/run-pass/derive_and_trait_in_modules.rs:45:31\n |\n34 | pub enum Animals {\n | ---------------- method `shout` not found for this enum\n...\n45 | println!(\"{}\", foo_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `Animals`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/derive_and_trait_in_modules.rs:7:5\n |\n 7 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 5 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 5 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0432, E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0432, E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0432`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0432`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/delegate_to_remote_methods.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/delegate_to_remote_methods.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/delegate_to_remote_methods.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/delegate_to_remote_methods.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"associated function in `impl` without body","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods.rs","byte_start":776,"byte_end":802,"line_start":37,"line_end":37,"column_start":5,"column_end":31,"is_primary":true,"text":[{"text":" fn get_ref(&self) -> &u32;","highlight_start":5,"highlight_end":31}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"provide a definition for the function","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods.rs","byte_start":801,"byte_end":802,"line_start":37,"line_end":37,"column_start":30,"column_end":31,"is_primary":true,"text":[{"text":" fn get_ref(&self) -> &u32;","highlight_start":30,"highlight_end":31}],"label":null,"suggested_replacement":" { }","suggestion_applicability":"HasPlaceholders","expansion":null}],"children":[],"rendered":null}],"rendered":"error: associated function in `impl` without body\n --> tests/run-pass/delegate_to_remote_methods.rs:37:5\n |\n37 | fn get_ref(&self) -> &u32;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^-\n | |\n | help: provide a definition for the function: `{ }`\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"associated function in `impl` without body","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods.rs","byte_start":807,"byte_end":845,"line_start":38,"line_end":38,"column_start":5,"column_end":43,"is_primary":true,"text":[{"text":" fn get_mut_ref(&mut self) -> &mut u32;","highlight_start":5,"highlight_end":43}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"provide a definition for the function","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods.rs","byte_start":844,"byte_end":845,"line_start":38,"line_end":38,"column_start":42,"column_end":43,"is_primary":true,"text":[{"text":" fn get_mut_ref(&mut self) -> &mut u32;","highlight_start":42,"highlight_end":43}],"label":null,"suggested_replacement":" { }","suggestion_applicability":"HasPlaceholders","expansion":null}],"children":[],"rendered":null}],"rendered":"error: associated function in `impl` without body\n --> tests/run-pass/delegate_to_remote_methods.rs:38:5\n |\n38 | fn get_mut_ref(&mut self) -> &mut u32;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-\n | |\n | help: provide a definition for the function: `{ }`\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods.rs","byte_start":659,"byte_end":667,"line_start":35,"line_end":35,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(MyTrait, target_ref = \"get_ref\", target_mut = \"get_mut_ref\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/delegate_to_remote_methods.rs:35:3\n |\n35 | #[delegate(MyTrait, target_ref = \"get_ref\", target_mut = \"get_mut_ref\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `get` found for struct `Wrap` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods.rs","byte_start":917,"byte_end":920,"line_start":43,"line_end":43,"column_start":18,"column_end":21,"is_primary":true,"text":[{"text":" assert_eq!(x.get(), 42);","highlight_start":18,"highlight_end":21}],"label":"method not found in `Wrap>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_to_remote_methods.rs","byte_start":343,"byte_end":357,"line_start":22,"line_end":22,"column_start":1,"column_end":15,"is_primary":false,"text":[{"text":"struct Wrap(X);","highlight_start":1,"highlight_end":15}],"label":"method `get` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following traits define an item `get`, perhaps you need to implement one of them:\ncandidate #1: `MyTrait`\ncandidate #2: `SliceIndex`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods.rs","byte_start":917,"byte_end":917,"line_start":43,"line_end":43,"column_start":18,"column_end":18,"is_primary":true,"text":[{"text":" assert_eq!(x.get(), 42);","highlight_start":18,"highlight_end":18}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `get` found for struct `Wrap` in the current scope\n --> tests/run-pass/delegate_to_remote_methods.rs:43:18\n |\n22 | struct Wrap(X);\n | -------------- method `get` not found for this struct\n...\n43 | assert_eq!(x.get(), 42);\n | ^^^ method not found in `Wrap>`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\n = note: the following traits define an item `get`, perhaps you need to implement one of them:\n candidate #1: `MyTrait`\n candidate #2: `SliceIndex`\nhelp: one of the expressions' fields has a method of the same name\n |\n43 | assert_eq!(x.0.get(), 42);\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `change` found for struct `Wrap` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods.rs","byte_start":935,"byte_end":941,"line_start":44,"line_end":44,"column_start":7,"column_end":13,"is_primary":true,"text":[{"text":" x.change();","highlight_start":7,"highlight_end":13}],"label":"method not found in `Wrap>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_to_remote_methods.rs","byte_start":343,"byte_end":357,"line_start":22,"line_end":22,"column_start":1,"column_end":15,"is_primary":false,"text":[{"text":"struct Wrap(X);","highlight_start":1,"highlight_end":15}],"label":"method `change` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`MyTrait` defines an item `change`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods.rs","byte_start":146,"byte_end":159,"line_start":7,"line_end":7,"column_start":1,"column_end":14,"is_primary":true,"text":[{"text":"trait MyTrait {","highlight_start":1,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods.rs","byte_start":935,"byte_end":935,"line_start":44,"line_end":44,"column_start":7,"column_end":7,"is_primary":true,"text":[{"text":" x.change();","highlight_start":7,"highlight_end":7}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `change` found for struct `Wrap` in the current scope\n --> tests/run-pass/delegate_to_remote_methods.rs:44:7\n |\n22 | struct Wrap(X);\n | -------------- method `change` not found for this struct\n...\n44 | x.change();\n | ^^^^^^ method not found in `Wrap>`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `MyTrait` defines an item `change`, perhaps you need to implement it\n --> tests/run-pass/delegate_to_remote_methods.rs:7:1\n |\n 7 | trait MyTrait {\n | ^^^^^^^^^^^^^\nhelp: one of the expressions' fields has a method of the same name\n |\n44 | x.0.change();\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `get` found for struct `Wrap` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods.rs","byte_start":962,"byte_end":965,"line_start":45,"line_end":45,"column_start":18,"column_end":21,"is_primary":true,"text":[{"text":" assert_eq!(x.get(), 43);","highlight_start":18,"highlight_end":21}],"label":"method not found in `Wrap>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_to_remote_methods.rs","byte_start":343,"byte_end":357,"line_start":22,"line_end":22,"column_start":1,"column_end":15,"is_primary":false,"text":[{"text":"struct Wrap(X);","highlight_start":1,"highlight_end":15}],"label":"method `get` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following traits define an item `get`, perhaps you need to implement one of them:\ncandidate #1: `MyTrait`\ncandidate #2: `SliceIndex`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods.rs","byte_start":962,"byte_end":962,"line_start":45,"line_end":45,"column_start":18,"column_end":18,"is_primary":true,"text":[{"text":" assert_eq!(x.get(), 43);","highlight_start":18,"highlight_end":18}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `get` found for struct `Wrap` in the current scope\n --> tests/run-pass/delegate_to_remote_methods.rs:45:18\n |\n22 | struct Wrap(X);\n | -------------- method `get` not found for this struct\n...\n45 | assert_eq!(x.get(), 43);\n | ^^^ method not found in `Wrap>`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\n = note: the following traits define an item `get`, perhaps you need to implement one of them:\n candidate #1: `MyTrait`\n candidate #2: `SliceIndex`\nhelp: one of the expressions' fields has a method of the same name\n |\n45 | assert_eq!(x.0.get(), 43);\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"unused import: `Deref`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods.rs","byte_start":106,"byte_end":111,"line_start":4,"line_end":4,"column_start":16,"column_end":21,"is_primary":true,"text":[{"text":"use std::ops::{Deref, DerefMut};","highlight_start":16,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"warning: unused import: `Deref`\n --> tests/run-pass/delegate_to_remote_methods.rs:4:16\n |\n4 | use std::ops::{Deref, DerefMut};\n | ^^^^^\n |\n = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 7 previous errors; 1 warning emitted","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 7 previous errors; 1 warning emitted\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/delegate_to_remote_methods_on_remote_type.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/delegate_to_remote_methods_on_remote_type.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/delegate_to_remote_methods_on_remote_type.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods_on_remote_type.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/delegate_to_remote_methods_on_remote_type.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"associated function in `impl` without body","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods_on_remote_type.rs","byte_start":456,"byte_end":478,"line_start":20,"line_end":20,"column_start":5,"column_end":27,"is_primary":true,"text":[{"text":" fn deref(&self) -> &X;","highlight_start":5,"highlight_end":27}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"provide a definition for the function","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods_on_remote_type.rs","byte_start":477,"byte_end":478,"line_start":20,"line_end":20,"column_start":26,"column_end":27,"is_primary":true,"text":[{"text":" fn deref(&self) -> &X;","highlight_start":26,"highlight_end":27}],"label":null,"suggested_replacement":" { }","suggestion_applicability":"HasPlaceholders","expansion":null}],"children":[],"rendered":null}],"rendered":"error: associated function in `impl` without body\n --> tests/run-pass/delegate_to_remote_methods_on_remote_type.rs:20:5\n |\n20 | fn deref(&self) -> &X;\n | ^^^^^^^^^^^^^^^^^^^^^-\n | |\n | help: provide a definition for the function: `{ }`\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"associated function in `impl` without body","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods_on_remote_type.rs","byte_start":483,"byte_end":517,"line_start":21,"line_end":21,"column_start":5,"column_end":39,"is_primary":true,"text":[{"text":" fn deref_mut(&mut self) -> &mut X;","highlight_start":5,"highlight_end":39}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"provide a definition for the function","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods_on_remote_type.rs","byte_start":516,"byte_end":517,"line_start":21,"line_end":21,"column_start":38,"column_end":39,"is_primary":true,"text":[{"text":" fn deref_mut(&mut self) -> &mut X;","highlight_start":38,"highlight_end":39}],"label":null,"suggested_replacement":" { }","suggestion_applicability":"HasPlaceholders","expansion":null}],"children":[],"rendered":null}],"rendered":"error: associated function in `impl` without body\n --> tests/run-pass/delegate_to_remote_methods_on_remote_type.rs:21:5\n |\n21 | fn deref_mut(&mut self) -> &mut X;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-\n | |\n | help: provide a definition for the function: `{ }`\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods_on_remote_type.rs","byte_start":350,"byte_end":358,"line_start":18,"line_end":18,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(MyTrait, target_ref = \"deref\", target_mut = \"deref_mut\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/delegate_to_remote_methods_on_remote_type.rs:18:3\n |\n18 | #[delegate(MyTrait, target_ref = \"deref\", target_mut = \"deref_mut\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"unused imports: `DerefMut` and `Deref`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods_on_remote_type.rs","byte_start":106,"byte_end":111,"line_start":4,"line_end":4,"column_start":16,"column_end":21,"is_primary":true,"text":[{"text":"use std::ops::{Deref, DerefMut};","highlight_start":16,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/delegate_to_remote_methods_on_remote_type.rs","byte_start":113,"byte_end":121,"line_start":4,"line_end":4,"column_start":23,"column_end":31,"is_primary":true,"text":[{"text":"use std::ops::{Deref, DerefMut};","highlight_start":23,"highlight_end":31}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove the whole `use` item","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods_on_remote_type.rs","byte_start":91,"byte_end":124,"line_start":4,"line_end":5,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::ops::{Deref, DerefMut};","highlight_start":1,"highlight_end":33},{"text":"","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"warning: unused imports: `DerefMut` and `Deref`\n --> tests/run-pass/delegate_to_remote_methods_on_remote_type.rs:4:16\n |\n4 | use std::ops::{Deref, DerefMut};\n | ^^^^^ ^^^^^^^^\n |\n = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot define inherent `impl` for a type outside of the crate where the type is defined","code":{"code":"E0116","explanation":"An inherent implementation was defined for a type outside the current crate.\n\nErroneous code example:\n\n```compile_fail,E0116\nimpl Vec { } // error\n```\n\nYou can only define an inherent implementation for a type in the same crate\nwhere the type was defined. For example, an `impl` block as above is not allowed\nsince `Vec` is defined in the standard library.\n\nTo fix this problem, you can either:\n\n - define a trait that has the desired associated functions/types/constants and\n implement the trait for the type in question\n - define a new type wrapping the type and define an implementation on the new\n type\n\nNote that using the `type` keyword does not work here because `type` only\nintroduces a type alias:\n\n```compile_fail,E0116\ntype Bytes = Vec;\n\nimpl Bytes { } // error, same as above\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/delegate_to_remote_methods_on_remote_type.rs","byte_start":417,"byte_end":449,"line_start":19,"line_end":19,"column_start":1,"column_end":33,"is_primary":true,"text":[{"text":"impl Box {","highlight_start":1,"highlight_end":33}],"label":"impl for type defined outside of crate","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"define and implement a trait or new type instead","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0116]: cannot define inherent `impl` for a type outside of the crate where the type is defined\n --> tests/run-pass/delegate_to_remote_methods_on_remote_type.rs:19:1\n |\n19 | impl Box {\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl for type defined outside of crate\n |\n = note: define and implement a trait or new type instead\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 5 previous errors; 1 warning emitted","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 5 previous errors; 1 warning emitted\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0116, E0464.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0116, E0464.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0116`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0116`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/derive_in_module.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/derive_in_module.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/derive_in_module.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/derive_in_module.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/derive_in_module.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"unresolved import `super::ambassador_impl_Shout`","code":{"code":"E0432","explanation":"An import was unresolved.\n\nErroneous code example:\n\n```compile_fail,E0432\nuse something::Foo; // error: unresolved import `something::Foo`.\n```\n\nIn Rust 2015, paths in `use` statements are relative to the crate root. To\nimport items relative to the current and parent modules, use the `self::` and\n`super::` prefixes, respectively.\n\nIn Rust 2018 or later, paths in `use` statements are relative to the current\nmodule unless they begin with the name of a crate or a literal `crate::`, in\nwhich case they start from the crate root. As in Rust 2015 code, the `self::`\nand `super::` prefixes refer to the current and parent modules respectively.\n\nAlso verify that you didn't misspell the import name and that the import exists\nin the module from where you tried to import it. Example:\n\n```\nuse self::something::Foo; // Ok.\n\nmod something {\n pub struct Foo;\n}\n# fn main() {}\n```\n\nIf you tried to use a module from an external crate and are using Rust 2015,\nyou may have missed the `extern crate` declaration (which is usually placed in\nthe crate root):\n\n```edition2015\nextern crate core; // Required to use the `core` crate in Rust 2015.\n\nuse core::any;\n# fn main() {}\n```\n\nSince Rust 2018 the `extern crate` declaration is not required and\nyou can instead just `use` it:\n\n```edition2018\nuse core::any; // No extern crate required in Rust 2018.\n# fn main() {}\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/derive_in_module.rs","byte_start":174,"byte_end":195,"line_start":11,"line_end":11,"column_start":17,"column_end":38,"is_primary":true,"text":[{"text":" use super::{ambassador_impl_Shout, Shout};","highlight_start":17,"highlight_end":38}],"label":"no `ambassador_impl_Shout` in the root","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0432]: unresolved import `super::ambassador_impl_Shout`\n --> tests/run-pass/derive_in_module.rs:11:17\n |\n11 | use super::{ambassador_impl_Shout, Shout};\n | ^^^^^^^^^^^^^^^^^^^^^ no `ambassador_impl_Shout` in the root\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/derive_in_module.rs","byte_start":572,"byte_end":580,"line_start":31,"line_end":31,"column_start":7,"column_end":15,"is_primary":true,"text":[{"text":" #[delegate(Shout)]","highlight_start":7,"highlight_end":15}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/derive_in_module.rs:31:7\n |\n31 | #[delegate(Shout)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Animals` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/derive_in_module.rs","byte_start":769,"byte_end":774,"line_start":42,"line_end":42,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `Animals`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/derive_in_module.rs","byte_start":593,"byte_end":609,"line_start":32,"line_end":32,"column_start":5,"column_end":21,"is_primary":false,"text":[{"text":" pub enum Animals {","highlight_start":5,"highlight_end":21}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/derive_in_module.rs","byte_start":83,"byte_end":98,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Animals` in the current scope\n --> tests/run-pass/derive_in_module.rs:42:31\n |\n32 | pub enum Animals {\n | ---------------- method `shout` not found for this enum\n...\n42 | println!(\"{}\", foo_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `Animals`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/derive_in_module.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0432, E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0432, E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0432`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0432`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/enum_associated_types.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/enum_associated_types.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/enum_associated_types.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/enum_associated_types.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/enum_associated_types.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/enum_associated_types.rs","byte_start":449,"byte_end":457,"line_start":34,"line_end":34,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Animal)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/enum_associated_types.rs:34:3\n |\n34 | #[delegate(Animal)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"the trait bound `Either: Animal` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/enum_associated_types.rs","byte_start":565,"byte_end":584,"line_start":42,"line_end":42,"column_start":35,"column_end":54,"is_primary":true,"text":[{"text":" println!(\"{:?}\", type_name::< as Animal>::Baby>());","highlight_start":35,"highlight_end":54}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `Animal` is not implemented for `Either`","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/enum_associated_types.rs","byte_start":467,"byte_end":488,"line_start":35,"line_end":35,"column_start":1,"column_end":22,"is_primary":true,"text":[{"text":"pub enum Either {","highlight_start":1,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `Animal`:\n Cat\n Dog\n Kitten\n Puppy","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error[E0277]: the trait bound `Either: Animal` is not satisfied\n --> tests/run-pass/enum_associated_types.rs:42:35\n |\n42 | println!(\"{:?}\", type_name::< as Animal>::Baby>());\n | ^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound\n |\nhelp: the trait `Animal` is not implemented for `Either`\n --> tests/run-pass/enum_associated_types.rs:35:1\n |\n35 | pub enum Either {\n | ^^^^^^^^^^^^^^^^^^^^^\n = help: the following other types implement trait `Animal`:\n Cat\n Dog\n Kitten\n Puppy\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0277, E0464.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0277, E0464.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0277`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0277`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/generic_enum.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/generic_enum.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/generic_enum.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_enum.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/generic_enum.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/generic_enum.rs","byte_start":440,"byte_end":448,"line_start":27,"line_end":27,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/generic_enum.rs:27:3\n |\n27 | #[delegate(Shout)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Either` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_enum.rs","byte_start":623,"byte_end":628,"line_start":35,"line_end":35,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `Either`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/generic_enum.rs","byte_start":457,"byte_end":492,"line_start":28,"line_end":28,"column_start":1,"column_end":36,"is_primary":false,"text":[{"text":"pub enum Either {","highlight_start":1,"highlight_end":36}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/generic_enum.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Either` in the current scope\n --> tests/run-pass/generic_enum.rs:35:31\n |\n28 | pub enum Either {\n | ----------------------------------- method `shout` not found for this enum\n...\n35 | println!(\"{}\", foo_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `Either`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/generic_enum.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Either` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_enum.rs","byte_start":721,"byte_end":726,"line_start":37,"line_end":37,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", bar_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `Either`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/generic_enum.rs","byte_start":457,"byte_end":492,"line_start":28,"line_end":28,"column_start":1,"column_end":36,"is_primary":false,"text":[{"text":"pub enum Either {","highlight_start":1,"highlight_end":36}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/generic_enum.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Either` in the current scope\n --> tests/run-pass/generic_enum.rs:37:31\n |\n28 | pub enum Either {\n | ----------------------------------- method `shout` not found for this enum\n...\n37 | println!(\"{}\", bar_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `Either`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/generic_enum.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/gat.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/gat.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/gat.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/gat.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/gat.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/gat.rs","byte_start":454,"byte_end":462,"line_start":24,"line_end":24,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(StreamingIterator)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/gat.rs:24:3\n |\n24 | #[delegate(StreamingIterator)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `next` found for struct `Wrap` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/gat.rs","byte_start":601,"byte_end":605,"line_start":29,"line_end":29,"column_start":28,"column_end":32,"is_primary":true,"text":[{"text":" let m: &mut String = x.next().unwrap();","highlight_start":28,"highlight_end":32}],"label":"method not found in `Wrap>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/gat.rs","byte_start":483,"byte_end":501,"line_start":25,"line_end":25,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"pub struct Wrap(X);","highlight_start":1,"highlight_end":19}],"label":"method `next` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following traits define an item `next`, perhaps you need to implement one of them:\ncandidate #1: `StreamingIterator`\ncandidate #2: `Iterator`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/gat.rs","byte_start":601,"byte_end":601,"line_start":29,"line_end":29,"column_start":28,"column_end":28,"is_primary":true,"text":[{"text":" let m: &mut String = x.next().unwrap();","highlight_start":28,"highlight_end":28}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `next` found for struct `Wrap` in the current scope\n --> tests/run-pass/gat.rs:29:28\n |\n25 | pub struct Wrap(X);\n | ------------------ method `next` not found for this struct\n...\n29 | let m: &mut String = x.next().unwrap();\n | ^^^^ method not found in `Wrap>`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\n = note: the following traits define an item `next`, perhaps you need to implement one of them:\n candidate #1: `StreamingIterator`\n candidate #2: `Iterator`\nhelp: one of the expressions' fields has a method of the same name\n |\n29 | let m: &mut String = x.0.next().unwrap();\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `next` found for struct `Wrap` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/gat.rs","byte_start":652,"byte_end":656,"line_start":31,"line_end":31,"column_start":18,"column_end":22,"is_primary":true,"text":[{"text":" assert_eq!(x.next().unwrap(), \"forever?\");","highlight_start":18,"highlight_end":22}],"label":"method not found in `Wrap>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/gat.rs","byte_start":483,"byte_end":501,"line_start":25,"line_end":25,"column_start":1,"column_end":19,"is_primary":false,"text":[{"text":"pub struct Wrap(X);","highlight_start":1,"highlight_end":19}],"label":"method `next` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following traits define an item `next`, perhaps you need to implement one of them:\ncandidate #1: `StreamingIterator`\ncandidate #2: `Iterator`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/gat.rs","byte_start":652,"byte_end":652,"line_start":31,"line_end":31,"column_start":18,"column_end":18,"is_primary":true,"text":[{"text":" assert_eq!(x.next().unwrap(), \"forever?\");","highlight_start":18,"highlight_end":18}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `next` found for struct `Wrap` in the current scope\n --> tests/run-pass/gat.rs:31:18\n |\n25 | pub struct Wrap(X);\n | ------------------ method `next` not found for this struct\n...\n31 | assert_eq!(x.next().unwrap(), \"forever?\");\n | ^^^^ method not found in `Wrap>`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\n = note: the following traits define an item `next`, perhaps you need to implement one of them:\n candidate #1: `StreamingIterator`\n candidate #2: `Iterator`\nhelp: one of the expressions' fields has a method of the same name\n |\n31 | assert_eq!(x.0.next().unwrap(), \"forever?\");\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/double_generics.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/double_generics.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/double_generics.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/double_generics.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/double_generics.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find derive macro `Delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/double_generics.rs","byte_start":168,"byte_end":176,"line_start":12,"line_end":12,"column_start":10,"column_end":18,"is_primary":true,"text":[{"text":"#[derive(Delegate)]","highlight_start":10,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find derive macro `Delegate` in this scope\n --> tests/run-pass/double_generics.rs:12:10\n |\n12 | #[derive(Delegate)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/double_generics.rs","byte_start":181,"byte_end":189,"line_start":13,"line_end":13,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Target, generics = \"T, U\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/double_generics.rs:13:3\n |\n13 | #[delegate(Target, generics = \"T, U\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegatable_trait` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/double_generics.rs","byte_start":48,"byte_end":65,"line_start":5,"line_end":5,"column_start":3,"column_end":20,"is_primary":true,"text":[{"text":"#[delegatable_trait]","highlight_start":3,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegatable_trait` in this scope\n --> tests/run-pass/double_generics.rs:5:3\n |\n5 | #[delegatable_trait]\n | ^^^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about this error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/generic_struct.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/generic_struct.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/generic_struct.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_struct.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/generic_struct.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/generic_struct.rs","byte_start":440,"byte_end":448,"line_start":27,"line_end":27,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout, target = \"bar\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/generic_struct.rs:27:3\n |\n27 | #[delegate(Shout, target = \"bar\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for struct `WrappedAnimals` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_struct.rs","byte_start":646,"byte_end":651,"line_start":35,"line_end":35,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `WrappedAnimals`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/generic_struct.rs","byte_start":473,"byte_end":508,"line_start":28,"line_end":28,"column_start":1,"column_end":36,"is_primary":false,"text":[{"text":"pub struct WrappedAnimals {","highlight_start":1,"highlight_end":36}],"label":"method `shout` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/generic_struct.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"some of the expressions' fields have a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/generic_struct.rs","byte_start":646,"byte_end":646,"line_start":35,"line_end":35,"column_start":31,"column_end":31,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":31}],"label":null,"suggested_replacement":"bar.","suggestion_applicability":"MaybeIncorrect","expansion":null},{"file_name":"tests/run-pass/generic_struct.rs","byte_start":646,"byte_end":646,"line_start":35,"line_end":35,"column_start":31,"column_end":31,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":31}],"label":null,"suggested_replacement":"foo.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for struct `WrappedAnimals` in the current scope\n --> tests/run-pass/generic_struct.rs:35:31\n |\n28 | pub struct WrappedAnimals {\n | ----------------------------------- method `shout` not found for this struct\n...\n35 | println!(\"{}\", foo_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `WrappedAnimals`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/generic_struct.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\nhelp: some of the expressions' fields have a method of the same name\n |\n35 | println!(\"{}\", foo_animal.bar.shout(\"BAR\"));\n | ++++\n35 | println!(\"{}\", foo_animal.foo.shout(\"BAR\"));\n | ++++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for struct `WrappedAnimals` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_struct.rs","byte_start":751,"byte_end":756,"line_start":37,"line_end":37,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", bar_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `WrappedAnimals`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/generic_struct.rs","byte_start":473,"byte_end":508,"line_start":28,"line_end":28,"column_start":1,"column_end":36,"is_primary":false,"text":[{"text":"pub struct WrappedAnimals {","highlight_start":1,"highlight_end":36}],"label":"method `shout` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/generic_struct.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"some of the expressions' fields have a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/generic_struct.rs","byte_start":751,"byte_end":751,"line_start":37,"line_end":37,"column_start":31,"column_end":31,"is_primary":true,"text":[{"text":" println!(\"{}\", bar_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":31}],"label":null,"suggested_replacement":"bar.","suggestion_applicability":"MaybeIncorrect","expansion":null},{"file_name":"tests/run-pass/generic_struct.rs","byte_start":751,"byte_end":751,"line_start":37,"line_end":37,"column_start":31,"column_end":31,"is_primary":true,"text":[{"text":" println!(\"{}\", bar_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":31}],"label":null,"suggested_replacement":"foo.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for struct `WrappedAnimals` in the current scope\n --> tests/run-pass/generic_struct.rs:37:31\n |\n28 | pub struct WrappedAnimals {\n | ----------------------------------- method `shout` not found for this struct\n...\n37 | println!(\"{}\", bar_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `WrappedAnimals`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/generic_struct.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\nhelp: some of the expressions' fields have a method of the same name\n |\n37 | println!(\"{}\", bar_animal.bar.shout(\"BAR\"));\n | ++++\n37 | println!(\"{}\", bar_animal.foo.shout(\"BAR\"));\n | ++++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/generic_trait_any.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/generic_trait_any.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/generic_trait_any.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_any.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/generic_trait_any.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"the name `Index` is defined multiple times","code":{"code":"E0255","explanation":"You can't import a value whose name is the same as another value defined in the\nmodule.\n\nErroneous code example:\n\n```compile_fail,E0255\nuse bar::foo; // error: an item named `foo` is already in scope\n\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {}\n```\n\nYou can use aliases in order to fix this error. Example:\n\n```\nuse bar::foo as bar_foo; // ok!\n\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {}\n```\n\nOr you can reference the item with its parent:\n\n```\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {\n bar::foo(); // we get the item by referring to its parent\n}\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_any.rs","byte_start":138,"byte_end":166,"line_start":8,"line_end":8,"column_start":1,"column_end":29,"is_primary":true,"text":[{"text":"pub trait Index {","highlight_start":1,"highlight_end":29}],"label":"`Index` redefined here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/generic_trait_any.rs","byte_start":92,"byte_end":107,"line_start":5,"line_end":5,"column_start":5,"column_end":20,"is_primary":false,"text":[{"text":"use std::ops::Index;","highlight_start":5,"highlight_end":20}],"label":"previous import of the trait `Index` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`Index` must be defined only once in the type namespace of this module","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"you can use `as` to change the binding name of the import","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/generic_trait_any.rs","byte_start":107,"byte_end":107,"line_start":5,"line_end":5,"column_start":20,"column_end":20,"is_primary":true,"text":[{"text":"use std::ops::Index;","highlight_start":20,"highlight_end":20}],"label":null,"suggested_replacement":" as OtherIndex","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0255]: the name `Index` is defined multiple times\n --> tests/run-pass/generic_trait_any.rs:8:1\n |\n5 | use std::ops::Index;\n | --------------- previous import of the trait `Index` here\n...\n8 | pub trait Index {\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Index` redefined here\n |\n = note: `Index` must be defined only once in the type namespace of this module\nhelp: you can use `as` to change the binding name of the import\n |\n5 | use std::ops::Index as OtherIndex;\n | +++++++++++++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegatable_trait_remote` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_any.rs","byte_start":112,"byte_end":136,"line_start":7,"line_end":7,"column_start":3,"column_end":27,"is_primary":true,"text":[{"text":"#[delegatable_trait_remote]","highlight_start":3,"highlight_end":27}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegatable_trait_remote` in this scope\n --> tests/run-pass/generic_trait_any.rs:7:3\n |\n7 | #[delegatable_trait_remote]\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find derive macro `Delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_any.rs","byte_start":256,"byte_end":264,"line_start":13,"line_end":13,"column_start":10,"column_end":18,"is_primary":true,"text":[{"text":"#[derive(Delegate)]","highlight_start":10,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find derive macro `Delegate` in this scope\n --> tests/run-pass/generic_trait_any.rs:13:10\n |\n13 | #[derive(Delegate)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_any.rs","byte_start":269,"byte_end":277,"line_start":14,"line_end":14,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Index, generics = \"X\", where = \"X: Copy\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/generic_trait_any.rs:14:3\n |\n14 | #[delegate(Index, generics = \"X\", where = \"X: Copy\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"unused import: `std::ops::Index`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"tests/run-pass/generic_trait_any.rs","byte_start":92,"byte_end":107,"line_start":5,"line_end":5,"column_start":5,"column_end":20,"is_primary":true,"text":[{"text":"use std::ops::Index;","highlight_start":5,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove the whole `use` item","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/generic_trait_any.rs","byte_start":88,"byte_end":109,"line_start":5,"line_end":6,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::ops::Index;","highlight_start":1,"highlight_end":21},{"text":"","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"warning: unused import: `std::ops::Index`\n --> tests/run-pass/generic_trait_any.rs:5:5\n |\n5 | use std::ops::Index;\n | ^^^^^^^^^^^^^^^\n |\n = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot index into a value of type `SomeMap`","code":{"code":"E0608","explanation":"An attempt to use index on a type which doesn't implement the `std::ops::Index`\ntrait was performed.\n\nErroneous code example:\n\n```compile_fail,E0608\n0u8[2]; // error: cannot index into a value of type `u8`\n```\n\nTo be able to index into a type it needs to implement the `std::ops::Index`\ntrait. Example:\n\n```\nlet v: Vec = vec![0, 1, 2, 3];\n\n// The `Vec` type implements the `Index` trait so you can do:\nprintln!(\"{}\", v[2]);\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_any.rs","byte_start":583,"byte_end":590,"line_start":23,"line_end":23,"column_start":18,"column_end":25,"is_primary":true,"text":[{"text":" assert_eq!(m1[\"dog\"], \"wuff\");","highlight_start":18,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0608]: cannot index into a value of type `SomeMap`\n --> tests/run-pass/generic_trait_any.rs:23:18\n |\n23 | assert_eq!(m1[\"dog\"], \"wuff\");\n | ^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot index into a value of type `SomeMap`","code":{"code":"E0608","explanation":"An attempt to use index on a type which doesn't implement the `std::ops::Index`\ntrait was performed.\n\nErroneous code example:\n\n```compile_fail,E0608\n0u8[2]; // error: cannot index into a value of type `u8`\n```\n\nTo be able to index into a type it needs to implement the `std::ops::Index`\ntrait. Example:\n\n```\nlet v: Vec = vec![0, 1, 2, 3];\n\n// The `Vec` type implements the `Index` trait so you can do:\nprintln!(\"{}\", v[2]);\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_any.rs","byte_start":618,"byte_end":625,"line_start":24,"line_end":24,"column_start":18,"column_end":25,"is_primary":true,"text":[{"text":" assert_eq!(m2[\"cat\"], \"meow\");","highlight_start":18,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0608]: cannot index into a value of type `SomeMap`\n --> tests/run-pass/generic_trait_any.rs:24:18\n |\n24 | assert_eq!(m2[\"cat\"], \"meow\");\n | ^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 7 previous errors; 1 warning emitted","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 7 previous errors; 1 warning emitted\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0255, E0464, E0608.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0255, E0464, E0608.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0255`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0255`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/generic_method.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/generic_method.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/generic_method.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_method.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/generic_method.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/generic_method.rs","byte_start":549,"byte_end":557,"line_start":38,"line_end":38,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(StaticCall)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/generic_method.rs:38:3\n |\n38 | #[delegate(StaticCall)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `call` found for struct `WrappedCaller` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_method.rs","byte_start":774,"byte_end":778,"line_start":44,"line_end":44,"column_start":15,"column_end":19,"is_primary":true,"text":[{"text":" assert!(c.call::());","highlight_start":15,"highlight_end":19}],"label":"this is an associated function, not a method","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/generic_method.rs","byte_start":571,"byte_end":595,"line_start":39,"line_end":39,"column_start":1,"column_end":25,"is_primary":false,"text":[{"text":"pub struct WrappedCaller(BaseCaller);","highlight_start":1,"highlight_end":25}],"label":"method `call` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"found the following associated functions; to be used as methods, functions must have a `self` parameter","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"the candidate is defined in the trait `StaticFn`","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/generic_method.rs","byte_start":95,"byte_end":113,"line_start":6,"line_end":6,"column_start":5,"column_end":23,"is_primary":true,"text":[{"text":" fn call() -> bool;","highlight_start":5,"highlight_end":23}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following traits define an item `call`, perhaps you need to implement one of them:\ncandidate #1: `StaticCall`\ncandidate #2: `Fn`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"use associated function syntax instead","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/generic_method.rs","byte_start":772,"byte_end":794,"line_start":44,"line_end":44,"column_start":13,"column_end":35,"is_primary":true,"text":[{"text":" assert!(c.call::());","highlight_start":13,"highlight_end":35}],"label":null,"suggested_replacement":"WrappedCaller::call()","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/generic_method.rs","byte_start":774,"byte_end":774,"line_start":44,"line_end":44,"column_start":15,"column_end":15,"is_primary":true,"text":[{"text":" assert!(c.call::());","highlight_start":15,"highlight_end":15}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `call` found for struct `WrappedCaller` in the current scope\n --> tests/run-pass/generic_method.rs:44:15\n |\n39 | pub struct WrappedCaller(BaseCaller);\n | ------------------------ method `call` not found for this struct\n...\n44 | assert!(c.call::());\n | ^^^^ this is an associated function, not a method\n |\n = note: found the following associated functions; to be used as methods, functions must have a `self` parameter\nnote: the candidate is defined in the trait `StaticFn`\n --> tests/run-pass/generic_method.rs:6:5\n |\n 6 | fn call() -> bool;\n | ^^^^^^^^^^^^^^^^^^\n = help: items from traits can only be used if the trait is implemented and in scope\n = note: the following traits define an item `call`, perhaps you need to implement one of them:\n candidate #1: `StaticCall`\n candidate #2: `Fn`\nhelp: use associated function syntax instead\n |\n44 - assert!(c.call::());\n44 + assert!(WrappedCaller::call());\n |\nhelp: one of the expressions' fields has a method of the same name\n |\n44 | assert!(c.0.call::());\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `call` found for struct `WrappedCaller` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_method.rs","byte_start":812,"byte_end":816,"line_start":45,"line_end":45,"column_start":16,"column_end":20,"is_primary":true,"text":[{"text":" assert!(!c.call::());","highlight_start":16,"highlight_end":20}],"label":"this is an associated function, not a method","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/generic_method.rs","byte_start":571,"byte_end":595,"line_start":39,"line_end":39,"column_start":1,"column_end":25,"is_primary":false,"text":[{"text":"pub struct WrappedCaller(BaseCaller);","highlight_start":1,"highlight_end":25}],"label":"method `call` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"found the following associated functions; to be used as methods, functions must have a `self` parameter","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"the candidate is defined in the trait `StaticFn`","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/generic_method.rs","byte_start":95,"byte_end":113,"line_start":6,"line_end":6,"column_start":5,"column_end":23,"is_primary":true,"text":[{"text":" fn call() -> bool;","highlight_start":5,"highlight_end":23}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following traits define an item `call`, perhaps you need to implement one of them:\ncandidate #1: `StaticCall`\ncandidate #2: `Fn`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"use associated function syntax instead","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/generic_method.rs","byte_start":810,"byte_end":833,"line_start":45,"line_end":45,"column_start":14,"column_end":37,"is_primary":true,"text":[{"text":" assert!(!c.call::());","highlight_start":14,"highlight_end":37}],"label":null,"suggested_replacement":"WrappedCaller::call()","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/generic_method.rs","byte_start":812,"byte_end":812,"line_start":45,"line_end":45,"column_start":16,"column_end":16,"is_primary":true,"text":[{"text":" assert!(!c.call::());","highlight_start":16,"highlight_end":16}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `call` found for struct `WrappedCaller` in the current scope\n --> tests/run-pass/generic_method.rs:45:16\n |\n39 | pub struct WrappedCaller(BaseCaller);\n | ------------------------ method `call` not found for this struct\n...\n45 | assert!(!c.call::());\n | ^^^^ this is an associated function, not a method\n |\n = note: found the following associated functions; to be used as methods, functions must have a `self` parameter\nnote: the candidate is defined in the trait `StaticFn`\n --> tests/run-pass/generic_method.rs:6:5\n |\n 6 | fn call() -> bool;\n | ^^^^^^^^^^^^^^^^^^\n = help: items from traits can only be used if the trait is implemented and in scope\n = note: the following traits define an item `call`, perhaps you need to implement one of them:\n candidate #1: `StaticCall`\n candidate #2: `Fn`\nhelp: use associated function syntax instead\n |\n45 - assert!(!c.call::());\n45 + assert!(!WrappedCaller::call());\n |\nhelp: one of the expressions' fields has a method of the same name\n |\n45 | assert!(!c.0.call::());\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/generic_trait_complex.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/generic_trait_complex.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/generic_trait_complex.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_complex.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/generic_trait_complex.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_complex.rs","byte_start":381,"byte_end":389,"line_start":20,"line_end":20,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout<(Y, &'a str)>, generics = \"'a, Y\", target=\"0\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/generic_trait_complex.rs:20:3\n |\n20 | #[delegate(Shout<(Y, &'a str)>, generics = \"'a, Y\", target=\"0\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for struct `WrappedCat` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_complex.rs","byte_start":543,"byte_end":548,"line_start":25,"line_end":25,"column_start":22,"column_end":27,"is_primary":true,"text":[{"text":" println!(\"{}\", c.shout((5, \"bar\")))","highlight_start":22,"highlight_end":27}],"label":"method not found in `WrappedCat`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/generic_trait_complex.rs","byte_start":444,"byte_end":465,"line_start":21,"line_end":21,"column_start":1,"column_end":22,"is_primary":false,"text":[{"text":"pub struct WrappedCat(Cat, ());","highlight_start":1,"highlight_end":22}],"label":"method `shout` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/generic_trait_complex.rs","byte_start":118,"byte_end":136,"line_start":7,"line_end":7,"column_start":1,"column_end":19,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/generic_trait_complex.rs","byte_start":543,"byte_end":543,"line_start":25,"line_end":25,"column_start":22,"column_end":22,"is_primary":true,"text":[{"text":" println!(\"{}\", c.shout((5, \"bar\")))","highlight_start":22,"highlight_end":22}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for struct `WrappedCat` in the current scope\n --> tests/run-pass/generic_trait_complex.rs:25:22\n |\n21 | pub struct WrappedCat(Cat, ());\n | --------------------- method `shout` not found for this struct\n...\n25 | println!(\"{}\", c.shout((5, \"bar\")))\n | ^^^^^ method not found in `WrappedCat`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/generic_trait_complex.rs:7:1\n |\n 7 | pub trait Shout {\n | ^^^^^^^^^^^^^^^^^^\nhelp: one of the expressions' fields has a method of the same name\n |\n25 | println!(\"{}\", c.0.shout((5, \"bar\")))\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/enum_associated_constant.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/enum_associated_constant.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/enum_associated_constant.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/enum_associated_constant.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/enum_associated_constant.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegatable_trait` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/enum_associated_constant.rs","byte_start":91,"byte_end":108,"line_start":6,"line_end":6,"column_start":3,"column_end":20,"is_primary":true,"text":[{"text":"#[delegatable_trait]","highlight_start":3,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegatable_trait` in this scope\n --> tests/run-pass/enum_associated_constant.rs:6:3\n |\n6 | #[delegatable_trait]\n | ^^^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find derive macro `Delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/enum_associated_constant.rs","byte_start":388,"byte_end":396,"line_start":27,"line_end":27,"column_start":10,"column_end":18,"is_primary":true,"text":[{"text":"#[derive(Delegate)]","highlight_start":10,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find derive macro `Delegate` in this scope\n --> tests/run-pass/enum_associated_constant.rs:27:10\n |\n27 | #[derive(Delegate)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/enum_associated_constant.rs","byte_start":401,"byte_end":409,"line_start":28,"line_end":28,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(IntoMany, generics = \"X\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/enum_associated_constant.rs:28:3\n |\n28 | #[delegate(IntoMany, generics = \"X\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"unused imports: `BTreeMap` and `HashMap`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"tests/run-pass/enum_associated_constant.rs","byte_start":68,"byte_end":76,"line_start":4,"line_end":4,"column_start":24,"column_end":32,"is_primary":true,"text":[{"text":"use std::collections::{BTreeMap, HashMap};","highlight_start":24,"highlight_end":32}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/enum_associated_constant.rs","byte_start":78,"byte_end":85,"line_start":4,"line_end":4,"column_start":34,"column_end":41,"is_primary":true,"text":[{"text":"use std::collections::{BTreeMap, HashMap};","highlight_start":34,"highlight_end":41}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove the whole `use` item","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/enum_associated_constant.rs","byte_start":45,"byte_end":88,"line_start":4,"line_end":5,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::collections::{BTreeMap, HashMap};","highlight_start":1,"highlight_end":43},{"text":"","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"warning: unused imports: `BTreeMap` and `HashMap`\n --> tests/run-pass/enum_associated_constant.rs:4:24\n |\n4 | use std::collections::{BTreeMap, HashMap};\n | ^^^^^^^^ ^^^^^^^\n |\n = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"the trait bound `CharOrU32: IntoMany` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/enum_associated_constant.rs","byte_start":522,"byte_end":531,"line_start":35,"line_end":35,"column_start":17,"column_end":26,"is_primary":true,"text":[{"text":" assert_eq!(>::N, 4);","highlight_start":17,"highlight_end":26}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `IntoMany` is not implemented for `CharOrU32`","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/enum_associated_constant.rs","byte_start":440,"byte_end":458,"line_start":29,"line_end":29,"column_start":1,"column_end":19,"is_primary":true,"text":[{"text":"pub enum CharOrU32 {","highlight_start":1,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `IntoMany`:\n `char` implements `IntoMany`\n `u16` implements `IntoMany`\n `u32` implements `IntoMany`\n `u32` implements `IntoMany`","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error[E0277]: the trait bound `CharOrU32: IntoMany` is not satisfied\n --> tests/run-pass/enum_associated_constant.rs:35:17\n |\n35 | assert_eq!(>::N, 4);\n | ^^^^^^^^^ unsatisfied trait bound\n |\nhelp: the trait `IntoMany` is not implemented for `CharOrU32`\n --> tests/run-pass/enum_associated_constant.rs:29:1\n |\n29 | pub enum CharOrU32 {\n | ^^^^^^^^^^^^^^^^^^\n = help: the following other types implement trait `IntoMany`:\n `char` implements `IntoMany`\n `u16` implements `IntoMany`\n `u32` implements `IntoMany`\n `u32` implements `IntoMany`\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 5 previous errors; 1 warning emitted","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 5 previous errors; 1 warning emitted\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0277, E0464.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0277, E0464.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0277`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0277`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/inhibit_where_clause.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/inhibit_where_clause.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/inhibit_where_clause.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/inhibit_where_clause.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/inhibit_where_clause.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/inhibit_where_clause.rs","byte_start":440,"byte_end":448,"line_start":27,"line_end":27,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout,automatic_where_clause=\"false\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/inhibit_where_clause.rs:27:3\n |\n27 | #[delegate(Shout,automatic_where_clause=\"false\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"the trait bound `WrappedAnimals: Shout` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/inhibit_where_clause.rs","byte_start":696,"byte_end":706,"line_start":37,"line_end":37,"column_start":12,"column_end":22,"is_primary":true,"text":[{"text":" use_it(foo_animal);","highlight_start":12,"highlight_end":22}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/inhibit_where_clause.rs","byte_start":689,"byte_end":695,"line_start":37,"line_end":37,"column_start":5,"column_end":11,"is_primary":false,"text":[{"text":" use_it(foo_animal);","highlight_start":5,"highlight_end":11}],"label":"required by a bound introduced by this call","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `Shout` is not implemented for `WrappedAnimals`","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/inhibit_where_clause.rs","byte_start":488,"byte_end":513,"line_start":28,"line_end":28,"column_start":1,"column_end":26,"is_primary":true,"text":[{"text":"pub struct WrappedAnimals(pub Box);","highlight_start":1,"highlight_end":26}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `Shout`:\n Cat\n Dog","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by a bound in `use_it`","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/inhibit_where_clause.rs","byte_start":550,"byte_end":555,"line_start":31,"line_end":31,"column_start":14,"column_end":19,"is_primary":true,"text":[{"text":"fn use_it (shouter: T) {","highlight_start":14,"highlight_end":19}],"label":"required by this bound in `use_it`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0277]: the trait bound `WrappedAnimals: Shout` is not satisfied\n --> tests/run-pass/inhibit_where_clause.rs:37:12\n |\n37 | use_it(foo_animal);\n | ------ ^^^^^^^^^^ unsatisfied trait bound\n | |\n | required by a bound introduced by this call\n |\nhelp: the trait `Shout` is not implemented for `WrappedAnimals`\n --> tests/run-pass/inhibit_where_clause.rs:28:1\n |\n28 | pub struct WrappedAnimals(pub Box);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\n = help: the following other types implement trait `Shout`:\n Cat\n Dog\nnote: required by a bound in `use_it`\n --> tests/run-pass/inhibit_where_clause.rs:31:14\n |\n31 | fn use_it (shouter: T) {\n | ^^^^^ required by this bound in `use_it`\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0277, E0464.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0277, E0464.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0277`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0277`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/method_mut_ref_self.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/method_mut_ref_self.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/method_mut_ref_self.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/method_mut_ref_self.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/method_mut_ref_self.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/method_mut_ref_self.rs","byte_start":283,"byte_end":291,"line_start":19,"line_end":19,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/method_mut_ref_self.rs:19:3\n |\n19 | #[delegate(Shout)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/method_mut_ref_self.rs","byte_start":351,"byte_end":359,"line_start":23,"line_end":23,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/method_mut_ref_self.rs:23:3\n |\n23 | #[delegate(Shout)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Animals` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/method_mut_ref_self.rs","byte_start":519,"byte_end":524,"line_start":31,"line_end":31,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout());","highlight_start":31,"highlight_end":36}],"label":"method not found in `Animals`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/method_mut_ref_self.rs","byte_start":368,"byte_end":384,"line_start":24,"line_end":24,"column_start":1,"column_end":17,"is_primary":false,"text":[{"text":"pub enum Animals {","highlight_start":1,"highlight_end":17}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the method `shout` exists on the type `Cat`","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/method_mut_ref_self.rs","byte_start":117,"byte_end":147,"line_start":7,"line_end":7,"column_start":5,"column_end":35,"is_primary":true,"text":[{"text":" fn shout(&mut self) -> String;","highlight_start":5,"highlight_end":35}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/method_mut_ref_self.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Animals` in the current scope\n --> tests/run-pass/method_mut_ref_self.rs:31:31\n |\n24 | pub enum Animals {\n | ---------------- method `shout` not found for this enum\n...\n31 | println!(\"{}\", foo_animal.shout());\n | ^^^^^ method not found in `Animals`\n |\nnote: the method `shout` exists on the type `Cat`\n --> tests/run-pass/method_mut_ref_self.rs:7:5\n |\n 7 | fn shout(&mut self) -> String;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/method_mut_ref_self.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/generic_trait_lifetime.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/generic_trait_lifetime.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/generic_trait_lifetime.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_lifetime.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/generic_trait_lifetime.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_lifetime.rs","byte_start":327,"byte_end":335,"line_start":20,"line_end":20,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Ref<'x>, generics = \"'x\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/generic_trait_lifetime.rs:20:3\n |\n20 | #[delegate(Ref<'x>, generics = \"'x\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `deref` found for struct `WrapRef<'a, T>` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_lifetime.rs","byte_start":464,"byte_end":469,"line_start":26,"line_end":26,"column_start":19,"column_end":24,"is_primary":true,"text":[{"text":" assert_eq!(*y.deref(), 5)","highlight_start":19,"highlight_end":24}],"label":"method not found in `WrapRef<'_, {integer}>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/generic_trait_lifetime.rs","byte_start":363,"byte_end":384,"line_start":21,"line_end":21,"column_start":1,"column_end":22,"is_primary":false,"text":[{"text":"struct WrapRef<'a, T>(&'a T);","highlight_start":1,"highlight_end":22}],"label":"method `deref` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following traits define an item `deref`, perhaps you need to implement one of them:\ncandidate #1: `Ref`\ncandidate #2: `Deref`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/generic_trait_lifetime.rs","byte_start":464,"byte_end":464,"line_start":26,"line_end":26,"column_start":19,"column_end":19,"is_primary":true,"text":[{"text":" assert_eq!(*y.deref(), 5)","highlight_start":19,"highlight_end":19}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `deref` found for struct `WrapRef<'a, T>` in the current scope\n --> tests/run-pass/generic_trait_lifetime.rs:26:19\n |\n21 | struct WrapRef<'a, T>(&'a T);\n | --------------------- method `deref` not found for this struct\n...\n26 | assert_eq!(*y.deref(), 5)\n | ^^^^^ method not found in `WrapRef<'_, {integer}>`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\n = note: the following traits define an item `deref`, perhaps you need to implement one of them:\n candidate #1: `Ref`\n candidate #2: `Deref`\nhelp: one of the expressions' fields has a method of the same name\n |\n26 | assert_eq!(*y.0.deref(), 5)\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/generic_tuple_struct.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/generic_tuple_struct.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/generic_tuple_struct.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_tuple_struct.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/generic_tuple_struct.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/generic_tuple_struct.rs","byte_start":440,"byte_end":448,"line_start":27,"line_end":27,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/generic_tuple_struct.rs:27:3\n |\n27 | #[delegate(Shout)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for struct `WrappedAnimal` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_tuple_struct.rs","byte_start":584,"byte_end":589,"line_start":32,"line_end":32,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `WrappedAnimal`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/generic_tuple_struct.rs","byte_start":457,"byte_end":491,"line_start":28,"line_end":28,"column_start":1,"column_end":35,"is_primary":false,"text":[{"text":"pub struct WrappedAnimal(A);","highlight_start":1,"highlight_end":35}],"label":"method `shout` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/generic_tuple_struct.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/generic_tuple_struct.rs","byte_start":584,"byte_end":584,"line_start":32,"line_end":32,"column_start":31,"column_end":31,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":31}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for struct `WrappedAnimal` in the current scope\n --> tests/run-pass/generic_tuple_struct.rs:32:31\n |\n28 | pub struct WrappedAnimal(A);\n | ---------------------------------- method `shout` not found for this struct\n...\n32 | println!(\"{}\", foo_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `WrappedAnimal`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/generic_tuple_struct.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\nhelp: one of the expressions' fields has a method of the same name\n |\n32 | println!(\"{}\", foo_animal.0.shout(\"BAR\"));\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for struct `WrappedAnimal` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_tuple_struct.rs","byte_start":670,"byte_end":675,"line_start":34,"line_end":34,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", bar_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `WrappedAnimal`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/generic_tuple_struct.rs","byte_start":457,"byte_end":491,"line_start":28,"line_end":28,"column_start":1,"column_end":35,"is_primary":false,"text":[{"text":"pub struct WrappedAnimal(A);","highlight_start":1,"highlight_end":35}],"label":"method `shout` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/generic_tuple_struct.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/generic_tuple_struct.rs","byte_start":670,"byte_end":670,"line_start":34,"line_end":34,"column_start":31,"column_end":31,"is_primary":true,"text":[{"text":" println!(\"{}\", bar_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":31}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for struct `WrappedAnimal` in the current scope\n --> tests/run-pass/generic_tuple_struct.rs:34:31\n |\n28 | pub struct WrappedAnimal(A);\n | ---------------------------------- method `shout` not found for this struct\n...\n34 | println!(\"{}\", bar_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `WrappedAnimal`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/generic_tuple_struct.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\nhelp: one of the expressions' fields has a method of the same name\n |\n34 | println!(\"{}\", bar_animal.0.shout(\"BAR\"));\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/late_bound_lifetime.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/late_bound_lifetime.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/late_bound_lifetime.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/late_bound_lifetime.rs","byte_start":40,"byte_end":64,"line_start":2,"line_end":2,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/late_bound_lifetime.rs:2:1\n |\n2 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/late_bound_lifetime.rs","byte_start":275,"byte_end":283,"line_start":17,"line_end":17,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout, target = \"0\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/late_bound_lifetime.rs:17:3\n |\n17 | #[delegate(Shout, target = \"0\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for struct `B` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/late_bound_lifetime.rs","byte_start":345,"byte_end":350,"line_start":21,"line_end":21,"column_start":10,"column_end":15,"is_primary":true,"text":[{"text":" B(A).shout()","highlight_start":10,"highlight_end":15}],"label":"method not found in `B`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/late_bound_lifetime.rs","byte_start":306,"byte_end":318,"line_start":18,"line_end":18,"column_start":1,"column_end":13,"is_primary":false,"text":[{"text":"pub struct B(A);","highlight_start":1,"highlight_end":13}],"label":"method `shout` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/late_bound_lifetime.rs","byte_start":135,"byte_end":150,"line_start":7,"line_end":7,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/late_bound_lifetime.rs","byte_start":345,"byte_end":345,"line_start":21,"line_end":21,"column_start":10,"column_end":10,"is_primary":true,"text":[{"text":" B(A).shout()","highlight_start":10,"highlight_end":10}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for struct `B` in the current scope\n --> tests/run-pass/late_bound_lifetime.rs:21:10\n |\n18 | pub struct B(A);\n | ------------ method `shout` not found for this struct\n...\n21 | B(A).shout()\n | ^^^^^ method not found in `B`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/late_bound_lifetime.rs:7:1\n |\n 7 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\nhelp: one of the expressions' fields has a method of the same name\n |\n21 | B(A).0.shout()\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/method_self.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/method_self.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/method_self.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/method_self.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/method_self.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/method_self.rs","byte_start":378,"byte_end":386,"line_start":27,"line_end":27,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/method_self.rs:27:3\n |\n27 | #[delegate(Shout)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Animals` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/method_self.rs","byte_start":531,"byte_end":536,"line_start":35,"line_end":35,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout());","highlight_start":31,"highlight_end":36}],"label":"method not found in `Animals`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/method_self.rs","byte_start":395,"byte_end":411,"line_start":28,"line_end":28,"column_start":1,"column_end":17,"is_primary":false,"text":[{"text":"pub enum Animals {","highlight_start":1,"highlight_end":17}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/method_self.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Animals` in the current scope\n --> tests/run-pass/method_self.rs:35:31\n |\n28 | pub enum Animals {\n | ---------------- method `shout` not found for this enum\n...\n35 | println!(\"{}\", foo_animal.shout());\n | ^^^^^ method not found in `Animals`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/method_self.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/method_single_arg.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/method_single_arg.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/method_single_arg.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/method_single_arg.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/method_single_arg.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/method_single_arg.rs","byte_start":440,"byte_end":448,"line_start":27,"line_end":27,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/method_single_arg.rs:27:3\n |\n27 | #[delegate(Shout)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Animal` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/method_single_arg.rs","byte_start":591,"byte_end":596,"line_start":35,"line_end":35,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `Animal`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/method_single_arg.rs","byte_start":457,"byte_end":472,"line_start":28,"line_end":28,"column_start":1,"column_end":16,"is_primary":false,"text":[{"text":"pub enum Animal {","highlight_start":1,"highlight_end":16}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/method_single_arg.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Animal` in the current scope\n --> tests/run-pass/method_single_arg.rs:35:31\n |\n28 | pub enum Animal {\n | --------------- method `shout` not found for this enum\n...\n35 | println!(\"{}\", foo_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `Animal`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/method_single_arg.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/single_trait_single_method.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/single_trait_single_method.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/single_trait_single_method.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/single_trait_single_method.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/single_trait_single_method.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/single_trait_single_method.rs","byte_start":381,"byte_end":389,"line_start":27,"line_end":27,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/single_trait_single_method.rs:27:3\n |\n27 | #[delegate(Shout)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Animals` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/single_trait_single_method.rs","byte_start":534,"byte_end":539,"line_start":35,"line_end":35,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout());","highlight_start":31,"highlight_end":36}],"label":"method not found in `Animals`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/single_trait_single_method.rs","byte_start":398,"byte_end":414,"line_start":28,"line_end":28,"column_start":1,"column_end":17,"is_primary":false,"text":[{"text":"pub enum Animals {","highlight_start":1,"highlight_end":17}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/single_trait_single_method.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Animals` in the current scope\n --> tests/run-pass/single_trait_single_method.rs:35:31\n |\n28 | pub enum Animals {\n | ---------------- method `shout` not found for this enum\n...\n35 | println!(\"{}\", foo_animal.shout());\n | ^^^^^ method not found in `Animals`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/single_trait_single_method.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/muti-feature.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/muti-feature.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/muti-feature.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/muti-feature.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"the name `HashMap` is defined multiple times","code":{"code":"E0255","explanation":"You can't import a value whose name is the same as another value defined in the\nmodule.\n\nErroneous code example:\n\n```compile_fail,E0255\nuse bar::foo; // error: an item named `foo` is already in scope\n\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {}\n```\n\nYou can use aliases in order to fix this error. Example:\n\n```\nuse bar::foo as bar_foo; // ok!\n\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {}\n```\n\nOr you can reference the item with its parent:\n\n```\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {\n bar::foo(); // we get the item by referring to its parent\n}\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":738,"byte_end":764,"line_start":33,"line_end":33,"column_start":1,"column_end":27,"is_primary":true,"text":[{"text":"struct HashMap();","highlight_start":1,"highlight_end":27}],"label":"`HashMap` redefined here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/muti-feature.rs","byte_start":173,"byte_end":180,"line_start":6,"line_end":6,"column_start":34,"column_end":41,"is_primary":false,"text":[{"text":"use std::collections::{BTreeMap, HashMap};","highlight_start":34,"highlight_end":41}],"label":"previous import of the type `HashMap` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`HashMap` must be defined only once in the type namespace of this module","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"you can use `as` to change the binding name of the import","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":180,"byte_end":180,"line_start":6,"line_end":6,"column_start":41,"column_end":41,"is_primary":true,"text":[{"text":"use std::collections::{BTreeMap, HashMap};","highlight_start":41,"highlight_end":41}],"label":null,"suggested_replacement":" as OtherHashMap","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0255]: the name `HashMap` is defined multiple times\n --> tests/run-pass/muti-feature.rs:33:1\n |\n 6 | use std::collections::{BTreeMap, HashMap};\n | ------- previous import of the type `HashMap` here\n...\n33 | struct HashMap();\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `HashMap` redefined here\n |\n = note: `HashMap` must be defined only once in the type namespace of this module\nhelp: you can use `as` to change the binding name of the import\n |\n 6 | use std::collections::{BTreeMap, HashMap as OtherHashMap};\n | +++++++++++++++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"the name `BTreeMap` is defined multiple times","code":{"code":"E0255","explanation":"You can't import a value whose name is the same as another value defined in the\nmodule.\n\nErroneous code example:\n\n```compile_fail,E0255\nuse bar::foo; // error: an item named `foo` is already in scope\n\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {}\n```\n\nYou can use aliases in order to fix this error. Example:\n\n```\nuse bar::foo as bar_foo; // ok!\n\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {}\n```\n\nOr you can reference the item with its parent:\n\n```\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {\n bar::foo(); // we get the item by referring to its parent\n}\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":885,"byte_end":909,"line_start":37,"line_end":37,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"struct BTreeMap();","highlight_start":1,"highlight_end":25}],"label":"`BTreeMap` redefined here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/muti-feature.rs","byte_start":163,"byte_end":171,"line_start":6,"line_end":6,"column_start":24,"column_end":32,"is_primary":false,"text":[{"text":"use std::collections::{BTreeMap, HashMap};","highlight_start":24,"highlight_end":32}],"label":"previous import of the type `BTreeMap` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`BTreeMap` must be defined only once in the type namespace of this module","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"you can use `as` to change the binding name of the import","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":171,"byte_end":171,"line_start":6,"line_end":6,"column_start":32,"column_end":32,"is_primary":true,"text":[{"text":"use std::collections::{BTreeMap, HashMap};","highlight_start":32,"highlight_end":32}],"label":null,"suggested_replacement":" as OtherBTreeMap","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0255]: the name `BTreeMap` is defined multiple times\n --> tests/run-pass/muti-feature.rs:37:1\n |\n 6 | use std::collections::{BTreeMap, HashMap};\n | -------- previous import of the type `BTreeMap` here\n...\n37 | struct BTreeMap();\n | ^^^^^^^^^^^^^^^^^^^^^^^^ `BTreeMap` redefined here\n |\n = note: `BTreeMap` must be defined only once in the type namespace of this module\nhelp: you can use `as` to change the binding name of the import\n |\n 6 | use std::collections::{BTreeMap as OtherBTreeMap, HashMap};\n | ++++++++++++++++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":612,"byte_end":620,"line_start":32,"line_end":32,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Get, generics = \"X\", target = \"self\", where = \"K: Hash + Eq + Borrow, S: BuildHasher, X: Hash + Eq + ?Sized\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/muti-feature.rs:32:3\n |\n32 | #[delegate(Get, generics = \"X\", target = \"self\", where = \"K: Hash + Eq + Borrow, S: BuildHasher, X: Hash + Eq + ?Sized\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":787,"byte_end":795,"line_start":36,"line_end":36,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Get, generics = \"X\", target = \"self\", where = \"K: Ord + Borrow, X: Ord + ?Sized\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/muti-feature.rs:36:3\n |\n36 | #[delegate(Get, generics = \"X\", target = \"self\", where = \"K: Ord + Borrow, X: Ord + ?Sized\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":933,"byte_end":941,"line_start":40,"line_end":40,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Map)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/muti-feature.rs:40:3\n |\n40 | #[delegate(Map)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":950,"byte_end":958,"line_start":41,"line_end":41,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Get, generics = \"X\", where = \"X: ?Sized, A: Map, B: Map\")] //auto where clause misses required on super trait","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/muti-feature.rs:41:3\n |\n41 | #[delegate(Get, generics = \"X\", where = \"X: ?Sized, A: Map, B: Map\")] //auto where clause misses required on super trait\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"unused import: `std::borrow::Borrow`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":94,"byte_end":113,"line_start":4,"line_end":4,"column_start":5,"column_end":24,"is_primary":true,"text":[{"text":"use std::borrow::Borrow;","highlight_start":5,"highlight_end":24}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove the whole `use` item","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":90,"byte_end":115,"line_start":4,"line_end":5,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::borrow::Borrow;","highlight_start":1,"highlight_end":25},{"text":"use std::cmp::{Eq, Ord};","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"warning: unused import: `std::borrow::Borrow`\n --> tests/run-pass/muti-feature.rs:4:5\n |\n4 | use std::borrow::Borrow;\n | ^^^^^^^^^^^^^^^^^^^\n |\n = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"unused imports: `Eq` and `Ord`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":130,"byte_end":132,"line_start":5,"line_end":5,"column_start":16,"column_end":18,"is_primary":true,"text":[{"text":"use std::cmp::{Eq, Ord};","highlight_start":16,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/muti-feature.rs","byte_start":134,"byte_end":137,"line_start":5,"line_end":5,"column_start":20,"column_end":23,"is_primary":true,"text":[{"text":"use std::cmp::{Eq, Ord};","highlight_start":20,"highlight_end":23}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove the whole `use` item","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":115,"byte_end":140,"line_start":5,"line_end":6,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::cmp::{Eq, Ord};","highlight_start":1,"highlight_end":25},{"text":"use std::collections::{BTreeMap, HashMap};","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"warning: unused imports: `Eq` and `Ord`\n --> tests/run-pass/muti-feature.rs:5:16\n |\n5 | use std::cmp::{Eq, Ord};\n | ^^ ^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"unused imports: `BuildHasher` and `Hash`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":199,"byte_end":210,"line_start":7,"line_end":7,"column_start":17,"column_end":28,"is_primary":true,"text":[{"text":"use std::hash::{BuildHasher, Hash};","highlight_start":17,"highlight_end":28}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/muti-feature.rs","byte_start":212,"byte_end":216,"line_start":7,"line_end":7,"column_start":30,"column_end":34,"is_primary":true,"text":[{"text":"use std::hash::{BuildHasher, Hash};","highlight_start":30,"highlight_end":34}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove the whole `use` item","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":183,"byte_end":219,"line_start":7,"line_end":8,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::hash::{BuildHasher, Hash};","highlight_start":1,"highlight_end":36},{"text":"","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"warning: unused imports: `BuildHasher` and `Hash`\n --> tests/run-pass/muti-feature.rs:7:17\n |\n7 | use std::hash::{BuildHasher, Hash};\n | ^^^^^^^^^^^ ^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"type parameter `K` is never used","code":{"code":"E0392","explanation":"A type or lifetime parameter has been declared but is not actually used.\n\nErroneous code example:\n\n```compile_fail,E0392\nenum Foo {\n Bar,\n}\n```\n\nIf the type parameter was included by mistake, this error can be fixed\nby simply removing the type parameter, as shown below:\n\n```\nenum Foo {\n Bar,\n}\n```\n\nAlternatively, if the type parameter was intentionally inserted, it must be\nused. A simple fix is shown below:\n\n```\nenum Foo {\n Bar(T),\n}\n```\n\nThis error may also commonly be found when working with unsafe code. For\nexample, when using raw pointers one may wish to specify the lifetime for\nwhich the pointed-at data is valid. An initial attempt (below) causes this\nerror:\n\n```compile_fail,E0392\nstruct Foo<'a, T> {\n x: *const T,\n}\n```\n\nWe want to express the constraint that Foo should not outlive `'a`, because\nthe data pointed to by `T` is only valid for that lifetime. The problem is\nthat there are no actual uses of `'a`. It's possible to work around this\nby adding a PhantomData type to the struct, using it to tell the compiler\nto act as if the struct contained a borrowed reference `&'a T`:\n\n```\nuse std::marker::PhantomData;\n\nstruct Foo<'a, T: 'a> {\n x: *const T,\n phantom: PhantomData<&'a T>\n}\n```\n\n[PhantomData] can also be used to express information about unused type\nparameters.\n\n[PhantomData]: https://doc.rust-lang.org/std/marker/struct.PhantomData.html\n"},"level":"error","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":753,"byte_end":754,"line_start":33,"line_end":33,"column_start":16,"column_end":17,"is_primary":true,"text":[{"text":"struct HashMap();","highlight_start":16,"highlight_end":17}],"label":"unused type parameter","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"consider removing `K`, referring to it in a field, or using a marker such as `PhantomData`","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"if you intended `K` to be a const parameter, use `const K: /* Type */` instead","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error[E0392]: type parameter `K` is never used\n --> tests/run-pass/muti-feature.rs:33:16\n |\n33 | struct HashMap();\n | ^ unused type parameter\n |\n = help: consider removing `K`, referring to it in a field, or using a marker such as `PhantomData`\n = help: if you intended `K` to be a const parameter, use `const K: /* Type */` instead\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"type parameter `V` is never used","code":{"code":"E0392","explanation":"A type or lifetime parameter has been declared but is not actually used.\n\nErroneous code example:\n\n```compile_fail,E0392\nenum Foo {\n Bar,\n}\n```\n\nIf the type parameter was included by mistake, this error can be fixed\nby simply removing the type parameter, as shown below:\n\n```\nenum Foo {\n Bar,\n}\n```\n\nAlternatively, if the type parameter was intentionally inserted, it must be\nused. A simple fix is shown below:\n\n```\nenum Foo {\n Bar(T),\n}\n```\n\nThis error may also commonly be found when working with unsafe code. For\nexample, when using raw pointers one may wish to specify the lifetime for\nwhich the pointed-at data is valid. An initial attempt (below) causes this\nerror:\n\n```compile_fail,E0392\nstruct Foo<'a, T> {\n x: *const T,\n}\n```\n\nWe want to express the constraint that Foo should not outlive `'a`, because\nthe data pointed to by `T` is only valid for that lifetime. The problem is\nthat there are no actual uses of `'a`. It's possible to work around this\nby adding a PhantomData type to the struct, using it to tell the compiler\nto act as if the struct contained a borrowed reference `&'a T`:\n\n```\nuse std::marker::PhantomData;\n\nstruct Foo<'a, T: 'a> {\n x: *const T,\n phantom: PhantomData<&'a T>\n}\n```\n\n[PhantomData] can also be used to express information about unused type\nparameters.\n\n[PhantomData]: https://doc.rust-lang.org/std/marker/struct.PhantomData.html\n"},"level":"error","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":756,"byte_end":757,"line_start":33,"line_end":33,"column_start":19,"column_end":20,"is_primary":true,"text":[{"text":"struct HashMap();","highlight_start":19,"highlight_end":20}],"label":"unused type parameter","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"consider removing `V`, referring to it in a field, or using a marker such as `PhantomData`","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"if you intended `V` to be a const parameter, use `const V: /* Type */` instead","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error[E0392]: type parameter `V` is never used\n --> tests/run-pass/muti-feature.rs:33:19\n |\n33 | struct HashMap();\n | ^ unused type parameter\n |\n = help: consider removing `V`, referring to it in a field, or using a marker such as `PhantomData`\n = help: if you intended `V` to be a const parameter, use `const V: /* Type */` instead\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"type parameter `S` is never used","code":{"code":"E0392","explanation":"A type or lifetime parameter has been declared but is not actually used.\n\nErroneous code example:\n\n```compile_fail,E0392\nenum Foo {\n Bar,\n}\n```\n\nIf the type parameter was included by mistake, this error can be fixed\nby simply removing the type parameter, as shown below:\n\n```\nenum Foo {\n Bar,\n}\n```\n\nAlternatively, if the type parameter was intentionally inserted, it must be\nused. A simple fix is shown below:\n\n```\nenum Foo {\n Bar(T),\n}\n```\n\nThis error may also commonly be found when working with unsafe code. For\nexample, when using raw pointers one may wish to specify the lifetime for\nwhich the pointed-at data is valid. An initial attempt (below) causes this\nerror:\n\n```compile_fail,E0392\nstruct Foo<'a, T> {\n x: *const T,\n}\n```\n\nWe want to express the constraint that Foo should not outlive `'a`, because\nthe data pointed to by `T` is only valid for that lifetime. The problem is\nthat there are no actual uses of `'a`. It's possible to work around this\nby adding a PhantomData type to the struct, using it to tell the compiler\nto act as if the struct contained a borrowed reference `&'a T`:\n\n```\nuse std::marker::PhantomData;\n\nstruct Foo<'a, T: 'a> {\n x: *const T,\n phantom: PhantomData<&'a T>\n}\n```\n\n[PhantomData] can also be used to express information about unused type\nparameters.\n\n[PhantomData]: https://doc.rust-lang.org/std/marker/struct.PhantomData.html\n"},"level":"error","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":759,"byte_end":760,"line_start":33,"line_end":33,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"struct HashMap();","highlight_start":22,"highlight_end":23}],"label":"unused type parameter","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"consider removing `S`, referring to it in a field, or using a marker such as `PhantomData`","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"if you intended `S` to be a const parameter, use `const S: /* Type */` instead","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error[E0392]: type parameter `S` is never used\n --> tests/run-pass/muti-feature.rs:33:22\n |\n33 | struct HashMap();\n | ^ unused type parameter\n |\n = help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData`\n = help: if you intended `S` to be a const parameter, use `const S: /* Type */` instead\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"type parameter `K` is never used","code":{"code":"E0392","explanation":"A type or lifetime parameter has been declared but is not actually used.\n\nErroneous code example:\n\n```compile_fail,E0392\nenum Foo {\n Bar,\n}\n```\n\nIf the type parameter was included by mistake, this error can be fixed\nby simply removing the type parameter, as shown below:\n\n```\nenum Foo {\n Bar,\n}\n```\n\nAlternatively, if the type parameter was intentionally inserted, it must be\nused. A simple fix is shown below:\n\n```\nenum Foo {\n Bar(T),\n}\n```\n\nThis error may also commonly be found when working with unsafe code. For\nexample, when using raw pointers one may wish to specify the lifetime for\nwhich the pointed-at data is valid. An initial attempt (below) causes this\nerror:\n\n```compile_fail,E0392\nstruct Foo<'a, T> {\n x: *const T,\n}\n```\n\nWe want to express the constraint that Foo should not outlive `'a`, because\nthe data pointed to by `T` is only valid for that lifetime. The problem is\nthat there are no actual uses of `'a`. It's possible to work around this\nby adding a PhantomData type to the struct, using it to tell the compiler\nto act as if the struct contained a borrowed reference `&'a T`:\n\n```\nuse std::marker::PhantomData;\n\nstruct Foo<'a, T: 'a> {\n x: *const T,\n phantom: PhantomData<&'a T>\n}\n```\n\n[PhantomData] can also be used to express information about unused type\nparameters.\n\n[PhantomData]: https://doc.rust-lang.org/std/marker/struct.PhantomData.html\n"},"level":"error","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":901,"byte_end":902,"line_start":37,"line_end":37,"column_start":17,"column_end":18,"is_primary":true,"text":[{"text":"struct BTreeMap();","highlight_start":17,"highlight_end":18}],"label":"unused type parameter","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"consider removing `K`, referring to it in a field, or using a marker such as `PhantomData`","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"if you intended `K` to be a const parameter, use `const K: /* Type */` instead","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error[E0392]: type parameter `K` is never used\n --> tests/run-pass/muti-feature.rs:37:17\n |\n37 | struct BTreeMap();\n | ^ unused type parameter\n |\n = help: consider removing `K`, referring to it in a field, or using a marker such as `PhantomData`\n = help: if you intended `K` to be a const parameter, use `const K: /* Type */` instead\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"type parameter `V` is never used","code":{"code":"E0392","explanation":"A type or lifetime parameter has been declared but is not actually used.\n\nErroneous code example:\n\n```compile_fail,E0392\nenum Foo {\n Bar,\n}\n```\n\nIf the type parameter was included by mistake, this error can be fixed\nby simply removing the type parameter, as shown below:\n\n```\nenum Foo {\n Bar,\n}\n```\n\nAlternatively, if the type parameter was intentionally inserted, it must be\nused. A simple fix is shown below:\n\n```\nenum Foo {\n Bar(T),\n}\n```\n\nThis error may also commonly be found when working with unsafe code. For\nexample, when using raw pointers one may wish to specify the lifetime for\nwhich the pointed-at data is valid. An initial attempt (below) causes this\nerror:\n\n```compile_fail,E0392\nstruct Foo<'a, T> {\n x: *const T,\n}\n```\n\nWe want to express the constraint that Foo should not outlive `'a`, because\nthe data pointed to by `T` is only valid for that lifetime. The problem is\nthat there are no actual uses of `'a`. It's possible to work around this\nby adding a PhantomData type to the struct, using it to tell the compiler\nto act as if the struct contained a borrowed reference `&'a T`:\n\n```\nuse std::marker::PhantomData;\n\nstruct Foo<'a, T: 'a> {\n x: *const T,\n phantom: PhantomData<&'a T>\n}\n```\n\n[PhantomData] can also be used to express information about unused type\nparameters.\n\n[PhantomData]: https://doc.rust-lang.org/std/marker/struct.PhantomData.html\n"},"level":"error","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":904,"byte_end":905,"line_start":37,"line_end":37,"column_start":20,"column_end":21,"is_primary":true,"text":[{"text":"struct BTreeMap();","highlight_start":20,"highlight_end":21}],"label":"unused type parameter","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"consider removing `V`, referring to it in a field, or using a marker such as `PhantomData`","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"if you intended `V` to be a const parameter, use `const V: /* Type */` instead","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error[E0392]: type parameter `V` is never used\n --> tests/run-pass/muti-feature.rs:37:20\n |\n37 | struct BTreeMap();\n | ^ unused type parameter\n |\n = help: consider removing `V`, referring to it in a field, or using a marker such as `PhantomData`\n = help: if you intended `V` to be a const parameter, use `const V: /* Type */` instead\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `get` found for enum `Either` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/muti-feature.rs","byte_start":1309,"byte_end":1312,"line_start":50,"line_end":50,"column_start":29,"column_end":32,"is_primary":true,"text":[{"text":" println!(\"{:?}\", my_map.get(\"a\"));","highlight_start":29,"highlight_end":32}],"label":"method not found in `Either, BTreeMap<&str, u32>>`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/muti-feature.rs","byte_start":1088,"byte_end":1109,"line_start":42,"line_end":42,"column_start":1,"column_end":22,"is_primary":false,"text":[{"text":"pub enum Either {","highlight_start":1,"highlight_end":22}],"label":"method `get` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"the following traits define an item `get`, perhaps you need to implement one of them:\ncandidate #1: `Get`\ncandidate #2: `SliceIndex`","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"the full name for the type has been written to '/tmp/muti-feature.long-type-18160640427202392485.txt'","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `--verbose` to print the full type name to the console","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `get` found for enum `Either` in the current scope\n --> tests/run-pass/muti-feature.rs:50:29\n |\n42 | pub enum Either {\n | --------------------- method `get` not found for this enum\n...\n50 | println!(\"{:?}\", my_map.get(\"a\"));\n | ^^^ method not found in `Either, BTreeMap<&str, u32>>`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\n = note: the following traits define an item `get`, perhaps you need to implement one of them:\n candidate #1: `Get`\n candidate #2: `SliceIndex`\n = note: the full name for the type has been written to '/tmp/muti-feature.long-type-18160640427202392485.txt'\n = note: consider using `--verbose` to print the full type name to the console\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 13 previous errors; 3 warnings emitted","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 13 previous errors; 3 warnings emitted\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0255, E0392, E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0255, E0392, E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0255`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0255`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/single_variant.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/single_variant.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/single_variant.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/single_variant.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/single_variant.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/single_variant.rs","byte_start":311,"byte_end":319,"line_start":19,"line_end":19,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/single_variant.rs:19:3\n |\n19 | #[delegate(Shout)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Animal` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/single_variant.rs","byte_start":448,"byte_end":453,"line_start":26,"line_end":26,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `Animal`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/single_variant.rs","byte_start":328,"byte_end":343,"line_start":20,"line_end":20,"column_start":1,"column_end":16,"is_primary":false,"text":[{"text":"pub enum Animal {","highlight_start":1,"highlight_end":16}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the method `shout` exists on the type `Dog`","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/single_variant.rs","byte_start":117,"byte_end":156,"line_start":7,"line_end":7,"column_start":5,"column_end":44,"is_primary":true,"text":[{"text":" fn shout(&self, input: &str) -> String;","highlight_start":5,"highlight_end":44}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/single_variant.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Animal` in the current scope\n --> tests/run-pass/single_variant.rs:26:31\n |\n20 | pub enum Animal {\n | --------------- method `shout` not found for this enum\n...\n26 | println!(\"{}\", foo_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `Animal`\n |\nnote: the method `shout` exists on the type `Dog`\n --> tests/run-pass/single_variant.rs:7:5\n |\n 7 | fn shout(&self, input: &str) -> String;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/single_variant.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/generic_trait_single_type.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/generic_trait_single_type.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/generic_trait_single_type.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_single_type.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/generic_trait_single_type.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"the name `Index` is defined multiple times","code":{"code":"E0255","explanation":"You can't import a value whose name is the same as another value defined in the\nmodule.\n\nErroneous code example:\n\n```compile_fail,E0255\nuse bar::foo; // error: an item named `foo` is already in scope\n\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {}\n```\n\nYou can use aliases in order to fix this error. Example:\n\n```\nuse bar::foo as bar_foo; // ok!\n\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {}\n```\n\nOr you can reference the item with its parent:\n\n```\nfn foo() {}\n\nmod bar {\n pub fn foo() {}\n}\n\nfn main() {\n bar::foo(); // we get the item by referring to its parent\n}\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_single_type.rs","byte_start":94,"byte_end":122,"line_start":6,"line_end":6,"column_start":1,"column_end":29,"is_primary":true,"text":[{"text":"pub trait Index {","highlight_start":1,"highlight_end":29}],"label":"`Index` redefined here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/generic_trait_single_type.rs","byte_start":48,"byte_end":63,"line_start":3,"line_end":3,"column_start":5,"column_end":20,"is_primary":false,"text":[{"text":"use std::ops::Index;","highlight_start":5,"highlight_end":20}],"label":"previous import of the trait `Index` here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`Index` must be defined only once in the type namespace of this module","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"you can use `as` to change the binding name of the import","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/generic_trait_single_type.rs","byte_start":63,"byte_end":63,"line_start":3,"line_end":3,"column_start":20,"column_end":20,"is_primary":true,"text":[{"text":"use std::ops::Index;","highlight_start":20,"highlight_end":20}],"label":null,"suggested_replacement":" as OtherIndex","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0255]: the name `Index` is defined multiple times\n --> tests/run-pass/generic_trait_single_type.rs:6:1\n |\n3 | use std::ops::Index;\n | --------------- previous import of the trait `Index` here\n...\n6 | pub trait Index {\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Index` redefined here\n |\n = note: `Index` must be defined only once in the type namespace of this module\nhelp: you can use `as` to change the binding name of the import\n |\n3 | use std::ops::Index as OtherIndex;\n | +++++++++++++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegatable_trait_remote` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_single_type.rs","byte_start":68,"byte_end":92,"line_start":5,"line_end":5,"column_start":3,"column_end":27,"is_primary":true,"text":[{"text":"#[delegatable_trait_remote]","highlight_start":3,"highlight_end":27}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegatable_trait_remote` in this scope\n --> tests/run-pass/generic_trait_single_type.rs:5:3\n |\n5 | #[delegatable_trait_remote]\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find derive macro `Delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_single_type.rs","byte_start":213,"byte_end":221,"line_start":12,"line_end":12,"column_start":10,"column_end":18,"is_primary":true,"text":[{"text":"#[derive(Delegate)]","highlight_start":10,"highlight_end":18}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find derive macro `Delegate` in this scope\n --> tests/run-pass/generic_trait_single_type.rs:12:10\n |\n12 | #[derive(Delegate)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_single_type.rs","byte_start":226,"byte_end":234,"line_start":13,"line_end":13,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Index)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/generic_trait_single_type.rs:13:3\n |\n13 | #[delegate(Index)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"unused import: `std::ops::Index`","code":{"code":"unused_imports","explanation":null},"level":"warning","spans":[{"file_name":"tests/run-pass/generic_trait_single_type.rs","byte_start":48,"byte_end":63,"line_start":3,"line_end":3,"column_start":5,"column_end":20,"is_primary":true,"text":[{"text":"use std::ops::Index;","highlight_start":5,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove the whole `use` item","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/generic_trait_single_type.rs","byte_start":44,"byte_end":65,"line_start":3,"line_end":4,"column_start":1,"column_end":1,"is_primary":true,"text":[{"text":"use std::ops::Index;","highlight_start":1,"highlight_end":21},{"text":"","highlight_start":1,"highlight_end":1}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"warning: unused import: `std::ops::Index`\n --> tests/run-pass/generic_trait_single_type.rs:3:5\n |\n3 | use std::ops::Index;\n | ^^^^^^^^^^^^^^^\n |\n = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot index into a value of type `TinyVec<{integer}>`","code":{"code":"E0608","explanation":"An attempt to use index on a type which doesn't implement the `std::ops::Index`\ntrait was performed.\n\nErroneous code example:\n\n```compile_fail,E0608\n0u8[2]; // error: cannot index into a value of type `u8`\n```\n\nTo be able to index into a type it needs to implement the `std::ops::Index`\ntrait. Example:\n\n```\nlet v: Vec = vec![0, 1, 2, 3];\n\n// The `Vec` type implements the `Index` trait so you can do:\nprintln!(\"{}\", v[2]);\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_single_type.rs","byte_start":415,"byte_end":418,"line_start":22,"line_end":22,"column_start":19,"column_end":22,"is_primary":true,"text":[{"text":" assert_eq!(tv1[0], 5);","highlight_start":19,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0608]: cannot index into a value of type `TinyVec<{integer}>`\n --> tests/run-pass/generic_trait_single_type.rs:22:19\n |\n22 | assert_eq!(tv1[0], 5);\n | ^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot index into a value of type `TinyVec<{integer}>`","code":{"code":"E0608","explanation":"An attempt to use index on a type which doesn't implement the `std::ops::Index`\ntrait was performed.\n\nErroneous code example:\n\n```compile_fail,E0608\n0u8[2]; // error: cannot index into a value of type `u8`\n```\n\nTo be able to index into a type it needs to implement the `std::ops::Index`\ntrait. Example:\n\n```\nlet v: Vec = vec![0, 1, 2, 3];\n\n// The `Vec` type implements the `Index` trait so you can do:\nprintln!(\"{}\", v[2]);\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/generic_trait_single_type.rs","byte_start":442,"byte_end":445,"line_start":23,"line_end":23,"column_start":19,"column_end":22,"is_primary":true,"text":[{"text":" assert_eq!(tv2[1], 7);","highlight_start":19,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0608]: cannot index into a value of type `TinyVec<{integer}>`\n --> tests/run-pass/generic_trait_single_type.rs:23:19\n |\n23 | assert_eq!(tv2[1], 7);\n | ^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 7 previous errors; 1 warning emitted","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 7 previous errors; 1 warning emitted\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0255, E0464, E0608.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0255, E0464, E0608.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0255`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0255`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/method_ref_self.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/method_ref_self.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/method_ref_self.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/method_ref_self.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/method_ref_self.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/method_ref_self.rs","byte_start":381,"byte_end":389,"line_start":27,"line_end":27,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/method_ref_self.rs:27:3\n |\n27 | #[delegate(Shout)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Animals` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/method_ref_self.rs","byte_start":534,"byte_end":539,"line_start":35,"line_end":35,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout());","highlight_start":31,"highlight_end":36}],"label":"method not found in `Animals`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/method_ref_self.rs","byte_start":398,"byte_end":414,"line_start":28,"line_end":28,"column_start":1,"column_end":17,"is_primary":false,"text":[{"text":"pub enum Animals {","highlight_start":1,"highlight_end":17}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/method_ref_self.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Animals` in the current scope\n --> tests/run-pass/method_ref_self.rs:35:31\n |\n28 | pub enum Animals {\n | ---------------- method `shout` not found for this enum\n...\n35 | println!(\"{}\", foo_animal.shout());\n | ^^^^^ method not found in `Animals`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/method_ref_self.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/struct_field_target.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/struct_field_target.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/struct_field_target.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/struct_field_target.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/struct_field_target.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/struct_field_target.rs","byte_start":328,"byte_end":336,"line_start":21,"line_end":21,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout, target = \"inner\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/struct_field_target.rs:21:3\n |\n21 | #[delegate(Shout, target = \"inner\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for struct `WrappedCat` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/struct_field_target.rs","byte_start":549,"byte_end":554,"line_start":32,"line_end":32,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `WrappedCat`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/struct_field_target.rs","byte_start":363,"byte_end":384,"line_start":22,"line_end":22,"column_start":1,"column_end":22,"is_primary":false,"text":[{"text":"pub struct WrappedCat {","highlight_start":1,"highlight_end":22}],"label":"method `shout` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/struct_field_target.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/struct_field_target.rs","byte_start":549,"byte_end":549,"line_start":32,"line_end":32,"column_start":31,"column_end":31,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":31}],"label":null,"suggested_replacement":"inner.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for struct `WrappedCat` in the current scope\n --> tests/run-pass/struct_field_target.rs:32:31\n |\n22 | pub struct WrappedCat {\n | --------------------- method `shout` not found for this struct\n...\n32 | println!(\"{}\", foo_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `WrappedCat`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/struct_field_target.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\nhelp: one of the expressions' fields has a method of the same name\n |\n32 | println!(\"{}\", foo_animal.inner.shout(\"BAR\"));\n | ++++++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/struct_single_field_target.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/struct_single_field_target.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/struct_single_field_target.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/struct_single_field_target.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/struct_single_field_target.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/struct_single_field_target.rs","byte_start":311,"byte_end":319,"line_start":19,"line_end":19,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout, target = \"inner\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/struct_single_field_target.rs:19:3\n |\n19 | #[delegate(Shout, target = \"inner\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for struct `WrappedCat` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/struct_single_field_target.rs","byte_start":483,"byte_end":488,"line_start":26,"line_end":26,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `WrappedCat`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/struct_single_field_target.rs","byte_start":346,"byte_end":367,"line_start":20,"line_end":20,"column_start":1,"column_end":22,"is_primary":false,"text":[{"text":"pub struct WrappedCat {","highlight_start":1,"highlight_end":22}],"label":"method `shout` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/struct_single_field_target.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/struct_single_field_target.rs","byte_start":483,"byte_end":483,"line_start":26,"line_end":26,"column_start":31,"column_end":31,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":31}],"label":null,"suggested_replacement":"inner.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for struct `WrappedCat` in the current scope\n --> tests/run-pass/struct_single_field_target.rs:26:31\n |\n20 | pub struct WrappedCat {\n | --------------------- method `shout` not found for this struct\n...\n26 | println!(\"{}\", foo_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `WrappedCat`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/struct_single_field_target.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\nhelp: one of the expressions' fields has a method of the same name\n |\n26 | println!(\"{}\", foo_animal.inner.shout(\"BAR\"));\n | ++++++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/two_enums.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/two_enums.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/two_enums.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/two_enums.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/two_enums.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/two_enums.rs","byte_start":440,"byte_end":448,"line_start":27,"line_end":27,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/two_enums.rs:27:3\n |\n27 | #[delegate(Shout)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/two_enums.rs","byte_start":547,"byte_end":555,"line_start":34,"line_end":34,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/two_enums.rs:34:3\n |\n34 | #[delegate(Shout)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Either` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/two_enums.rs","byte_start":757,"byte_end":762,"line_start":43,"line_end":43,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `Either`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/two_enums.rs","byte_start":457,"byte_end":492,"line_start":28,"line_end":28,"column_start":1,"column_end":36,"is_primary":false,"text":[{"text":"pub enum Either {","highlight_start":1,"highlight_end":36}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/two_enums.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Either` in the current scope\n --> tests/run-pass/two_enums.rs:43:31\n |\n28 | pub enum Either {\n | ----------------------------------- method `shout` not found for this enum\n...\n43 | println!(\"{}\", foo_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `Either`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/two_enums.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Either3` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/two_enums.rs","byte_start":862,"byte_end":867,"line_start":45,"line_end":45,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", bar_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `Either3`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/two_enums.rs","byte_start":564,"byte_end":610,"line_start":35,"line_end":35,"column_start":1,"column_end":47,"is_primary":false,"text":[{"text":"pub enum Either3 {","highlight_start":1,"highlight_end":47}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/two_enums.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Either3` in the current scope\n --> tests/run-pass/two_enums.rs:45:31\n |\n35 | pub enum Either3 {\n | ---------------------------------------------- method `shout` not found for this enum\n...\n45 | println!(\"{}\", bar_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `Either3`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/two_enums.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 5 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 5 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/struct_single_field.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/struct_single_field.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/struct_single_field.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/struct_single_field.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/struct_single_field.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/struct_single_field.rs","byte_start":311,"byte_end":319,"line_start":19,"line_end":19,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/struct_single_field.rs:19:3\n |\n19 | #[delegate(Shout)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for struct `WrappedCat` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/struct_single_field.rs","byte_start":465,"byte_end":470,"line_start":26,"line_end":26,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `WrappedCat`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/struct_single_field.rs","byte_start":328,"byte_end":349,"line_start":20,"line_end":20,"column_start":1,"column_end":22,"is_primary":false,"text":[{"text":"pub struct WrappedCat {","highlight_start":1,"highlight_end":22}],"label":"method `shout` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/struct_single_field.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/struct_single_field.rs","byte_start":465,"byte_end":465,"line_start":26,"line_end":26,"column_start":31,"column_end":31,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":31}],"label":null,"suggested_replacement":"inner.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for struct `WrappedCat` in the current scope\n --> tests/run-pass/struct_single_field.rs:26:31\n |\n20 | pub struct WrappedCat {\n | --------------------- method `shout` not found for this struct\n...\n26 | println!(\"{}\", foo_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `WrappedCat`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/struct_single_field.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\nhelp: one of the expressions' fields has a method of the same name\n |\n26 | println!(\"{}\", foo_animal.inner.shout(\"BAR\"));\n | ++++++\n\n"} [INFO] [stderr] error: test failed, to rerun pass `--test compiletest` [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/tuple_struct_single_field.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/tuple_struct_single_field.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/tuple_struct_single_field.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/tuple_struct_single_field.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/tuple_struct_single_field.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/tuple_struct_single_field.rs","byte_start":311,"byte_end":319,"line_start":19,"line_end":19,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout)]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/tuple_struct_single_field.rs:19:3\n |\n19 | #[delegate(Shout)]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for struct `WrappedCat` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/tuple_struct_single_field.rs","byte_start":441,"byte_end":446,"line_start":24,"line_end":24,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `WrappedCat`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/tuple_struct_single_field.rs","byte_start":328,"byte_end":349,"line_start":20,"line_end":20,"column_start":1,"column_end":22,"is_primary":false,"text":[{"text":"pub struct WrappedCat(Cat);","highlight_start":1,"highlight_end":22}],"label":"method `shout` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/tuple_struct_single_field.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"one of the expressions' fields has a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/tuple_struct_single_field.rs","byte_start":441,"byte_end":441,"line_start":24,"line_end":24,"column_start":31,"column_end":31,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":31}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for struct `WrappedCat` in the current scope\n --> tests/run-pass/tuple_struct_single_field.rs:24:31\n |\n20 | pub struct WrappedCat(Cat);\n | --------------------- method `shout` not found for this struct\n...\n24 | println!(\"{}\", foo_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `WrappedCat`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/tuple_struct_single_field.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\nhelp: one of the expressions' fields has a method of the same name\n |\n24 | println!(\"{}\", foo_animal.0.shout(\"BAR\"));\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/taxonomy.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/taxonomy.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/taxonomy.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/taxonomy.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/taxonomy.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/taxonomy.rs","byte_start":918,"byte_end":926,"line_start":55,"line_end":55,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Taxonomy, generics = \"X\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/taxonomy.rs:55:3\n |\n55 | #[delegate(Taxonomy, generics = \"X\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"the trait bound `Either: Taxonomy` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/taxonomy.rs","byte_start":1057,"byte_end":1073,"line_start":63,"line_end":63,"column_start":22,"column_end":38,"is_primary":true,"text":[{"text":" type_name::< as Taxonomy>::Res>(),","highlight_start":22,"highlight_end":38}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `Taxonomy` is not implemented for `Either`","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/taxonomy.rs","byte_start":957,"byte_end":978,"line_start":56,"line_end":56,"column_start":1,"column_end":22,"is_primary":true,"text":[{"text":"pub enum Either {","highlight_start":1,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `Taxonomy`:\n `Alligator` implements `Taxonomy`\n `Cat` implements `Taxonomy`\n `Dog` implements `Taxonomy`\n `Mammal` implements `Taxonomy`\n `Reptile` implements `Taxonomy`","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"error[E0277]: the trait bound `Either: Taxonomy` is not satisfied\n --> tests/run-pass/taxonomy.rs:63:22\n |\n63 | type_name::< as Taxonomy>::Res>(),\n | ^^^^^^^^^^^^^^^^ unsatisfied trait bound\n |\nhelp: the trait `Taxonomy` is not implemented for `Either`\n --> tests/run-pass/taxonomy.rs:56:1\n |\n56 | pub enum Either {\n | ^^^^^^^^^^^^^^^^^^^^^\n = help: the following other types implement trait `Taxonomy`:\n `Alligator` implements `Taxonomy`\n `Cat` implements `Taxonomy`\n `Dog` implements `Taxonomy`\n `Mammal` implements `Taxonomy`\n `Reptile` implements `Taxonomy`\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"the trait bound `Either: Base` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/taxonomy.rs","byte_start":1176,"byte_end":1226,"line_start":67,"line_end":67,"column_start":21,"column_end":71,"is_primary":true,"text":[{"text":" type_name::< as Taxonomy>::Res>(),","highlight_start":21,"highlight_end":71}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `Base` is not implemented for `Either`","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/taxonomy.rs","byte_start":957,"byte_end":978,"line_start":56,"line_end":56,"column_start":1,"column_end":22,"is_primary":true,"text":[{"text":"pub enum Either {","highlight_start":1,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `Base`:\n Alligator\n Cat\n Dog","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required for `Either` to implement `Taxonomy`","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/taxonomy.rs","byte_start":713,"byte_end":717,"line_start":47,"line_end":47,"column_start":9,"column_end":13,"is_primary":false,"text":[{"text":"impl> Taxonomy for E","highlight_start":9,"highlight_end":13}],"label":"unsatisfied trait bound introduced here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/taxonomy.rs","byte_start":737,"byte_end":754,"line_start":47,"line_end":47,"column_start":33,"column_end":50,"is_primary":true,"text":[{"text":"impl> Taxonomy for E","highlight_start":33,"highlight_end":50}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/taxonomy.rs","byte_start":759,"byte_end":760,"line_start":47,"line_end":47,"column_start":55,"column_end":56,"is_primary":true,"text":[{"text":"impl> Taxonomy for E","highlight_start":55,"highlight_end":56}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0277]: the trait bound `Either: Base` is not satisfied\n --> tests/run-pass/taxonomy.rs:67:21\n |\n67 | type_name::< as Taxonomy>::Res>(),\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound\n |\nhelp: the trait `Base` is not implemented for `Either`\n --> tests/run-pass/taxonomy.rs:56:1\n |\n56 | pub enum Either {\n | ^^^^^^^^^^^^^^^^^^^^^\n = help: the following other types implement trait `Base`:\n Alligator\n Cat\n Dog\nnote: required for `Either` to implement `Taxonomy`\n --> tests/run-pass/taxonomy.rs:47:33\n |\n47 | impl> Taxonomy for E\n | ---- ^^^^^^^^^^^^^^^^^ ^\n | |\n | unsatisfied trait bound introduced here\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"the trait bound `Either: Taxonomy` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/taxonomy.rs","byte_start":1176,"byte_end":1226,"line_start":67,"line_end":67,"column_start":21,"column_end":71,"is_primary":true,"text":[{"text":" type_name::< as Taxonomy>::Res>(),","highlight_start":21,"highlight_end":71}],"label":"unsatisfied trait bound","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the trait `Taxonomy` is not implemented for `Either`","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/taxonomy.rs","byte_start":957,"byte_end":978,"line_start":56,"line_end":56,"column_start":1,"column_end":22,"is_primary":true,"text":[{"text":"pub enum Either {","highlight_start":1,"highlight_end":22}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"the following other types implement trait `Taxonomy`:\n `Alligator` implements `Taxonomy`\n `Cat` implements `Taxonomy`\n `Dog` implements `Taxonomy`\n `Mammal` implements `Taxonomy`\n `Reptile` implements `Taxonomy`","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required for `Either` to implement `Taxonomy`","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/taxonomy.rs","byte_start":720,"byte_end":735,"line_start":47,"line_end":47,"column_start":16,"column_end":31,"is_primary":false,"text":[{"text":"impl> Taxonomy for E","highlight_start":16,"highlight_end":31}],"label":"unsatisfied trait bound introduced here","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/taxonomy.rs","byte_start":737,"byte_end":754,"line_start":47,"line_end":47,"column_start":33,"column_end":50,"is_primary":true,"text":[{"text":"impl> Taxonomy for E","highlight_start":33,"highlight_end":50}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/taxonomy.rs","byte_start":759,"byte_end":760,"line_start":47,"line_end":47,"column_start":55,"column_end":56,"is_primary":true,"text":[{"text":"impl> Taxonomy for E","highlight_start":55,"highlight_end":56}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0277]: the trait bound `Either: Taxonomy` is not satisfied\n --> tests/run-pass/taxonomy.rs:67:21\n |\n67 | type_name::< as Taxonomy>::Res>(),\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound\n |\nhelp: the trait `Taxonomy` is not implemented for `Either`\n --> tests/run-pass/taxonomy.rs:56:1\n |\n56 | pub enum Either {\n | ^^^^^^^^^^^^^^^^^^^^^\n = help: the following other types implement trait `Taxonomy`:\n `Alligator` implements `Taxonomy`\n `Cat` implements `Taxonomy`\n `Dog` implements `Taxonomy`\n `Mammal` implements `Taxonomy`\n `Reptile` implements `Taxonomy`\nnote: required for `Either` to implement `Taxonomy`\n --> tests/run-pass/taxonomy.rs:47:33\n |\n47 | impl> Taxonomy for E\n | --------------- ^^^^^^^^^^^^^^^^^ ^\n | |\n | unsatisfied trait bound introduced here\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 5 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 5 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0277, E0464.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0277, E0464.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0277`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0277`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/tuple_struct_target.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/tuple_struct_target.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/tuple_struct_target.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/tuple_struct_target.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/tuple_struct_target.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/tuple_struct_target.rs","byte_start":440,"byte_end":448,"line_start":27,"line_end":27,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout, target = \"1\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/tuple_struct_target.rs:27:3\n |\n27 | #[delegate(Shout, target = \"1\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for struct `WrappedAnimals` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/tuple_struct_target.rs","byte_start":602,"byte_end":607,"line_start":32,"line_end":32,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `WrappedAnimals`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/tuple_struct_target.rs","byte_start":471,"byte_end":496,"line_start":28,"line_end":28,"column_start":1,"column_end":26,"is_primary":false,"text":[{"text":"pub struct WrappedAnimals(Cat, Dog);","highlight_start":1,"highlight_end":26}],"label":"method `shout` not found for this struct","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/tuple_struct_target.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null},{"message":"some of the expressions' fields have a method of the same name","code":null,"level":"help","spans":[{"file_name":"tests/run-pass/tuple_struct_target.rs","byte_start":602,"byte_end":602,"line_start":32,"line_end":32,"column_start":31,"column_end":31,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":31}],"label":null,"suggested_replacement":"0.","suggestion_applicability":"MaybeIncorrect","expansion":null},{"file_name":"tests/run-pass/tuple_struct_target.rs","byte_start":602,"byte_end":602,"line_start":32,"line_end":32,"column_start":31,"column_end":31,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":31}],"label":null,"suggested_replacement":"1.","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for struct `WrappedAnimals` in the current scope\n --> tests/run-pass/tuple_struct_target.rs:32:31\n |\n28 | pub struct WrappedAnimals(Cat, Dog);\n | ------------------------- method `shout` not found for this struct\n...\n32 | println!(\"{}\", foo_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `WrappedAnimals`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/tuple_struct_target.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\nhelp: some of the expressions' fields have a method of the same name\n |\n32 | println!(\"{}\", foo_animal.0.shout(\"BAR\"));\n | ++\n32 | println!(\"{}\", foo_animal.1.shout(\"BAR\"));\n | ++\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 3 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/where_clause_split.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/where_clause_split.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/where_clause_split.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/where_clause_split.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/where_clause_split.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/where_clause_split.rs","byte_start":440,"byte_end":448,"line_start":27,"line_end":27,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout, where = \"A: Shout\", where = \"B: Shout\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/where_clause_split.rs:27:3\n |\n27 | #[delegate(Shout, where = \"A: Shout\", where = \"B: Shout\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Either` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/where_clause_split.rs","byte_start":649,"byte_end":654,"line_start":35,"line_end":35,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `Either`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/where_clause_split.rs","byte_start":497,"byte_end":518,"line_start":28,"line_end":28,"column_start":1,"column_end":22,"is_primary":false,"text":[{"text":"pub enum Either {","highlight_start":1,"highlight_end":22}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/where_clause_split.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Either` in the current scope\n --> tests/run-pass/where_clause_split.rs:35:31\n |\n28 | pub enum Either {\n | --------------------- method `shout` not found for this enum\n...\n35 | println!(\"{}\", foo_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `Either`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/where_clause_split.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Either` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/where_clause_split.rs","byte_start":747,"byte_end":752,"line_start":37,"line_end":37,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", bar_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `Either`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/where_clause_split.rs","byte_start":497,"byte_end":518,"line_start":28,"line_end":28,"column_start":1,"column_end":22,"is_primary":false,"text":[{"text":"pub enum Either {","highlight_start":1,"highlight_end":22}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/where_clause_split.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Either` in the current scope\n --> tests/run-pass/where_clause_split.rs:37:31\n |\n28 | pub enum Either {\n | --------------------- method `shout` not found for this enum\n...\n37 | println!(\"{}\", bar_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `Either`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/where_clause_split.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: compilation failed! [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/run-pass/where_clause.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/where_clause.stage-id" "-L" "../target/debug/deps" "--edition" "2018" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/b83b707f97d809763b7861afa7638871f3339a33/lib" "-L" "/tmp/where_clause.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"$message_type":"diagnostic","message":"multiple candidates for `dylib` dependency `ambassador` found","code":{"code":"E0464","explanation":"The compiler found multiple library files with the requested crate name.\n\n```compile_fail\n// aux-build:crateresolve-1.rs\n// aux-build:crateresolve-2.rs\n// aux-build:crateresolve-3.rs\n\nextern crate crateresolve;\n//~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found\n\nfn main() {}\n```\n\nThis error can occur in several different cases -- for example, when using\n`extern crate` or passing `--extern` options without crate paths. It can also be\ncaused by caching issues with the build directory, in which case `cargo clean`\nmay help.\n\nIn the above example, there are three different library files, all of which\ndefine the same crate name. Without providing a full path, there is no way for\nthe compiler to know which crate it should use.\n"},"level":"error","spans":[{"file_name":"tests/run-pass/where_clause.rs","byte_start":0,"byte_end":24,"line_start":1,"line_end":1,"column_start":1,"column_end":25,"is_primary":true,"text":[{"text":"extern crate ambassador;","highlight_start":1,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"candidate #1: /opt/rustwide/target/debug/libambassador.so","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error[E0464]: multiple candidates for `dylib` dependency `ambassador` found\n --> tests/run-pass/where_clause.rs:1:1\n |\n1 | extern crate ambassador;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = note: candidate #1: /opt/rustwide/target/debug/libambassador.so\n = note: candidate #2: ../target/debug/deps/libambassador-7c3cf10a86731240.so\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"cannot find attribute `delegate` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/run-pass/where_clause.rs","byte_start":440,"byte_end":448,"line_start":27,"line_end":27,"column_start":3,"column_end":11,"is_primary":true,"text":[{"text":"#[delegate(Shout, where = \"A: Shout, B: Shout\")]","highlight_start":3,"highlight_end":11}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `delegate` in this scope\n --> tests/run-pass/where_clause.rs:27:3\n |\n27 | #[delegate(Shout, where = \"A: Shout, B: Shout\")]\n | ^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Either` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/where_clause.rs","byte_start":639,"byte_end":644,"line_start":35,"line_end":35,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", foo_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `Either`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/where_clause.rs","byte_start":487,"byte_end":508,"line_start":28,"line_end":28,"column_start":1,"column_end":22,"is_primary":false,"text":[{"text":"pub enum Either {","highlight_start":1,"highlight_end":22}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/where_clause.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Either` in the current scope\n --> tests/run-pass/where_clause.rs:35:31\n |\n28 | pub enum Either {\n | --------------------- method `shout` not found for this enum\n...\n35 | println!(\"{}\", foo_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `Either`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/where_clause.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"no method named `shout` found for enum `Either` in the current scope","code":{"code":"E0599","explanation":"This error occurs when a method is used on a type which doesn't implement it:\n\nErroneous code example:\n\n```compile_fail,E0599\nstruct Mouth;\n\nlet x = Mouth;\nx.chocolate(); // error: no method named `chocolate` found for type `Mouth`\n // in the current scope\n```\n\nIn this case, you need to implement the `chocolate` method to fix the error:\n\n```\nstruct Mouth;\n\nimpl Mouth {\n fn chocolate(&self) { // We implement the `chocolate` method here.\n println!(\"Hmmm! I love chocolate!\");\n }\n}\n\nlet x = Mouth;\nx.chocolate(); // ok!\n```\n"},"level":"error","spans":[{"file_name":"tests/run-pass/where_clause.rs","byte_start":737,"byte_end":742,"line_start":37,"line_end":37,"column_start":31,"column_end":36,"is_primary":true,"text":[{"text":" println!(\"{}\", bar_animal.shout(\"BAR\"));","highlight_start":31,"highlight_end":36}],"label":"method not found in `Either`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"tests/run-pass/where_clause.rs","byte_start":487,"byte_end":508,"line_start":28,"line_end":28,"column_start":1,"column_end":22,"is_primary":false,"text":[{"text":"pub enum Either {","highlight_start":1,"highlight_end":22}],"label":"method `shout` not found for this enum","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"items from traits can only be used if the trait is implemented and in scope","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`Shout` defines an item `shout`, perhaps you need to implement it","code":null,"level":"note","spans":[{"file_name":"tests/run-pass/where_clause.rs","byte_start":95,"byte_end":110,"line_start":6,"line_end":6,"column_start":1,"column_end":16,"is_primary":true,"text":[{"text":"pub trait Shout {","highlight_start":1,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0599]: no method named `shout` found for enum `Either` in the current scope\n --> tests/run-pass/where_clause.rs:37:31\n |\n28 | pub enum Either {\n | --------------------- method `shout` not found for this enum\n...\n37 | println!(\"{}\", bar_animal.shout(\"BAR\"));\n | ^^^^^ method not found in `Either`\n |\n = help: items from traits can only be used if the trait is implemented and in scope\nnote: `Shout` defines an item `shout`, perhaps you need to implement it\n --> tests/run-pass/where_clause.rs:6:1\n |\n 6 | pub trait Shout {\n | ^^^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"Some errors have detailed explanations: E0464, E0599.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0464, E0599.\n"} [INFO] [stdout] {"$message_type":"diagnostic","message":"For more information about an error, try `rustc --explain E0464`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about an error, try `rustc --explain E0464`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] thread 'run_pass' (27) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:111:22: [INFO] [stdout] Some tests failed [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::libunwind::trace::h589a96ef7638b383 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64277ecb5bd2 - std::backtrace_rs::backtrace::trace_unsynchronized::h23a30a7548c40de4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64277ecb5bd2 - std::sys::backtrace::_print_fmt::h87dabd6535c8c07a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64277ecb5bd2 - ::fmt::hffd20ad4e5eca8ab [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64277ecc73af - core::fmt::rt::Argument::fmt::h75c83e3fd5ce2419 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64277ecc73af - core::fmt::write::h6d9d3a7cfd7b84f5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x64277ec7d143 - std::io::default_write_fmt::he11a713685e2464d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64277ec7d143 - std::io::Write::write_fmt::h9d08f7e050bd2612 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x64277ec8a602 - std::sys::backtrace::BacktraceLock::print::hb28797143397220e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64277ec9039f - std::panicking::default_hook::{{closure}}::h7555113b62983743 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x64277ec90231 - std::panicking::default_hook::h2714b564abe8d914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x64277e82002e - as core::ops::function::Fn>::call::h0e9de8cceb22406e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x64277e82002e - test::test_main_with_exit_callback::{{closure}}::h8125bd66cf4739d0 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64277ec90aee - as core::ops::function::Fn>::call::h1fd0a0802eaec16b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x64277ec90aee - std::panicking::panic_with_hook::h190dc82263685ec5 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x64277ec900ac - std::panicking::begin_panic::{{closure}}::h371cca45440e6abf [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:771:9 [INFO] [stdout] 16: 0x64277ec8a749 - std::sys::backtrace::__rust_end_short_backtrace::h9b3a6b121b8c060d [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x64277ec9007e - std::panicking::begin_panic::h3af9d90983463902 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:770:5 [INFO] [stdout] 18: 0x64277e84a204 - compiletest_rs::run_tests::hd587e4ec38833717 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/compiletest_rs-0.8.0/src/lib.rs:111:22 [INFO] [stdout] 19: 0x64277e7fec2a - compiletest::run_mode::hd4365168a6ab0f9f [INFO] [stdout] at /opt/rustwide/workdir/tests/compiletest.rs:15:5 [INFO] [stdout] 20: 0x64277e7fec72 - compiletest::run_pass::h5b3fff0a8f59509a [INFO] [stdout] at /opt/rustwide/workdir/tests/compiletest.rs:20:5 [INFO] [stdout] 21: 0x64277e7fec97 - compiletest::run_pass::{{closure}}::hb3682cb1246c0090 [INFO] [stdout] at /opt/rustwide/workdir/tests/compiletest.rs:19:14 [INFO] [stdout] 22: 0x64277e7fedf6 - core::ops::function::FnOnce::call_once::hcbda02ab59fd729b [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 23: 0x64277e81fdeb - core::ops::function::FnOnce::call_once::hdbf42be2a49fb464 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x64277e81fdeb - test::__rust_begin_short_backtrace::h8ae08814d38cb356 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:663:18 [INFO] [stdout] 25: 0x64277e8358d5 - test::run_test_in_process::{{closure}}::h54574ee4f414d690 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:686:74 [INFO] [stdout] 26: 0x64277e8358d5 - as core::ops::function::FnOnce<()>>::call_once::h01a0b7e7aad1a501 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 27: 0x64277e8358d5 - std::panicking::catch_unwind::do_call::h23820e817c5612cd [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 28: 0x64277e8358d5 - std::panicking::catch_unwind::h89c73a1febce5587 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 29: 0x64277e8358d5 - std::panic::catch_unwind::h6f55caf410861914 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 30: 0x64277e8358d5 - test::run_test_in_process::h4db851878e5d3983 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:686:27 [INFO] [stdout] 31: 0x64277e8358d5 - test::run_test::{{closure}}::h57e8c5acaceacd24 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:607:43 [INFO] [stdout] 32: 0x64277e80c2c4 - test::run_test::{{closure}}::he775ccc3a9d3b97e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/test/src/lib.rs:637:41 [INFO] [stdout] 33: 0x64277e80c2c4 - std::sys::backtrace::__rust_begin_short_backtrace::hcd94d85d7765225a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 34: 0x64277e80fb0a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::ha814de8393f07830 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 35: 0x64277e80fb0a - as core::ops::function::FnOnce<()>>::call_once::h8deb00af0abdeaf1 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 36: 0x64277e80fb0a - std::panicking::catch_unwind::do_call::h1917979b0c279ea2 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:590:40 [INFO] [stdout] 37: 0x64277e80fb0a - std::panicking::catch_unwind::h791ad91fee6ce34e [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panicking.rs:553:19 [INFO] [stdout] 38: 0x64277e80fb0a - std::panic::catch_unwind::h982b8f40ed9c3cce [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/panic.rs:359:14 [INFO] [stdout] 39: 0x64277e80fb0a - std::thread::Builder::spawn_unchecked_::{{closure}}::h545e54700c945db4 [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 40: 0x64277e80fb0a - core::ops::function::FnOnce::call_once{{vtable.shim}}::hb427481a5227d78a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 41: 0x64277ec840bf - as core::ops::function::FnOnce>::call_once::h1d452951a81e9d0a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 42: 0x64277ec840bf - std::sys::pal::unix::thread::Thread::new::thread_start::h29c84e109630689a [INFO] [stdout] at /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 43: 0x77ee87f82aa4 - [INFO] [stdout] 44: 0x77ee8800fa34 - clone [INFO] [stdout] 45: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] compile_fail [INFO] [stdout] run_pass [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.13s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "2d0b53b9abfbf8c3da62a24d27f1755d2e6675e10a898879344eeb4d8bdf8f02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d0b53b9abfbf8c3da62a24d27f1755d2e6675e10a898879344eeb4d8bdf8f02", kill_on_drop: false }` [INFO] [stdout] 2d0b53b9abfbf8c3da62a24d27f1755d2e6675e10a898879344eeb4d8bdf8f02