[INFO] fetching crate ndk-context 0.1.1...
[INFO] testing ndk-context-0.1.1 against beta-2022-07-10 for beta-1.63-1
[INFO] extracting crate ndk-context 0.1.1 into /workspace/builds/worker-6/source
[INFO] validating manifest of crates.io crate ndk-context 0.1.1 on toolchain beta-2022-07-10
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate ndk-context 0.1.1
[INFO] finished tweaking crates.io crate ndk-context 0.1.1
[INFO] tweaked toml for crates.io crate ndk-context 0.1.1 written to /workspace/builds/worker-6/source/Cargo.toml
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 43c8ade4a3b8eebac68541fc6784c894cde5ef8e933d8ee88780eea024c4c978
[INFO] running `Command { std: "docker" "start" "-a" "43c8ade4a3b8eebac68541fc6784c894cde5ef8e933d8ee88780eea024c4c978", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "43c8ade4a3b8eebac68541fc6784c894cde5ef8e933d8ee88780eea024c4c978", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "43c8ade4a3b8eebac68541fc6784c894cde5ef8e933d8ee88780eea024c4c978", kill_on_drop: false }`
[INFO] [stdout] 43c8ade4a3b8eebac68541fc6784c894cde5ef8e933d8ee88780eea024c4c978
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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=warn" "-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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] cd2323d37ca04cff72fa679d06259f746f6396f0f8edcc508cddacb1cb64d3fc
[INFO] running `Command { std: "docker" "start" "-a" "cd2323d37ca04cff72fa679d06259f746f6396f0f8edcc508cddacb1cb64d3fc", kill_on_drop: false }`
[INFO] [stderr]    Compiling ndk-context v0.1.1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 0.47s
[INFO] running `Command { std: "docker" "inspect" "cd2323d37ca04cff72fa679d06259f746f6396f0f8edcc508cddacb1cb64d3fc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cd2323d37ca04cff72fa679d06259f746f6396f0f8edcc508cddacb1cb64d3fc", kill_on_drop: false }`
[INFO] [stdout] cd2323d37ca04cff72fa679d06259f746f6396f0f8edcc508cddacb1cb64d3fc
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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=warn" "-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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 548983e92feef6e9279ad7e8eedc214b5014113258c8e66d81e6e760284b6af8
[INFO] running `Command { std: "docker" "start" "-a" "548983e92feef6e9279ad7e8eedc214b5014113258c8e66d81e6e760284b6af8", kill_on_drop: false }`
[INFO] [stderr]    Compiling ndk-context v0.1.1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.55s
[INFO] running `Command { std: "docker" "inspect" "548983e92feef6e9279ad7e8eedc214b5014113258c8e66d81e6e760284b6af8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "548983e92feef6e9279ad7e8eedc214b5014113258c8e66d81e6e760284b6af8", kill_on_drop: false }`
[INFO] [stdout] 548983e92feef6e9279ad7e8eedc214b5014113258c8e66d81e6e760284b6af8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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=warn" "-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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 6a95632016ca4792b59f16a8afc31f71876ac655eeac74ec0a7bff30a0587c3c
[INFO] running `Command { std: "docker" "start" "-a" "6a95632016ca4792b59f16a8afc31f71876ac655eeac74ec0a7bff30a0587c3c", kill_on_drop: false }`
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.02s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ndk_context-3bacd611869cbca6)
[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]    Doc-tests ndk-context
[INFO] [stdout] 
[INFO] [stdout] running 3 tests
[INFO] [stdout] test src/lib.rs - AndroidContext::vm (line 37) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - (line 6) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - AndroidContext::context (line 50) - compile ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - AndroidContext::vm (line 37) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `jni`
[INFO] [stdout]  --> src/lib.rs:39:19
[INFO] [stdout]   |
[INFO] [stdout] 5 | let vm = unsafe { jni::JavaVM::from_raw(ctx.vm().cast()) }?;
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `jni`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]  --> src/lib.rs:39:59
[INFO] [stdout]   |
[INFO] [stdout] 3 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_37_0() {
[INFO] [stdout]   |  ______________________________________-
[INFO] [stdout] 4 | | let ctx = ndk_context::android_context();
[INFO] [stdout] 5 | | let vm = unsafe { jni::JavaVM::from_raw(ctx.vm().cast()) }?;
[INFO] [stdout]   | |                                                           ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] 6 | | let env = vm.attach_current_thread();
[INFO] [stdout] 7 | | } _doctest_main_src_lib_rs_37_0() }
[INFO] [stdout]   | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 6) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `jni`
[INFO] [stdout]  --> src/lib.rs:8:19
[INFO] [stdout]   |
[INFO] [stdout] 5 | let vm = unsafe { jni::JavaVM::from_raw(ctx.vm().cast()) }?;
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `jni`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `jni`
[INFO] [stdout]   --> src/lib.rs:14:26
[INFO] [stdout]    |
[INFO] [stdout] 11 |         ctx.context() as jni::sys::jobject,
[INFO] [stdout]    |                          ^^^ use of undeclared crate or module `jni`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:8:59
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_6_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 4  | | let ctx = ndk_context::android_context();
[INFO] [stdout] 5  | | let vm = unsafe { jni::JavaVM::from_raw(ctx.vm().cast()) }?;
[INFO] [stdout]    | |                                                           ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] 6  | | let env = vm.attach_current_thread();
[INFO] [stdout] ...  |
[INFO] [stdout] 16 | |     .l()?;
[INFO] [stdout] 17 | | } _doctest_main_src_lib_rs_6_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:10:58
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_6_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 4  | | let ctx = ndk_context::android_context();
[INFO] [stdout] 5  | | let vm = unsafe { jni::JavaVM::from_raw(ctx.vm().cast()) }?;
[INFO] [stdout] 6  | | let env = vm.attach_current_thread();
[INFO] [stdout] 7  | | let class_ctx = env.find_class("android/content/Context")?;
[INFO] [stdout]    | |                                                          ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] ...  |
[INFO] [stdout] 16 | |     .l()?;
[INFO] [stdout] 17 | | } _doctest_main_src_lib_rs_6_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:11:91
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_6_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 4  | | let ctx = ndk_context::android_context();
[INFO] [stdout] 5  | | let vm = unsafe { jni::JavaVM::from_raw(ctx.vm().cast()) }?;
[INFO] [stdout] 6  | | let env = vm.attach_current_thread();
[INFO] [stdout] 7  | | let class_ctx = env.find_class("android/content/Context")?;
[INFO] [stdout] 8  | | let audio_service = env.get_static_field(class_ctx, "AUDIO_SERVICE", "Ljava/lang/String;")?;
[INFO] [stdout]    | |                                                                                           ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] ...  |
[INFO] [stdout] 16 | |     .l()?;
[INFO] [stdout] 17 | | } _doctest_main_src_lib_rs_6_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:18:6
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_6_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 4  | | let ctx = ndk_context::android_context();
[INFO] [stdout] 5  | | let vm = unsafe { jni::JavaVM::from_raw(ctx.vm().cast()) }?;
[INFO] [stdout] 6  | | let env = vm.attach_current_thread();
[INFO] [stdout] ...  |
[INFO] [stdout] 15 | |     )?
[INFO] [stdout]    | |      ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] 16 | |     .l()?;
[INFO] [stdout] 17 | | } _doctest_main_src_lib_rs_6_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_6_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 4  | | let ctx = ndk_context::android_context();
[INFO] [stdout] 5  | | let vm = unsafe { jni::JavaVM::from_raw(ctx.vm().cast()) }?;
[INFO] [stdout] 6  | | let env = vm.attach_current_thread();
[INFO] [stdout] ...  |
[INFO] [stdout] 16 | |     .l()?;
[INFO] [stdout]    | |         ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] 17 | | } _doctest_main_src_lib_rs_6_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - AndroidContext::context (line 50) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `jni`
[INFO] [stdout]  --> src/lib.rs:52:19
[INFO] [stdout]   |
[INFO] [stdout] 5 | let vm = unsafe { jni::JavaVM::from_raw(ctx.vm().cast()) }?;
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `jni`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `jni`
[INFO] [stdout]   --> src/lib.rs:58:26
[INFO] [stdout]    |
[INFO] [stdout] 11 |         ctx.context() as jni::sys::jobject,
[INFO] [stdout]    |                          ^^^ use of undeclared crate or module `jni`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:52:59
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_50_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 4  | | let ctx = ndk_context::android_context();
[INFO] [stdout] 5  | | let vm = unsafe { jni::JavaVM::from_raw(ctx.vm().cast()) }?;
[INFO] [stdout]    | |                                                           ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] 6  | | let env = vm.attach_current_thread();
[INFO] [stdout] ...  |
[INFO] [stdout] 16 | |     .l()?;
[INFO] [stdout] 17 | | } _doctest_main_src_lib_rs_50_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:54:58
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_50_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 4  | | let ctx = ndk_context::android_context();
[INFO] [stdout] 5  | | let vm = unsafe { jni::JavaVM::from_raw(ctx.vm().cast()) }?;
[INFO] [stdout] 6  | | let env = vm.attach_current_thread();
[INFO] [stdout] 7  | | let class_ctx = env.find_class("android/content/Context")?;
[INFO] [stdout]    | |                                                          ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] ...  |
[INFO] [stdout] 16 | |     .l()?;
[INFO] [stdout] 17 | | } _doctest_main_src_lib_rs_50_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:55:91
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_50_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 4  | | let ctx = ndk_context::android_context();
[INFO] [stdout] 5  | | let vm = unsafe { jni::JavaVM::from_raw(ctx.vm().cast()) }?;
[INFO] [stdout] 6  | | let env = vm.attach_current_thread();
[INFO] [stdout] 7  | | let class_ctx = env.find_class("android/content/Context")?;
[INFO] [stdout] 8  | | let audio_service = env.get_static_field(class_ctx, "AUDIO_SERVICE", "Ljava/lang/String;")?;
[INFO] [stdout]    | |                                                                                           ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] ...  |
[INFO] [stdout] 16 | |     .l()?;
[INFO] [stdout] 17 | | } _doctest_main_src_lib_rs_50_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:62:6
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_50_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 4  | | let ctx = ndk_context::android_context();
[INFO] [stdout] 5  | | let vm = unsafe { jni::JavaVM::from_raw(ctx.vm().cast()) }?;
[INFO] [stdout] 6  | | let env = vm.attach_current_thread();
[INFO] [stdout] ...  |
[INFO] [stdout] 15 | |     )?
[INFO] [stdout]    | |      ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] 16 | |     .l()?;
[INFO] [stdout] 17 | | } _doctest_main_src_lib_rs_50_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:63:9
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_50_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 4  | | let ctx = ndk_context::android_context();
[INFO] [stdout] 5  | | let vm = unsafe { jni::JavaVM::from_raw(ctx.vm().cast()) }?;
[INFO] [stdout] 6  | | let env = vm.attach_current_thread();
[INFO] [stdout] ...  |
[INFO] [stdout] 16 | |     .l()?;
[INFO] [stdout]    | |         ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] 17 | | } _doctest_main_src_lib_rs_50_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - (line 6)
[INFO] [stdout]     src/lib.rs - AndroidContext::context (line 50)
[INFO] [stdout]     src/lib.rs - AndroidContext::vm (line 37)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.25s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass '--doc'
[INFO] running `Command { std: "docker" "inspect" "6a95632016ca4792b59f16a8afc31f71876ac655eeac74ec0a7bff30a0587c3c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6a95632016ca4792b59f16a8afc31f71876ac655eeac74ec0a7bff30a0587c3c", kill_on_drop: false }`
[INFO] [stdout] 6a95632016ca4792b59f16a8afc31f71876ac655eeac74ec0a7bff30a0587c3c
