[INFO] fetching crate try-ref 0.1.0...
[INFO] testing try-ref-0.1.0 against master#1ef7943ee607160a564655b6596f83670ef95df5 for pr-146098-6
[INFO] extracting crate try-ref 0.1.0 into /workspace/builds/worker-1-tc1/source
[INFO] started tweaking crates.io crate try-ref 0.1.0
[INFO] finished tweaking crates.io crate try-ref 0.1.0
[INFO] tweaked toml for crates.io crate try-ref 0.1.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate try-ref 0.1.0 on toolchain 1ef7943ee607160a564655b6596f83670ef95df5
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "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" "+1ef7943ee607160a564655b6596f83670ef95df5" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 7 packages to latest compatible versions
[INFO] [stderr]       Adding thiserror v1.0.69 (available: v2.0.17)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 717c103f92e6eb28eacb094807ddf729e0e4e878ccf1e3a0d90be8291e41c466
[INFO] running `Command { std: "docker" "start" "-a" "717c103f92e6eb28eacb094807ddf729e0e4e878ccf1e3a0d90be8291e41c466", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "717c103f92e6eb28eacb094807ddf729e0e4e878ccf1e3a0d90be8291e41c466", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "717c103f92e6eb28eacb094807ddf729e0e4e878ccf1e3a0d90be8291e41c466", kill_on_drop: false }`
[INFO] [stdout] 717c103f92e6eb28eacb094807ddf729e0e4e878ccf1e3a0d90be8291e41c466
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d911f9eb08ef6ded315cfc66a7685fb436d2e7d0dcf5c752854eb1ce3116910a
[INFO] running `Command { std: "docker" "start" "-a" "d911f9eb08ef6ded315cfc66a7685fb436d2e7d0dcf5c752854eb1ce3116910a", kill_on_drop: false }`
[INFO] [stderr]    Compiling try-ref v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.21s
[INFO] running `Command { std: "docker" "inspect" "d911f9eb08ef6ded315cfc66a7685fb436d2e7d0dcf5c752854eb1ce3116910a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d911f9eb08ef6ded315cfc66a7685fb436d2e7d0dcf5c752854eb1ce3116910a", kill_on_drop: false }`
[INFO] [stdout] d911f9eb08ef6ded315cfc66a7685fb436d2e7d0dcf5c752854eb1ce3116910a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 678b42cd9cb059d9060fd19a3e7c982d5de0213fd1339ab31ddb07e2e1b976a0
[INFO] running `Command { std: "docker" "start" "-a" "678b42cd9cb059d9060fd19a3e7c982d5de0213fd1339ab31ddb07e2e1b976a0", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v2.0.109
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling try-ref v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 4.77s
[INFO] running `Command { std: "docker" "inspect" "678b42cd9cb059d9060fd19a3e7c982d5de0213fd1339ab31ddb07e2e1b976a0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "678b42cd9cb059d9060fd19a3e7c982d5de0213fd1339ab31ddb07e2e1b976a0", kill_on_drop: false }`
[INFO] [stdout] 678b42cd9cb059d9060fd19a3e7c982d5de0213fd1339ab31ddb07e2e1b976a0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] a75810248a8504d75094269ee3b4854b7e35ac07d009ed84df429bda89d95050
[INFO] running `Command { std: "docker" "start" "-a" "a75810248a8504d75094269ee3b4854b7e35ac07d009ed84df429bda89d95050", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/try_ref-5fdeab3c567ababc)
[INFO] [stdout] 
[INFO] [stdout] running 2 tests
[INFO] [stdout] test tests::test_try_as_ref ... ok
[INFO] [stdout] test tests::test_try_as_mut ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests try_ref
[INFO] [stdout] 
[INFO] [stdout] running 2 tests
[INFO] [stdout] test src/lib.rs - TryAsRef (line 3) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - TryAsMut (line 27) - compile ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - TryAsRef (line 3) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `TestError` in this scope
[INFO] [stdout]  --> src/lib.rs:5:21
[INFO] [stdout]   |
[INFO] [stdout] 4 | let a: Result<&str, TestError> = a.try_as_ref();
[INFO] [stdout]   |                     ^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_3_0<TestError>() {
[INFO] [stdout]   |                                                                     +++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `TestStruct` in this scope
[INFO] [stdout]  --> src/lib.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | let a: TestStruct = TestStruct(TestEnum::BType(BType()));
[INFO] [stdout]   |        ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `TestError` in this scope
[INFO] [stdout]  --> src/lib.rs:9:21
[INFO] [stdout]   |
[INFO] [stdout] 8 | let a: Result<&str, TestError> = a.try_as_ref();
[INFO] [stdout]   |                     ^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_3_0<TestError>() {
[INFO] [stdout]   |                                                                     +++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `BType` in this scope
[INFO] [stdout]   --> src/lib.rs:13:16
[INFO] [stdout]    |
[INFO] [stdout] 12 | let b: Result<&BType, TestError> = b.try_as_ref();
[INFO] [stdout]    |                ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout]  2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_3_0<BType>() {
[INFO] [stdout]    |                                                                     +++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `TestError` in this scope
[INFO] [stdout]   --> src/lib.rs:13:23
[INFO] [stdout]    |
[INFO] [stdout] 12 | let b: Result<&BType, TestError> = b.try_as_ref();
[INFO] [stdout]    |                       ^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout]  2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_3_0<TestError>() {
[INFO] [stdout]    |                                                                     +++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `BType` in this scope
[INFO] [stdout]   --> src/lib.rs:17:16
[INFO] [stdout]    |
[INFO] [stdout] 16 | let b: Result<&BType, TestError> = b.try_as_ref();
[INFO] [stdout]    |                ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout]  2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_3_0<BType>() {
[INFO] [stdout]    |                                                                     +++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `TestError` in this scope
[INFO] [stdout]   --> src/lib.rs:17:23
[INFO] [stdout]    |
[INFO] [stdout] 16 | let b: Result<&BType, TestError> = b.try_as_ref();
[INFO] [stdout]    |                       ^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout]  2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_3_0<TestError>() {
[INFO] [stdout]    |                                                                     +++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestEnum`
[INFO] [stdout]  --> src/lib.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 3 | let a = TestStruct(TestEnum::AType(String::from("a_type")));
[INFO] [stdout]   |                    ^^^^^^^^ use of undeclared type `TestEnum`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TestStruct` in this scope
[INFO] [stdout]  --> src/lib.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | let a = TestStruct(TestEnum::AType(String::from("a_type")));
[INFO] [stdout]   |         ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestEnum`
[INFO] [stdout]  --> src/lib.rs:8:32
[INFO] [stdout]   |
[INFO] [stdout] 7 | let a: TestStruct = TestStruct(TestEnum::BType(BType()));
[INFO] [stdout]   |                                ^^^^^^^^ use of undeclared type `TestEnum`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BType` in this scope
[INFO] [stdout]  --> src/lib.rs:8:48
[INFO] [stdout]   |
[INFO] [stdout] 7 | let a: TestStruct = TestStruct(TestEnum::BType(BType()));
[INFO] [stdout]   |                                                ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TestStruct` in this scope
[INFO] [stdout]  --> src/lib.rs:8:21
[INFO] [stdout]   |
[INFO] [stdout] 7 | let a: TestStruct = TestStruct(TestEnum::BType(BType()));
[INFO] [stdout]   |                     ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestEnum`
[INFO] [stdout]   --> src/lib.rs:12:20
[INFO] [stdout]    |
[INFO] [stdout] 11 | let b = TestStruct(TestEnum::BType(BType()));
[INFO] [stdout]    |                    ^^^^^^^^ use of undeclared type `TestEnum`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BType` in this scope
[INFO] [stdout]   --> src/lib.rs:12:36
[INFO] [stdout]    |
[INFO] [stdout] 11 | let b = TestStruct(TestEnum::BType(BType()));
[INFO] [stdout]    |                                    ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TestStruct` in this scope
[INFO] [stdout]   --> src/lib.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 11 | let b = TestStruct(TestEnum::BType(BType()));
[INFO] [stdout]    |         ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestEnum`
[INFO] [stdout]   --> src/lib.rs:16:20
[INFO] [stdout]    |
[INFO] [stdout] 15 | let b = TestStruct(TestEnum::AType(String::from("a_type")));
[INFO] [stdout]    |                    ^^^^^^^^ use of undeclared type `TestEnum`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TestStruct` in this scope
[INFO] [stdout]   --> src/lib.rs:16:9
[INFO] [stdout]    |
[INFO] [stdout] 15 | let b = TestStruct(TestEnum::AType(String::from("a_type")));
[INFO] [stdout]    |         ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 17 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - TryAsMut (line 27) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `TestError` in this scope
[INFO] [stdout]  --> src/lib.rs:29:25
[INFO] [stdout]   |
[INFO] [stdout] 4 | let a: Result<&mut str, TestError> = a.try_as_mut();
[INFO] [stdout]   |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_27_0<TestError>() {
[INFO] [stdout]   |                                                                      +++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `TestStruct` in this scope
[INFO] [stdout]  --> src/lib.rs:32:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | let mut a: TestStruct = TestStruct(TestEnum::BType(BType()));
[INFO] [stdout]   |            ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `TestError` in this scope
[INFO] [stdout]  --> src/lib.rs:33:25
[INFO] [stdout]   |
[INFO] [stdout] 8 | let a: Result<&mut str, TestError> = a.try_as_mut();
[INFO] [stdout]   |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_27_0<TestError>() {
[INFO] [stdout]   |                                                                      +++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `BType` in this scope
[INFO] [stdout]   --> src/lib.rs:37:20
[INFO] [stdout]    |
[INFO] [stdout] 12 | let b: Result<&mut BType, TestError> = b.try_as_mut();
[INFO] [stdout]    |                    ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout]  2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_27_0<BType>() {
[INFO] [stdout]    |                                                                      +++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `TestError` in this scope
[INFO] [stdout]   --> src/lib.rs:37:27
[INFO] [stdout]    |
[INFO] [stdout] 12 | let b: Result<&mut BType, TestError> = b.try_as_mut();
[INFO] [stdout]    |                           ^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout]  2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_27_0<TestError>() {
[INFO] [stdout]    |                                                                      +++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `BType` in this scope
[INFO] [stdout]   --> src/lib.rs:41:20
[INFO] [stdout]    |
[INFO] [stdout] 16 | let b: Result<&mut BType, TestError> = b.try_as_mut();
[INFO] [stdout]    |                    ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout]  2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_27_0<BType>() {
[INFO] [stdout]    |                                                                      +++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `TestError` in this scope
[INFO] [stdout]   --> src/lib.rs:41:27
[INFO] [stdout]    |
[INFO] [stdout] 16 | let b: Result<&mut BType, TestError> = b.try_as_mut();
[INFO] [stdout]    |                           ^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout]  2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_27_0<TestError>() {
[INFO] [stdout]    |                                                                      +++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestEnum`
[INFO] [stdout]  --> src/lib.rs:28:24
[INFO] [stdout]   |
[INFO] [stdout] 3 | let mut a = TestStruct(TestEnum::AType(String::from("a_type")));
[INFO] [stdout]   |                        ^^^^^^^^ use of undeclared type `TestEnum`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TestStruct` in this scope
[INFO] [stdout]  --> src/lib.rs:28:13
[INFO] [stdout]   |
[INFO] [stdout] 3 | let mut a = TestStruct(TestEnum::AType(String::from("a_type")));
[INFO] [stdout]   |             ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestEnum`
[INFO] [stdout]  --> src/lib.rs:32:36
[INFO] [stdout]   |
[INFO] [stdout] 7 | let mut a: TestStruct = TestStruct(TestEnum::BType(BType()));
[INFO] [stdout]   |                                    ^^^^^^^^ use of undeclared type `TestEnum`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BType` in this scope
[INFO] [stdout]  --> src/lib.rs:32:52
[INFO] [stdout]   |
[INFO] [stdout] 7 | let mut a: TestStruct = TestStruct(TestEnum::BType(BType()));
[INFO] [stdout]   |                                                    ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TestStruct` in this scope
[INFO] [stdout]  --> src/lib.rs:32:25
[INFO] [stdout]   |
[INFO] [stdout] 7 | let mut a: TestStruct = TestStruct(TestEnum::BType(BType()));
[INFO] [stdout]   |                         ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestEnum`
[INFO] [stdout]   --> src/lib.rs:36:24
[INFO] [stdout]    |
[INFO] [stdout] 11 | let mut b = TestStruct(TestEnum::BType(BType()));
[INFO] [stdout]    |                        ^^^^^^^^ use of undeclared type `TestEnum`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BType` in this scope
[INFO] [stdout]   --> src/lib.rs:36:40
[INFO] [stdout]    |
[INFO] [stdout] 11 | let mut b = TestStruct(TestEnum::BType(BType()));
[INFO] [stdout]    |                                        ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TestStruct` in this scope
[INFO] [stdout]   --> src/lib.rs:36:13
[INFO] [stdout]    |
[INFO] [stdout] 11 | let mut b = TestStruct(TestEnum::BType(BType()));
[INFO] [stdout]    |             ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestEnum`
[INFO] [stdout]   --> src/lib.rs:40:24
[INFO] [stdout]    |
[INFO] [stdout] 15 | let mut b = TestStruct(TestEnum::AType(String::from("a_type")));
[INFO] [stdout]    |                        ^^^^^^^^ use of undeclared type `TestEnum`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TestStruct` in this scope
[INFO] [stdout]   --> src/lib.rs:40:13
[INFO] [stdout]    |
[INFO] [stdout] 15 | let mut b = TestStruct(TestEnum::AType(String::from("a_type")));
[INFO] [stdout]    |             ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 17 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - TryAsMut (line 27)
[INFO] [stdout]     src/lib.rs - TryAsRef (line 3)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.19s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "a75810248a8504d75094269ee3b4854b7e35ac07d009ed84df429bda89d95050", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a75810248a8504d75094269ee3b4854b7e35ac07d009ed84df429bda89d95050", kill_on_drop: false }`
[INFO] [stdout] a75810248a8504d75094269ee3b4854b7e35ac07d009ed84df429bda89d95050
