[INFO] cloning repository https://github.com/63b8e7lmk1jv9c0ovus4hqkcasqgp0ed/JsArc
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/63b8e7lmk1jv9c0ovus4hqkcasqgp0ed/JsArc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F63b8e7lmk1jv9c0ovus4hqkcasqgp0ed%2FJsArc", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F63b8e7lmk1jv9c0ovus4hqkcasqgp0ed%2FJsArc'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] fd55614ace00f916b34176e235a618001ec0fe89
[INFO] testing 63b8e7lmk1jv9c0ovus4hqkcasqgp0ed/JsArc against master#1871252fc8bb672d40787e67404e6eaae7059369 for pr-125151
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F63b8e7lmk1jv9c0ovus4hqkcasqgp0ed%2FJsArc" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/63b8e7lmk1jv9c0ovus4hqkcasqgp0ed/JsArc on toolchain 1871252fc8bb672d40787e67404e6eaae7059369
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/63b8e7lmk1jv9c0ovus4hqkcasqgp0ed/JsArc
[INFO] finished tweaking git repo https://github.com/63b8e7lmk1jv9c0ovus4hqkcasqgp0ed/JsArc
[INFO] tweaked toml for git repo https://github.com/63b8e7lmk1jv9c0ovus4hqkcasqgp0ed/JsArc written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/63b8e7lmk1jv9c0ovus4hqkcasqgp0ed/JsArc already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] fbcdf7272a3320594394a0c7a664eb8796d68481d6ff1e3448f3ee3b9f9431f8
[INFO] running `Command { std: "docker" "start" "-a" "fbcdf7272a3320594394a0c7a664eb8796d68481d6ff1e3448f3ee3b9f9431f8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "fbcdf7272a3320594394a0c7a664eb8796d68481d6ff1e3448f3ee3b9f9431f8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fbcdf7272a3320594394a0c7a664eb8796d68481d6ff1e3448f3ee3b9f9431f8", kill_on_drop: false }`
[INFO] [stdout] fbcdf7272a3320594394a0c7a664eb8796d68481d6ff1e3448f3ee3b9f9431f8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 1964cb9a631f911012676a77b6d588a5ccd09035c825e96a45adbf98842608b8
[INFO] running `Command { std: "docker" "start" "-a" "1964cb9a631f911012676a77b6d588a5ccd09035c825e96a45adbf98842608b8", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.82
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.92
[INFO] [stderr]    Compiling bumpalo v3.16.0
[INFO] [stderr]    Compiling crossbeam-utils v0.8.19
[INFO] [stderr]    Compiling log v0.4.21
[INFO] [stderr]    Compiling once_cell v1.19.0
[INFO] [stderr]    Compiling wasm-bindgen v0.2.92
[INFO] [stderr]    Compiling pin-project-lite v0.2.14
[INFO] [stderr]    Compiling parking v2.2.0
[INFO] [stderr]    Compiling futures-core v0.3.30
[INFO] [stderr]    Compiling concurrent-queue v2.5.0
[INFO] [stderr]    Compiling event-listener v5.3.0
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]    Compiling event-listener-strategy v0.5.2
[INFO] [stderr]    Compiling async-channel v2.2.1
[INFO] [stderr]    Compiling syn v2.0.63
[INFO] [stderr]    Compiling wasm-bindgen-backend v0.2.92
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.92
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.92
[INFO] [stderr]    Compiling js-sys v0.3.69
[INFO] [stderr]    Compiling wasm-bindgen-futures v0.4.42
[INFO] [stderr]    Compiling js_arc v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.12s
[INFO] running `Command { std: "docker" "inspect" "1964cb9a631f911012676a77b6d588a5ccd09035c825e96a45adbf98842608b8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1964cb9a631f911012676a77b6d588a5ccd09035c825e96a45adbf98842608b8", kill_on_drop: false }`
[INFO] [stdout] 1964cb9a631f911012676a77b6d588a5ccd09035c825e96a45adbf98842608b8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] fa5382be74e25a5ead27700e5d8c96bc26d044e31c5bfef7c7749107ae0fe465
[INFO] running `Command { std: "docker" "start" "-a" "fa5382be74e25a5ead27700e5d8c96bc26d044e31c5bfef7c7749107ae0fe465", kill_on_drop: false }`
[INFO] [stderr]    Compiling js_arc v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.84s
[INFO] running `Command { std: "docker" "inspect" "fa5382be74e25a5ead27700e5d8c96bc26d044e31c5bfef7c7749107ae0fe465", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fa5382be74e25a5ead27700e5d8c96bc26d044e31c5bfef7c7749107ae0fe465", kill_on_drop: false }`
[INFO] [stdout] fa5382be74e25a5ead27700e5d8c96bc26d044e31c5bfef7c7749107ae0fe465
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 8bd4609d5e17f47b1e815c09a1ec0a50f4d236031378361e2589df55b4388697
[INFO] running `Command { std: "docker" "start" "-a" "8bd4609d5e17f47b1e815c09a1ec0a50f4d236031378361e2589df55b4388697", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/js_arc-f4f2cd6bcc81034a)
[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 js_arc
[INFO] [stdout] 
[INFO] [stdout] running 18 tests
[INFO] [stdout] test src/lib.rs - (line 17) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 7) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 54) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 116) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 69) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 31) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 110) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 88) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::arc (line 735) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::new (line 643) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::with_self (line 743) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::with_many (line 908) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::with_other_async (line 861) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::with_other (line 814) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::with_self (line 755) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::new_async (line 668) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::with_many_async (line 960) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::with_self_async (line 782) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 17) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:23:5
[INFO] [stdout]   |
[INFO] [stdout] 8 |     web_sys::console::log_1(&js_v);
[INFO] [stdout]   |     ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:18:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | let js_v = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |            ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:18:36
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_17_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] 3 | let js_v = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |                                    ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:19:39
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_17_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] 3 | let js_v = JsArc::new(|| 2.into()).await;
[INFO] [stdout] 4 | js_v.with_self(|one| one + &5.into()).await;
[INFO] [stdout]   |                                       ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:26:2
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_17_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 | .await;
[INFO] [stdout]    |  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 7) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:11:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     web_sys::console::log_1(&js_value);
[INFO] [stdout]   |     ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | let js_v = JsArc::new(|| "Hello World!".into()).await;
[INFO] [stdout]   |            ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:8:49
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() {
[INFO] [stdout]   |                                      --------------------------------- this is not `async`
[INFO] [stdout] 3 | let js_v = JsArc::new(|| "Hello World!".into()).await;
[INFO] [stdout]   |                                                 ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:14:2
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() {
[INFO] [stdout]   |                                      --------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 9 | .await;
[INFO] [stdout]   |  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 54) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:58:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     web_sys::console::log_1(&"Waiting 5 second then printing value".into());
[INFO] [stdout]   |     ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std`
[INFO] [stdout]  --> src/lib.rs:59:5
[INFO] [stdout]   |
[INFO] [stdout] 7 |     async_std::task::sleep(Duration::from_secs(5)).await;
[INFO] [stdout]   |     ^^^^^^^^^ use of undeclared crate or module `async_std`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:60:5
[INFO] [stdout]   |
[INFO] [stdout] 8 |     web_sys::console::log_1(&hello);
[INFO] [stdout]   |     ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:55:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | let js_v = JsArc::new(|| "Hello World!".into()).await;
[INFO] [stdout]   |            ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]  --> src/lib.rs:59:28
[INFO] [stdout]   |
[INFO] [stdout] 7 |     async_std::task::sleep(Duration::from_secs(5)).await;
[INFO] [stdout]   |                            ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use core::time::Duration;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::time::Duration;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:55:49
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_54_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] 3 | let js_v = JsArc::new(|| "Hello World!".into()).await;
[INFO] [stdout]   |                                                 ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:64:2
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_54_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 12 | .await;
[INFO] [stdout]    |  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 116) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:123:9
[INFO] [stdout]   |
[INFO] [stdout] 9 |         web_sys::console::log_1(&seven);
[INFO] [stdout]   |         ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `one` in this scope
[INFO] [stdout]  --> src/lib.rs:117:15
[INFO] [stdout]   |
[INFO] [stdout] 3 | let three = (&one + &two).await;
[INFO] [stdout]   |               ^^^ help: a unit variant with a similar name exists: `None`
[INFO] [stdout]  --> /rustc/1871252fc8bb672d40787e67404e6eaae7059369/library/core/src/option.rs:575:5
[INFO] [stdout]   |
[INFO] [stdout]   = note: similarly named unit variant `None` defined here
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `two` in this scope
[INFO] [stdout]  --> src/lib.rs:117:22
[INFO] [stdout]   |
[INFO] [stdout] 3 | let three = (&one + &two).await;
[INFO] [stdout]   |                      ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `one` in this scope
[INFO] [stdout]  --> src/lib.rs:118:40
[INFO] [stdout]   |
[INFO] [stdout] 4 | let ten = (&(&three * &three).await + &one).await;
[INFO] [stdout]   |                                        ^^^ help: a unit variant with a similar name exists: `None`
[INFO] [stdout]  --> /rustc/1871252fc8bb672d40787e67404e6eaae7059369/library/core/src/option.rs:575:5
[INFO] [stdout]   |
[INFO] [stdout]   = note: similarly named unit variant `None` defined here
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:117:27
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_116_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let three = (&one + &two).await;
[INFO] [stdout]   |                           ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:118:31
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_116_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let three = (&one + &two).await;
[INFO] [stdout] 4 | let ten = (&(&three * &three).await + &one).await;
[INFO] [stdout]   |                               ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:118:45
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_116_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let three = (&one + &two).await;
[INFO] [stdout] 4 | let ten = (&(&three * &three).await + &one).await;
[INFO] [stdout]   |                                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:119:29
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_116_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 5 | let seven = (&ten - &three).await;
[INFO] [stdout]   |                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:127:6
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_116_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 13 |     .await;
[INFO] [stdout]    |      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 9 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 69) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:72:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |         web_sys::console::log_1(&"Waiting 1 second then adding values".into());
[INFO] [stdout]   |         ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std`
[INFO] [stdout]  --> src/lib.rs:73:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |         async_std::task::sleep(Duration::from_secs(1)).await;
[INFO] [stdout]   |         ^^^^^^^^^ use of undeclared crate or module `async_std`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]   --> src/lib.rs:81:5
[INFO] [stdout]    |
[INFO] [stdout] 14 |     web_sys::console::log_1(&five);
[INFO] [stdout]    |     ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `three` in this scope
[INFO] [stdout]  --> src/lib.rs:70:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | let five = three
[INFO] [stdout]   |            ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `two` in this scope
[INFO] [stdout]  --> src/lib.rs:71:24
[INFO] [stdout]   |
[INFO] [stdout] 4 |     .with_other_async(&two, |three, two| async {
[INFO] [stdout]   |                        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]  --> src/lib.rs:73:32
[INFO] [stdout]   |
[INFO] [stdout] 6 |         async_std::task::sleep(Duration::from_secs(1)).await;
[INFO] [stdout]   |                                ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use core::time::Duration;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::time::Duration;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope
[INFO] [stdout]  --> src/lib.rs:74:25
[INFO] [stdout]   |
[INFO] [stdout] 7 |         let add_result: JsValue = &three + &two;
[INFO] [stdout]   |                         ^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use wasm_bindgen::JsValue;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:78:6
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_69_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 |     .await;
[INFO] [stdout]    |      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:85:2
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_69_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 18 | .await;
[INFO] [stdout]    |  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 9 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 31) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]   --> src/lib.rs:45:8
[INFO] [stdout]    |
[INFO] [stdout] 16 |        web_sys::console::log_1(&three);
[INFO] [stdout]    |        ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:32:11
[INFO] [stdout]   |
[INFO] [stdout] 3 | let one = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |           ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:33:11
[INFO] [stdout]   |
[INFO] [stdout] 4 | let two = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |           ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope
[INFO] [stdout]  --> src/lib.rs:37:24
[INFO] [stdout]   |
[INFO] [stdout] 8 |        let add_result: JsValue = &one + &two;
[INFO] [stdout]   |                        ^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use wasm_bindgen::JsValue;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:32:35
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_31_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] 3 | let one = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |                                   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:33:35
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_31_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] 3 | let one = JsArc::new(|| 1.into()).await;
[INFO] [stdout] 4 | let two = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |                                   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_31_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 12 |    .await;
[INFO] [stdout]    |     ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:49:5
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_31_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 20 |    .await;
[INFO] [stdout]    |     ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 110) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `Arc` in this scope
[INFO] [stdout]  --> src/lib.rs:112:19
[INFO] [stdout]   |
[INFO] [stdout] 4 | let value_in_arc: Arc<JsArc> = Arc::new(three);
[INFO] [stdout]   |                   ^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use std::sync::Arc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `JsArc` in this scope
[INFO] [stdout]  --> src/lib.rs:112:23
[INFO] [stdout]   |
[INFO] [stdout] 4 | let value_in_arc: Arc<JsArc> = Arc::new(three);
[INFO] [stdout]   |                       ^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc`
[INFO] [stdout]  --> src/lib.rs:112:32
[INFO] [stdout]   |
[INFO] [stdout] 4 | let value_in_arc: Arc<JsArc> = Arc::new(three);
[INFO] [stdout]   |                                ^^^ use of undeclared type `Arc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use std::sync::Arc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `three` in this scope
[INFO] [stdout]  --> src/lib.rs:112:41
[INFO] [stdout]   |
[INFO] [stdout] 4 | let value_in_arc: Arc<JsArc> = Arc::new(three);
[INFO] [stdout]   |                                         ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arc` in this scope
[INFO] [stdout]  --> src/lib.rs:113:10
[INFO] [stdout]   |
[INFO] [stdout] 5 | let str: Arc<JsArc> = JsArc::new(|| "hello!".into()).await.arc();
[INFO] [stdout]   |          ^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use std::sync::Arc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `JsArc` in this scope
[INFO] [stdout]  --> src/lib.rs:113:14
[INFO] [stdout]   |
[INFO] [stdout] 5 | let str: Arc<JsArc> = JsArc::new(|| "hello!".into()).await.arc();
[INFO] [stdout]   |              ^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:113:23
[INFO] [stdout]   |
[INFO] [stdout] 5 | let str: Arc<JsArc> = JsArc::new(|| "hello!".into()).await.arc();
[INFO] [stdout]   |                       ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:113:54
[INFO] [stdout]   |
[INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_110_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 4 | let value_in_arc: Arc<JsArc> = Arc::new(three);
[INFO] [stdout] 5 | let str: Arc<JsArc> = JsArc::new(|| "hello!".into()).await.arc();
[INFO] [stdout]   |                                                      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 88) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:89:10
[INFO] [stdout]   |
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:90:10
[INFO] [stdout]   |
[INFO] [stdout] 4 | let v1 = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:91:10
[INFO] [stdout]   |
[INFO] [stdout] 5 | let v2 = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:92:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | let v3 = JsArc::new(|| 3.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:93:10
[INFO] [stdout]   |
[INFO] [stdout] 7 | let v4 = JsArc::new(|| 4.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:89:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_88_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:90:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_88_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout] 4 | let v1 = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:91:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_88_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 5 | let v2 = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:92:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_88_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 6 | let v3 = JsArc::new(|| 3.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:93:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_88_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 7 | let v4 = JsArc::new(|| 4.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:106:6
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_88_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 20 |     .await;
[INFO] [stdout]    |      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 11 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::arc (line 735) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc`
[INFO] [stdout]  --> src/lib.rs:736:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | Arc::new(self)
[INFO] [stdout]   | ^^^ use of undeclared type `Arc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::sync::Arc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0424]: expected value, found module `self`
[INFO] [stdout]  --> src/lib.rs:736:10
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_735_0() {
[INFO] [stdout]   |                                         ------------------------------ this function can't have a `self` parameter
[INFO] [stdout] 3 | Arc::new(self)
[INFO] [stdout]   |          ^^^^ `self` value is a keyword only available in methods with a `self` parameter
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0424, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0424`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::new (line 643) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:644:16
[INFO] [stdout]   |
[INFO] [stdout] 3 | let js_value = JsArc::new(|| "Hello World!".into()).await;
[INFO] [stdout]   |                ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:644:53
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_643_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let js_value = JsArc::new(|| "Hello World!".into()).await;
[INFO] [stdout]   |                                                     ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::with_self (line 743) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:747:4
[INFO] [stdout]   |
[INFO] [stdout] 6 |    web_sys::console::log_1(&js_value);
[INFO] [stdout]   |    ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:744:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | let js_v = JsArc::new(|| "Hello World!".into()).await;
[INFO] [stdout]   |            ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:744:49
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_743_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let js_v = JsArc::new(|| "Hello World!".into()).await;
[INFO] [stdout]   |                                                 ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:750:2
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_743_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 9 | .await;
[INFO] [stdout]   |  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::with_many (line 908) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:909:10
[INFO] [stdout]   |
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:910:10
[INFO] [stdout]   |
[INFO] [stdout] 4 | let v1 = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:911:10
[INFO] [stdout]   |
[INFO] [stdout] 5 | let v2 = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:912:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | let v3 = JsArc::new(|| 3.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:913:10
[INFO] [stdout]   |
[INFO] [stdout] 7 | let v4 = JsArc::new(|| 4.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:909:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_908_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:910:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_908_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout] 4 | let v1 = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:911:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_908_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 5 | let v2 = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:912:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_908_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 6 | let v3 = JsArc::new(|| 3.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:913:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_908_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 7 | let v4 = JsArc::new(|| 4.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:926:6
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_908_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 20 |     .await;
[INFO] [stdout]    |      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 11 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::with_other_async (line 861) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:864:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |         web_sys::console::log_1(&"Waiting 1 second then adding values".into());
[INFO] [stdout]   |         ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std`
[INFO] [stdout]  --> src/lib.rs:865:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |         async_std::task::sleep(Duration::from_secs(1)).await;
[INFO] [stdout]   |         ^^^^^^^^^ use of undeclared crate or module `async_std`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]   --> src/lib.rs:873:5
[INFO] [stdout]    |
[INFO] [stdout] 14 |     web_sys::console::log_1(&five);
[INFO] [stdout]    |     ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `three` in this scope
[INFO] [stdout]  --> src/lib.rs:862:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | let five = three
[INFO] [stdout]   |            ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `two` in this scope
[INFO] [stdout]  --> src/lib.rs:863:24
[INFO] [stdout]   |
[INFO] [stdout] 4 |     .with_other_async(&two, |three, two| async {
[INFO] [stdout]   |                        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]  --> src/lib.rs:865:32
[INFO] [stdout]   |
[INFO] [stdout] 6 |         async_std::task::sleep(Duration::from_secs(1)).await;
[INFO] [stdout]   |                                ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use core::time::Duration;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::time::Duration;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope
[INFO] [stdout]  --> src/lib.rs:866:25
[INFO] [stdout]   |
[INFO] [stdout] 7 |         let add_result: JsValue = &three + &two;
[INFO] [stdout]   |                         ^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use wasm_bindgen::JsValue;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:870:6
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_861_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 |     .await;
[INFO] [stdout]    |      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:877:2
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_861_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 18 | .await;
[INFO] [stdout]    |  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 9 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::with_other (line 814) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]   --> src/lib.rs:828:9
[INFO] [stdout]    |
[INFO] [stdout] 16 |         web_sys::console::log_1(&three);
[INFO] [stdout]    |         ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:815:11
[INFO] [stdout]   |
[INFO] [stdout] 3 | let one = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |           ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:816:11
[INFO] [stdout]   |
[INFO] [stdout] 4 | let two = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |           ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope
[INFO] [stdout]  --> src/lib.rs:820:25
[INFO] [stdout]   |
[INFO] [stdout] 8 |         let add_result: JsValue = &one + &two;
[INFO] [stdout]   |                         ^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use wasm_bindgen::JsValue;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:815:35
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_814_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let one = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |                                   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:816:35
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_814_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let one = JsArc::new(|| 1.into()).await;
[INFO] [stdout] 4 | let two = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |                                   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:824:6
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_814_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 12 |     .await;
[INFO] [stdout]    |      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:832:6
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_814_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 20 |     .await;
[INFO] [stdout]    |      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::with_self (line 755) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:759:4
[INFO] [stdout]   |
[INFO] [stdout] 6 |    web_sys::console::log_1(&js_v);
[INFO] [stdout]   |    ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:756:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | let js_v = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |            ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:756:36
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_755_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let js_v = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |                                    ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:757:39
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_755_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let js_v = JsArc::new(|| 2.into()).await;
[INFO] [stdout] 4 | js_v.with_self(|one| one + &5.into()).await;
[INFO] [stdout]   |                                       ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:762:2
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_755_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 9 | .await;
[INFO] [stdout]   |  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::new_async (line 668) stdout ----
[INFO] [stdout] error: cannot find attribute `wasm_bindgen` in this scope
[INFO] [stdout]  --> src/lib.rs:669:3
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[wasm_bindgen]
[INFO] [stdout]   |   ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `wasm_bindgen` is in scope, but it is a crate, not an attribute
[INFO] [stdout] help: consider importing this attribute macro
[INFO] [stdout]   |
[INFO] [stdout] 2 + use wasm_bindgen::prelude::wasm_bindgen;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `wasm_bindgen` in this scope
[INFO] [stdout]  --> src/lib.rs:671:7
[INFO] [stdout]   |
[INFO] [stdout] 5 |     #[wasm_bindgen]
[INFO] [stdout]   |       ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `wasm_bindgen` is in scope, but it is a crate, not an attribute
[INFO] [stdout] help: consider importing this attribute macro
[INFO] [stdout]   |
[INFO] [stdout] 2 + use wasm_bindgen::prelude::wasm_bindgen;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `wasm_bindgen` in this scope
[INFO] [stdout]  --> src/lib.rs:674:7
[INFO] [stdout]   |
[INFO] [stdout] 8 |     #[wasm_bindgen(method, js_name = "helloWorld")]
[INFO] [stdout]   |       ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `wasm_bindgen` is in scope, but it is a crate, not an attribute
[INFO] [stdout] help: consider importing this attribute macro
[INFO] [stdout]   |
[INFO] [stdout] 2 + use wasm_bindgen::prelude::wasm_bindgen;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]   --> src/lib.rs:689:26
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let module_address = web_sys::Url::create_object_url_with_blob(&blob).unwrap();
[INFO] [stdout]    |                          ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `BlobPropertyBag` in this scope
[INFO] [stdout]   --> src/lib.rs:685:23
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let mut type_set: BlobPropertyBag = BlobPropertyBag::new();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Promise` in this scope
[INFO] [stdout]   --> src/lib.rs:691:25
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let module_promise: Promise = js_sys::eval(&format!(r#"import ("{}")"#, module_address))
[INFO] [stdout]    |                         ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `js_sys`
[INFO] [stdout]   --> src/lib.rs:691:35
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let module_promise: Promise = js_sys::eval(&format!(r#"import ("{}")"#, module_address))
[INFO] [stdout]    |                                   ^^^^^^ use of undeclared crate or module `js_sys`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this crate
[INFO] [stdout]    |
[INFO] [stdout] 2  + use wasm_bindgen_futures::js_sys;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsFuture`
[INFO] [stdout]   --> src/lib.rs:695:18
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let module = JsFuture::from(module_promise).await.unwrap();
[INFO] [stdout]    |                  ^^^^^^^^ use of undeclared type `JsFuture`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 2  + use wasm_bindgen_futures::JsFuture;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]   --> src/lib.rs:703:14
[INFO] [stdout]    |
[INFO] [stdout] 37 | let module = JsArc::new_async(|| async { load_dynamic_hello_world().await.into() }).await;
[INFO] [stdout]    |              ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 2  + use js_arc::JsArc;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0658]: extern types are experimental
[INFO] [stdout]  --> src/lib.rs:672:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     pub type HelloWorldModule;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: see issue #43467 <https://github.com/rust-lang/rust/issues/43467> for more information
[INFO] [stdout]   = help: add `#![feature(extern_types)]` to the crate attributes to enable
[INFO] [stdout]   = note: this compiler was built on 2024-05-15; consider upgrading it if it is out of date
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:703:85
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_668_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 37 | let module = JsArc::new_async(|| async { load_dynamic_hello_world().await.into() }).await;
[INFO] [stdout]    |                                                                                     ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `_doctest_main_src_lib_rs_668_0::HelloWorldModule` cannot be known at compilation time
[INFO] [stdout]   --> src/lib.rs:679:61
[INFO] [stdout]    |
[INFO] [stdout] 13 |   pub async fn load_dynamic_hello_world() -> HelloWorldModule {
[INFO] [stdout]    |  _____________________________________________________________^
[INFO] [stdout] 14 | |     let module_as_str = r#"export function helloWorld() { console.log("Hello World!"); }"#;
[INFO] [stdout] 15 | |
[INFO] [stdout] 16 | |     let from_data = Array::new();
[INFO] [stdout] ...  |
[INFO] [stdout] 34 | |     as_hello_world
[INFO] [stdout] 35 | | }
[INFO] [stdout]    | |_^ doesn't have a size known at compile-time
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Sized` is not implemented for `_doctest_main_src_lib_rs_668_0::HelloWorldModule`
[INFO] [stdout]    = note: the return type of a function must have a statically known size
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Array`
[INFO] [stdout]   --> src/lib.rs:682:21
[INFO] [stdout]    |
[INFO] [stdout] 16 |     let from_data = Array::new();
[INFO] [stdout]    |                     ^^^^^ use of undeclared type `Array`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BlobPropertyBag`
[INFO] [stdout]   --> src/lib.rs:685:41
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let mut type_set: BlobPropertyBag = BlobPropertyBag::new();
[INFO] [stdout]    |                                         ^^^^^^^^^^^^^^^ use of undeclared type `BlobPropertyBag`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Blob`
[INFO] [stdout]   --> src/lib.rs:688:16
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let blob = Blob::new_with_str_sequence_and_options(&from_data, &type_set).unwrap();
[INFO] [stdout]    |                ^^^^ use of undeclared type `Blob`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `_doctest_main_src_lib_rs_668_0::HelloWorldModule` cannot be known at compilation time
[INFO] [stdout]   --> src/lib.rs:703:42
[INFO] [stdout]    |
[INFO] [stdout] 37 | let module = JsArc::new_async(|| async { load_dynamic_hello_world().await.into() }).await;
[INFO] [stdout]    |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Sized` is not implemented for `_doctest_main_src_lib_rs_668_0::HelloWorldModule`
[INFO] [stdout]    = note: all local variables must have a statically known size
[INFO] [stdout]    = help: unsized locals are gated as an unstable feature
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `_doctest_main_src_lib_rs_668_0::HelloWorldModule` cannot be known at compilation time
[INFO] [stdout]   --> src/lib.rs:703:69
[INFO] [stdout]    |
[INFO] [stdout] 37 | let module = JsArc::new_async(|| async { load_dynamic_hello_world().await.into() }).await;
[INFO] [stdout]    |                                                                     ^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Sized` is not implemented for `_doctest_main_src_lib_rs_668_0::HelloWorldModule`
[INFO] [stdout] note: required by a bound in `std::task::Poll::Ready`
[INFO] [stdout]   --> /rustc/1871252fc8bb672d40787e67404e6eaae7059369/library/core/src/task/poll.rs:16:5
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 17 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0433, E0658, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::with_many_async (line 960) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]   --> src/lib.rs:975:13
[INFO] [stdout]    |
[INFO] [stdout] 17 |             web_sys::console::log_1(&"Waiting 1 second before continuing".into());
[INFO] [stdout]    |             ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std`
[INFO] [stdout]   --> src/lib.rs:976:13
[INFO] [stdout]    |
[INFO] [stdout] 18 |             async_std::task::sleep(Duration::from_secs(1)).await;
[INFO] [stdout]    |             ^^^^^^^^^ use of undeclared crate or module `async_std`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]   --> src/lib.rs:985:13
[INFO] [stdout]    |
[INFO] [stdout] 27 |             web_sys::console::log_1(&result);
[INFO] [stdout]    |             ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:961:10
[INFO] [stdout]   |
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:962:14
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let v1 = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |              ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:963:14
[INFO] [stdout]   |
[INFO] [stdout] 5 |     let v2 = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |              ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:964:14
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let v3 = JsArc::new(|| 3.into()).await;
[INFO] [stdout]   |              ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:965:14
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let v4 = JsArc::new(|| 4.into()).await;
[INFO] [stdout]   |              ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]   --> src/lib.rs:976:36
[INFO] [stdout]    |
[INFO] [stdout] 18 |             async_std::task::sleep(Duration::from_secs(1)).await;
[INFO] [stdout]    |                                    ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 2  + use core::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 2  + use std::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:961:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_960_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:962:38
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_960_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout] 4 |     let v1 = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |                                      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:963:38
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_960_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 5 |     let v2 = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |                                      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:964:38
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_960_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 6 |     let v3 = JsArc::new(|| 3.into()).await;
[INFO] [stdout]   |                                      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:965:38
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_960_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 7 |     let v4 = JsArc::new(|| 4.into()).await;
[INFO] [stdout]   |                                      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:981:10
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_960_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 23 |         .await;
[INFO] [stdout]    |          ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:989:10
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_960_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 31 |         .await;
[INFO] [stdout]    |          ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 16 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::with_self_async (line 782) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:785:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |         web_sys::console::log_1(&"Waiting 5 second then printing value".into());
[INFO] [stdout]   |         ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std`
[INFO] [stdout]  --> src/lib.rs:786:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |         async_std::task::sleep(Duration::from_secs(5)).await;
[INFO] [stdout]   |         ^^^^^^^^^ use of undeclared crate or module `async_std`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:787:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |         web_sys::console::log_1(&hello);
[INFO] [stdout]   |         ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `js_value` in this scope
[INFO] [stdout]  --> src/lib.rs:783:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | js_value
[INFO] [stdout]   | ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]  --> src/lib.rs:786:32
[INFO] [stdout]   |
[INFO] [stdout] 6 |         async_std::task::sleep(Duration::from_secs(5)).await;
[INFO] [stdout]   |                                ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use core::time::Duration;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::time::Duration;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:791:6
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_782_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 |     .await;
[INFO] [stdout]    |      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - (line 110)
[INFO] [stdout]     src/lib.rs - (line 116)
[INFO] [stdout]     src/lib.rs - (line 17)
[INFO] [stdout]     src/lib.rs - (line 31)
[INFO] [stdout]     src/lib.rs - (line 54)
[INFO] [stdout]     src/lib.rs - (line 69)
[INFO] [stdout]     src/lib.rs - (line 7)
[INFO] [stdout]     src/lib.rs - (line 88)
[INFO] [stdout]     src/lib.rs - JsArc::arc (line 735)
[INFO] [stdout]     src/lib.rs - JsArc::new (line 643)
[INFO] [stdout]     src/lib.rs - JsArc::new_async (line 668)
[INFO] [stdout]     src/lib.rs - JsArc::with_many (line 908)
[INFO] [stdout]     src/lib.rs - JsArc::with_many_async (line 960)
[INFO] [stdout]     src/lib.rs - JsArc::with_other (line 814)
[INFO] [stdout]     src/lib.rs - JsArc::with_other_async (line 861)
[INFO] [stdout]     src/lib.rs - JsArc::with_self (line 743)
[INFO] [stdout]     src/lib.rs - JsArc::with_self (line 755)
[INFO] [stdout]     src/lib.rs - JsArc::with_self_async (line 782)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 18 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.88s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "8bd4609d5e17f47b1e815c09a1ec0a50f4d236031378361e2589df55b4388697", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8bd4609d5e17f47b1e815c09a1ec0a50f4d236031378361e2589df55b4388697", kill_on_drop: false }`
[INFO] [stdout] 8bd4609d5e17f47b1e815c09a1ec0a50f4d236031378361e2589df55b4388697
[INFO] testing 63b8e7lmk1jv9c0ovus4hqkcasqgp0ed/JsArc against try#b642703cf9526da1e72c0b6755753b939a9c6b6d for pr-125151
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F63b8e7lmk1jv9c0ovus4hqkcasqgp0ed%2FJsArc" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/63b8e7lmk1jv9c0ovus4hqkcasqgp0ed/JsArc on toolchain b642703cf9526da1e72c0b6755753b939a9c6b6d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/63b8e7lmk1jv9c0ovus4hqkcasqgp0ed/JsArc
[INFO] finished tweaking git repo https://github.com/63b8e7lmk1jv9c0ovus4hqkcasqgp0ed/JsArc
[INFO] tweaked toml for git repo https://github.com/63b8e7lmk1jv9c0ovus4hqkcasqgp0ed/JsArc written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/63b8e7lmk1jv9c0ovus4hqkcasqgp0ed/JsArc already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 782da3759038df337059a312101d833d347f18f51ef5f4a25af1a81b9d1e3081
[INFO] running `Command { std: "docker" "start" "-a" "782da3759038df337059a312101d833d347f18f51ef5f4a25af1a81b9d1e3081", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "782da3759038df337059a312101d833d347f18f51ef5f4a25af1a81b9d1e3081", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "782da3759038df337059a312101d833d347f18f51ef5f4a25af1a81b9d1e3081", kill_on_drop: false }`
[INFO] [stdout] 782da3759038df337059a312101d833d347f18f51ef5f4a25af1a81b9d1e3081
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] cc03b28b3ff225ab60493ab3c92a09fb0d375885ec6caaf3bbff4334053e752a
[INFO] running `Command { std: "docker" "start" "-a" "cc03b28b3ff225ab60493ab3c92a09fb0d375885ec6caaf3bbff4334053e752a", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.82
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.92
[INFO] [stderr]    Compiling crossbeam-utils v0.8.19
[INFO] [stderr]    Compiling log v0.4.21
[INFO] [stderr]    Compiling once_cell v1.19.0
[INFO] [stderr]    Compiling bumpalo v3.16.0
[INFO] [stderr]    Compiling wasm-bindgen v0.2.92
[INFO] [stderr]    Compiling parking v2.2.0
[INFO] [stderr]    Compiling pin-project-lite v0.2.14
[INFO] [stderr]    Compiling futures-core v0.3.30
[INFO] [stderr]    Compiling concurrent-queue v2.5.0
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]    Compiling event-listener v5.3.0
[INFO] [stderr]    Compiling syn v2.0.63
[INFO] [stderr]    Compiling event-listener-strategy v0.5.2
[INFO] [stderr]    Compiling async-channel v2.2.1
[INFO] [stderr]    Compiling wasm-bindgen-backend v0.2.92
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.92
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.92
[INFO] [stderr]    Compiling js-sys v0.3.69
[INFO] [stderr]    Compiling wasm-bindgen-futures v0.4.42
[INFO] [stderr]    Compiling js_arc v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.20s
[INFO] running `Command { std: "docker" "inspect" "cc03b28b3ff225ab60493ab3c92a09fb0d375885ec6caaf3bbff4334053e752a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cc03b28b3ff225ab60493ab3c92a09fb0d375885ec6caaf3bbff4334053e752a", kill_on_drop: false }`
[INFO] [stdout] cc03b28b3ff225ab60493ab3c92a09fb0d375885ec6caaf3bbff4334053e752a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 088f72744c67f7784195a2a5bbdb7f64872b4196d45e3ee28971e56db1c6ce3c
[INFO] running `Command { std: "docker" "start" "-a" "088f72744c67f7784195a2a5bbdb7f64872b4196d45e3ee28971e56db1c6ce3c", kill_on_drop: false }`
[INFO] [stderr]    Compiling js_arc v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.75s
[INFO] running `Command { std: "docker" "inspect" "088f72744c67f7784195a2a5bbdb7f64872b4196d45e3ee28971e56db1c6ce3c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "088f72744c67f7784195a2a5bbdb7f64872b4196d45e3ee28971e56db1c6ce3c", kill_on_drop: false }`
[INFO] [stdout] 088f72744c67f7784195a2a5bbdb7f64872b4196d45e3ee28971e56db1c6ce3c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 4098ce9548368787b2d9d20988c9c1c89cdadcaeddbafb3b867b71e0a73ba9f6
[INFO] running `Command { std: "docker" "start" "-a" "4098ce9548368787b2d9d20988c9c1c89cdadcaeddbafb3b867b71e0a73ba9f6", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/js_arc-f4f2cd6bcc81034a)
[INFO] [stderr]    Doc-tests js_arc
[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] [stdout] 
[INFO] [stdout] running 18 tests
[INFO] [stdout] test src/lib.rs - (line 88) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 116) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 69) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 110) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 7) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 17) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 31) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 54) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::arc (line 735) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::new (line 643) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::with_other (line 814) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::with_other_async (line 861) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::with_self_async (line 782) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::with_self (line 743) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::with_many_async (line 960) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::with_many (line 908) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::with_self (line 755) ... FAILED
[INFO] [stdout] test src/lib.rs - JsArc::new_async (line 668) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 88) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:89:10
[INFO] [stdout]   |
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:90:10
[INFO] [stdout]   |
[INFO] [stdout] 4 | let v1 = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:91:10
[INFO] [stdout]   |
[INFO] [stdout] 5 | let v2 = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:92:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | let v3 = JsArc::new(|| 3.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:93:10
[INFO] [stdout]   |
[INFO] [stdout] 7 | let v4 = JsArc::new(|| 4.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:89:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_88_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:90:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_88_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout] 4 | let v1 = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:91:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_88_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 5 | let v2 = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:92:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_88_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 6 | let v3 = JsArc::new(|| 3.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:93:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_88_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 7 | let v4 = JsArc::new(|| 4.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:106:6
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_88_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 20 |     .await;
[INFO] [stdout]    |      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 11 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 116) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:123:9
[INFO] [stdout]   |
[INFO] [stdout] 9 |         web_sys::console::log_1(&seven);
[INFO] [stdout]   |         ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `one` in this scope
[INFO] [stdout]  --> src/lib.rs:117:15
[INFO] [stdout]   |
[INFO] [stdout] 3 | let three = (&one + &two).await;
[INFO] [stdout]   |               ^^^ help: a unit variant with a similar name exists: `None`
[INFO] [stdout]  --> /rustc/b642703cf9526da1e72c0b6755753b939a9c6b6d/library/core/src/option.rs:575:5
[INFO] [stdout]   |
[INFO] [stdout]   = note: similarly named unit variant `None` defined here
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `two` in this scope
[INFO] [stdout]  --> src/lib.rs:117:22
[INFO] [stdout]   |
[INFO] [stdout] 3 | let three = (&one + &two).await;
[INFO] [stdout]   |                      ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `one` in this scope
[INFO] [stdout]  --> src/lib.rs:118:40
[INFO] [stdout]   |
[INFO] [stdout] 4 | let ten = (&(&three * &three).await + &one).await;
[INFO] [stdout]   |                                        ^^^ help: a unit variant with a similar name exists: `None`
[INFO] [stdout]  --> /rustc/b642703cf9526da1e72c0b6755753b939a9c6b6d/library/core/src/option.rs:575:5
[INFO] [stdout]   |
[INFO] [stdout]   = note: similarly named unit variant `None` defined here
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:117:27
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_116_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let three = (&one + &two).await;
[INFO] [stdout]   |                           ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:118:31
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_116_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let three = (&one + &two).await;
[INFO] [stdout] 4 | let ten = (&(&three * &three).await + &one).await;
[INFO] [stdout]   |                               ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:118:45
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_116_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let three = (&one + &two).await;
[INFO] [stdout] 4 | let ten = (&(&three * &three).await + &one).await;
[INFO] [stdout]   |                                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:119:29
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_116_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 5 | let seven = (&ten - &three).await;
[INFO] [stdout]   |                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:127:6
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_116_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 13 |     .await;
[INFO] [stdout]    |      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 9 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 69) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:72:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |         web_sys::console::log_1(&"Waiting 1 second then adding values".into());
[INFO] [stdout]   |         ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std`
[INFO] [stdout]  --> src/lib.rs:73:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |         async_std::task::sleep(Duration::from_secs(1)).await;
[INFO] [stdout]   |         ^^^^^^^^^ use of undeclared crate or module `async_std`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]   --> src/lib.rs:81:5
[INFO] [stdout]    |
[INFO] [stdout] 14 |     web_sys::console::log_1(&five);
[INFO] [stdout]    |     ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `three` in this scope
[INFO] [stdout]  --> src/lib.rs:70:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | let five = three
[INFO] [stdout]   |            ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `two` in this scope
[INFO] [stdout]  --> src/lib.rs:71:24
[INFO] [stdout]   |
[INFO] [stdout] 4 |     .with_other_async(&two, |three, two| async {
[INFO] [stdout]   |                        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]  --> src/lib.rs:73:32
[INFO] [stdout]   |
[INFO] [stdout] 6 |         async_std::task::sleep(Duration::from_secs(1)).await;
[INFO] [stdout]   |                                ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use core::time::Duration;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::time::Duration;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope
[INFO] [stdout]  --> src/lib.rs:74:25
[INFO] [stdout]   |
[INFO] [stdout] 7 |         let add_result: JsValue = &three + &two;
[INFO] [stdout]   |                         ^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use wasm_bindgen::JsValue;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:78:6
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_69_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 |     .await;
[INFO] [stdout]    |      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:85:2
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_69_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 18 | .await;
[INFO] [stdout]    |  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 9 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 110) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `Arc` in this scope
[INFO] [stdout]  --> src/lib.rs:112:19
[INFO] [stdout]   |
[INFO] [stdout] 4 | let value_in_arc: Arc<JsArc> = Arc::new(three);
[INFO] [stdout]   |                   ^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use std::sync::Arc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `JsArc` in this scope
[INFO] [stdout]  --> src/lib.rs:112:23
[INFO] [stdout]   |
[INFO] [stdout] 4 | let value_in_arc: Arc<JsArc> = Arc::new(three);
[INFO] [stdout]   |                       ^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc`
[INFO] [stdout]  --> src/lib.rs:112:32
[INFO] [stdout]   |
[INFO] [stdout] 4 | let value_in_arc: Arc<JsArc> = Arc::new(three);
[INFO] [stdout]   |                                ^^^ use of undeclared type `Arc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use std::sync::Arc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `three` in this scope
[INFO] [stdout]  --> src/lib.rs:112:41
[INFO] [stdout]   |
[INFO] [stdout] 4 | let value_in_arc: Arc<JsArc> = Arc::new(three);
[INFO] [stdout]   |                                         ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arc` in this scope
[INFO] [stdout]  --> src/lib.rs:113:10
[INFO] [stdout]   |
[INFO] [stdout] 5 | let str: Arc<JsArc> = JsArc::new(|| "hello!".into()).await.arc();
[INFO] [stdout]   |          ^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use std::sync::Arc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `JsArc` in this scope
[INFO] [stdout]  --> src/lib.rs:113:14
[INFO] [stdout]   |
[INFO] [stdout] 5 | let str: Arc<JsArc> = JsArc::new(|| "hello!".into()).await.arc();
[INFO] [stdout]   |              ^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:113:23
[INFO] [stdout]   |
[INFO] [stdout] 5 | let str: Arc<JsArc> = JsArc::new(|| "hello!".into()).await.arc();
[INFO] [stdout]   |                       ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:113:54
[INFO] [stdout]   |
[INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_110_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 4 | let value_in_arc: Arc<JsArc> = Arc::new(three);
[INFO] [stdout] 5 | let str: Arc<JsArc> = JsArc::new(|| "hello!".into()).await.arc();
[INFO] [stdout]   |                                                      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 7) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:11:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     web_sys::console::log_1(&js_value);
[INFO] [stdout]   |     ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | let js_v = JsArc::new(|| "Hello World!".into()).await;
[INFO] [stdout]   |            ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:8:49
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() {
[INFO] [stdout]   |                                      --------------------------------- this is not `async`
[INFO] [stdout] 3 | let js_v = JsArc::new(|| "Hello World!".into()).await;
[INFO] [stdout]   |                                                 ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:14:2
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() {
[INFO] [stdout]   |                                      --------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 9 | .await;
[INFO] [stdout]   |  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 17) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:23:5
[INFO] [stdout]   |
[INFO] [stdout] 8 |     web_sys::console::log_1(&js_v);
[INFO] [stdout]   |     ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:18:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | let js_v = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |            ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:18:36
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_17_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] 3 | let js_v = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |                                    ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:19:39
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_17_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] 3 | let js_v = JsArc::new(|| 2.into()).await;
[INFO] [stdout] 4 | js_v.with_self(|one| one + &5.into()).await;
[INFO] [stdout]   |                                       ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:26:2
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_17_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 | .await;
[INFO] [stdout]    |  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 31) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]   --> src/lib.rs:45:8
[INFO] [stdout]    |
[INFO] [stdout] 16 |        web_sys::console::log_1(&three);
[INFO] [stdout]    |        ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:32:11
[INFO] [stdout]   |
[INFO] [stdout] 3 | let one = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |           ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:33:11
[INFO] [stdout]   |
[INFO] [stdout] 4 | let two = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |           ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope
[INFO] [stdout]  --> src/lib.rs:37:24
[INFO] [stdout]   |
[INFO] [stdout] 8 |        let add_result: JsValue = &one + &two;
[INFO] [stdout]   |                        ^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use wasm_bindgen::JsValue;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:32:35
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_31_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] 3 | let one = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |                                   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:33:35
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_31_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] 3 | let one = JsArc::new(|| 1.into()).await;
[INFO] [stdout] 4 | let two = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |                                   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_31_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 12 |    .await;
[INFO] [stdout]    |     ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:49:5
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_31_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 20 |    .await;
[INFO] [stdout]    |     ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 54) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:58:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     web_sys::console::log_1(&"Waiting 5 second then printing value".into());
[INFO] [stdout]   |     ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std`
[INFO] [stdout]  --> src/lib.rs:59:5
[INFO] [stdout]   |
[INFO] [stdout] 7 |     async_std::task::sleep(Duration::from_secs(5)).await;
[INFO] [stdout]   |     ^^^^^^^^^ use of undeclared crate or module `async_std`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:60:5
[INFO] [stdout]   |
[INFO] [stdout] 8 |     web_sys::console::log_1(&hello);
[INFO] [stdout]   |     ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:55:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | let js_v = JsArc::new(|| "Hello World!".into()).await;
[INFO] [stdout]   |            ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]  --> src/lib.rs:59:28
[INFO] [stdout]   |
[INFO] [stdout] 7 |     async_std::task::sleep(Duration::from_secs(5)).await;
[INFO] [stdout]   |                            ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use core::time::Duration;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::time::Duration;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:55:49
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_54_0() {
[INFO] [stdout]   |                                      ---------------------------------- this is not `async`
[INFO] [stdout] 3 | let js_v = JsArc::new(|| "Hello World!".into()).await;
[INFO] [stdout]   |                                                 ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:64:2
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_54_0() {
[INFO] [stdout]    |                                      ---------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 12 | .await;
[INFO] [stdout]    |  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::arc (line 735) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc`
[INFO] [stdout]  --> src/lib.rs:736:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | Arc::new(self)
[INFO] [stdout]   | ^^^ use of undeclared type `Arc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::sync::Arc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0424]: expected value, found module `self`
[INFO] [stdout]  --> src/lib.rs:736:10
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_735_0() {
[INFO] [stdout]   |                                         ------------------------------ this function can't have a `self` parameter
[INFO] [stdout] 3 | Arc::new(self)
[INFO] [stdout]   |          ^^^^ `self` value is a keyword only available in methods with a `self` parameter
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0424, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0424`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::new (line 643) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:644:16
[INFO] [stdout]   |
[INFO] [stdout] 3 | let js_value = JsArc::new(|| "Hello World!".into()).await;
[INFO] [stdout]   |                ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:644:53
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_643_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let js_value = JsArc::new(|| "Hello World!".into()).await;
[INFO] [stdout]   |                                                     ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::with_other (line 814) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]   --> src/lib.rs:828:9
[INFO] [stdout]    |
[INFO] [stdout] 16 |         web_sys::console::log_1(&three);
[INFO] [stdout]    |         ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:815:11
[INFO] [stdout]   |
[INFO] [stdout] 3 | let one = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |           ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:816:11
[INFO] [stdout]   |
[INFO] [stdout] 4 | let two = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |           ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope
[INFO] [stdout]  --> src/lib.rs:820:25
[INFO] [stdout]   |
[INFO] [stdout] 8 |         let add_result: JsValue = &one + &two;
[INFO] [stdout]   |                         ^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use wasm_bindgen::JsValue;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:815:35
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_814_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let one = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |                                   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:816:35
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_814_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let one = JsArc::new(|| 1.into()).await;
[INFO] [stdout] 4 | let two = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |                                   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:824:6
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_814_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 12 |     .await;
[INFO] [stdout]    |      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:832:6
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_814_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 20 |     .await;
[INFO] [stdout]    |      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::with_other_async (line 861) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:864:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |         web_sys::console::log_1(&"Waiting 1 second then adding values".into());
[INFO] [stdout]   |         ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std`
[INFO] [stdout]  --> src/lib.rs:865:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |         async_std::task::sleep(Duration::from_secs(1)).await;
[INFO] [stdout]   |         ^^^^^^^^^ use of undeclared crate or module `async_std`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]   --> src/lib.rs:873:5
[INFO] [stdout]    |
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] [stdout] 14 |     web_sys::console::log_1(&five);
[INFO] [stdout]    |     ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `three` in this scope
[INFO] [stdout]  --> src/lib.rs:862:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | let five = three
[INFO] [stdout]   |            ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `two` in this scope
[INFO] [stdout]  --> src/lib.rs:863:24
[INFO] [stdout]   |
[INFO] [stdout] 4 |     .with_other_async(&two, |three, two| async {
[INFO] [stdout]   |                        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]  --> src/lib.rs:865:32
[INFO] [stdout]   |
[INFO] [stdout] 6 |         async_std::task::sleep(Duration::from_secs(1)).await;
[INFO] [stdout]   |                                ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use core::time::Duration;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::time::Duration;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `JsValue` in this scope
[INFO] [stdout]  --> src/lib.rs:866:25
[INFO] [stdout]   |
[INFO] [stdout] 7 |         let add_result: JsValue = &three + &two;
[INFO] [stdout]   |                         ^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use wasm_bindgen::JsValue;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:870:6
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_861_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 |     .await;
[INFO] [stdout]    |      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:877:2
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_861_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 18 | .await;
[INFO] [stdout]    |  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 9 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::with_self_async (line 782) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:785:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |         web_sys::console::log_1(&"Waiting 5 second then printing value".into());
[INFO] [stdout]   |         ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std`
[INFO] [stdout]  --> src/lib.rs:786:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |         async_std::task::sleep(Duration::from_secs(5)).await;
[INFO] [stdout]   |         ^^^^^^^^^ use of undeclared crate or module `async_std`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:787:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |         web_sys::console::log_1(&hello);
[INFO] [stdout]   |         ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `js_value` in this scope
[INFO] [stdout]  --> src/lib.rs:783:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | js_value
[INFO] [stdout]   | ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]  --> src/lib.rs:786:32
[INFO] [stdout]   |
[INFO] [stdout] 6 |         async_std::task::sleep(Duration::from_secs(5)).await;
[INFO] [stdout]   |                                ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use core::time::Duration;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use std::time::Duration;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:791:6
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_782_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 |     .await;
[INFO] [stdout]    |      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::with_self (line 743) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:747:4
[INFO] [stdout]   |
[INFO] [stdout] 6 |    web_sys::console::log_1(&js_value);
[INFO] [stdout]   |    ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:744:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | let js_v = JsArc::new(|| "Hello World!".into()).await;
[INFO] [stdout]   |            ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:744:49
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_743_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let js_v = JsArc::new(|| "Hello World!".into()).await;
[INFO] [stdout]   |                                                 ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:750:2
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_743_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 9 | .await;
[INFO] [stdout]   |  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::with_many_async (line 960) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]   --> src/lib.rs:975:13
[INFO] [stdout]    |
[INFO] [stdout] 17 |             web_sys::console::log_1(&"Waiting 1 second before continuing".into());
[INFO] [stdout]    |             ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std`
[INFO] [stdout]   --> src/lib.rs:976:13
[INFO] [stdout]    |
[INFO] [stdout] 18 |             async_std::task::sleep(Duration::from_secs(1)).await;
[INFO] [stdout]    |             ^^^^^^^^^ use of undeclared crate or module `async_std`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]   --> src/lib.rs:985:13
[INFO] [stdout]    |
[INFO] [stdout] 27 |             web_sys::console::log_1(&result);
[INFO] [stdout]    |             ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:961:10
[INFO] [stdout]   |
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:962:14
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let v1 = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |              ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:963:14
[INFO] [stdout]   |
[INFO] [stdout] 5 |     let v2 = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |              ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:964:14
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let v3 = JsArc::new(|| 3.into()).await;
[INFO] [stdout]   |              ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:965:14
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let v4 = JsArc::new(|| 4.into()).await;
[INFO] [stdout]   |              ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]   --> src/lib.rs:976:36
[INFO] [stdout]    |
[INFO] [stdout] 18 |             async_std::task::sleep(Duration::from_secs(1)).await;
[INFO] [stdout]    |                                    ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 2  + use core::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 2  + use std::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:961:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_960_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:962:38
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_960_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout] 4 |     let v1 = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |                                      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:963:38
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_960_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 5 |     let v2 = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |                                      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:964:38
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_960_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 6 |     let v3 = JsArc::new(|| 3.into()).await;
[INFO] [stdout]   |                                      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:965:38
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_960_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 7 |     let v4 = JsArc::new(|| 4.into()).await;
[INFO] [stdout]   |                                      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:981:10
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_960_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 23 |         .await;
[INFO] [stdout]    |          ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:989:10
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_960_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 31 |         .await;
[INFO] [stdout]    |          ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 16 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::with_many (line 908) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:909:10
[INFO] [stdout]   |
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:910:10
[INFO] [stdout]   |
[INFO] [stdout] 4 | let v1 = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:911:10
[INFO] [stdout]   |
[INFO] [stdout] 5 | let v2 = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:912:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | let v3 = JsArc::new(|| 3.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:913:10
[INFO] [stdout]   |
[INFO] [stdout] 7 | let v4 = JsArc::new(|| 4.into()).await;
[INFO] [stdout]   |          ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:909:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_908_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:910:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_908_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let v0 = JsArc::new(|| 0.into()).await;
[INFO] [stdout] 4 | let v1 = JsArc::new(|| 1.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:911:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_908_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 5 | let v2 = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:912:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_908_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 6 | let v3 = JsArc::new(|| 3.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:913:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_908_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 7 | let v4 = JsArc::new(|| 4.into()).await;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:926:6
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_908_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 20 |     .await;
[INFO] [stdout]    |      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 11 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::with_self (line 755) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]  --> src/lib.rs:759:4
[INFO] [stdout]   |
[INFO] [stdout] 6 |    web_sys::console::log_1(&js_v);
[INFO] [stdout]   |    ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]  --> src/lib.rs:756:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | let js_v = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |            ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use js_arc::JsArc;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:756:36
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_755_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let js_v = JsArc::new(|| 2.into()).await;
[INFO] [stdout]   |                                    ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:757:39
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_755_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 3 | let js_v = JsArc::new(|| 2.into()).await;
[INFO] [stdout] 4 | js_v.with_self(|one| one + &5.into()).await;
[INFO] [stdout]   |                                       ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:762:2
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_755_0() {
[INFO] [stdout]   |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 9 | .await;
[INFO] [stdout]   |  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - JsArc::new_async (line 668) stdout ----
[INFO] [stdout] error: cannot find attribute `wasm_bindgen` in this scope
[INFO] [stdout]  --> src/lib.rs:669:3
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[wasm_bindgen]
[INFO] [stdout]   |   ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `wasm_bindgen` is in scope, but it is a crate, not an attribute
[INFO] [stdout] help: consider importing this attribute macro
[INFO] [stdout]   |
[INFO] [stdout] 2 + use wasm_bindgen::prelude::wasm_bindgen;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `wasm_bindgen` in this scope
[INFO] [stdout]  --> src/lib.rs:671:7
[INFO] [stdout]   |
[INFO] [stdout] 5 |     #[wasm_bindgen]
[INFO] [stdout]   |       ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `wasm_bindgen` is in scope, but it is a crate, not an attribute
[INFO] [stdout] help: consider importing this attribute macro
[INFO] [stdout]   |
[INFO] [stdout] 2 + use wasm_bindgen::prelude::wasm_bindgen;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `wasm_bindgen` in this scope
[INFO] [stdout]  --> src/lib.rs:674:7
[INFO] [stdout]   |
[INFO] [stdout] 8 |     #[wasm_bindgen(method, js_name = "helloWorld")]
[INFO] [stdout]   |       ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `wasm_bindgen` is in scope, but it is a crate, not an attribute
[INFO] [stdout] help: consider importing this attribute macro
[INFO] [stdout]   |
[INFO] [stdout] 2 + use wasm_bindgen::prelude::wasm_bindgen;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `web_sys`
[INFO] [stdout]   --> src/lib.rs:689:26
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let module_address = web_sys::Url::create_object_url_with_blob(&blob).unwrap();
[INFO] [stdout]    |                          ^^^^^^^ use of undeclared crate or module `web_sys`
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `BlobPropertyBag` in this scope
[INFO] [stdout]   --> src/lib.rs:685:23
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let mut type_set: BlobPropertyBag = BlobPropertyBag::new();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Promise` in this scope
[INFO] [stdout]   --> src/lib.rs:691:25
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let module_promise: Promise = js_sys::eval(&format!(r#"import ("{}")"#, module_address))
[INFO] [stdout]    |                         ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `js_sys`
[INFO] [stdout]   --> src/lib.rs:691:35
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let module_promise: Promise = js_sys::eval(&format!(r#"import ("{}")"#, module_address))
[INFO] [stdout]    |                                   ^^^^^^ use of undeclared crate or module `js_sys`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this crate
[INFO] [stdout]    |
[INFO] [stdout] 2  + use wasm_bindgen_futures::js_sys;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsFuture`
[INFO] [stdout]   --> src/lib.rs:695:18
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let module = JsFuture::from(module_promise).await.unwrap();
[INFO] [stdout]    |                  ^^^^^^^^ use of undeclared type `JsFuture`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 2  + use wasm_bindgen_futures::JsFuture;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsArc`
[INFO] [stdout]   --> src/lib.rs:703:14
[INFO] [stdout]    |
[INFO] [stdout] 37 | let module = JsArc::new_async(|| async { load_dynamic_hello_world().await.into() }).await;
[INFO] [stdout]    |              ^^^^^ use of undeclared type `JsArc`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 2  + use js_arc::JsArc;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0658]: extern types are experimental
[INFO] [stdout]  --> src/lib.rs:672:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     pub type HelloWorldModule;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: see issue #43467 <https://github.com/rust-lang/rust/issues/43467> for more information
[INFO] [stdout]   = help: add `#![feature(extern_types)]` to the crate attributes to enable
[INFO] [stdout]   = note: this compiler was built on 2024-05-16; consider upgrading it if it is out of date
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:703:85
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_668_0() {
[INFO] [stdout]    |                                      ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 37 | let module = JsArc::new_async(|| async { load_dynamic_hello_world().await.into() }).await;
[INFO] [stdout]    |                                                                                     ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `_doctest_main_src_lib_rs_668_0::HelloWorldModule` cannot be known at compilation time
[INFO] [stdout]   --> src/lib.rs:679:61
[INFO] [stdout]    |
[INFO] [stdout] 13 |   pub async fn load_dynamic_hello_world() -> HelloWorldModule {
[INFO] [stdout]    |  _____________________________________________________________^
[INFO] [stdout] 14 | |     let module_as_str = r#"export function helloWorld() { console.log("Hello World!"); }"#;
[INFO] [stdout] 15 | |
[INFO] [stdout] 16 | |     let from_data = Array::new();
[INFO] [stdout] ...  |
[INFO] [stdout] 34 | |     as_hello_world
[INFO] [stdout] 35 | | }
[INFO] [stdout]    | |_^ doesn't have a size known at compile-time
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Sized` is not implemented for `_doctest_main_src_lib_rs_668_0::HelloWorldModule`
[INFO] [stdout]    = note: the return type of a function must have a statically known size
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Array`
[INFO] [stdout]   --> src/lib.rs:682:21
[INFO] [stdout]    |
[INFO] [stdout] 16 |     let from_data = Array::new();
[INFO] [stdout]    |                     ^^^^^ use of undeclared type `Array`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BlobPropertyBag`
[INFO] [stdout]   --> src/lib.rs:685:41
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let mut type_set: BlobPropertyBag = BlobPropertyBag::new();
[INFO] [stdout]    |                                         ^^^^^^^^^^^^^^^ use of undeclared type `BlobPropertyBag`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Blob`
[INFO] [stdout]   --> src/lib.rs:688:16
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let blob = Blob::new_with_str_sequence_and_options(&from_data, &type_set).unwrap();
[INFO] [stdout]    |                ^^^^ use of undeclared type `Blob`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `_doctest_main_src_lib_rs_668_0::HelloWorldModule` cannot be known at compilation time
[INFO] [stdout]   --> src/lib.rs:703:42
[INFO] [stdout]    |
[INFO] [stdout] 37 | let module = JsArc::new_async(|| async { load_dynamic_hello_world().await.into() }).await;
[INFO] [stdout]    |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Sized` is not implemented for `_doctest_main_src_lib_rs_668_0::HelloWorldModule`
[INFO] [stdout]    = note: all local variables must have a statically known size
[INFO] [stdout]    = help: unsized locals are gated as an unstable feature
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `_doctest_main_src_lib_rs_668_0::HelloWorldModule` cannot be known at compilation time
[INFO] [stdout]   --> src/lib.rs:703:69
[INFO] [stdout]    |
[INFO] [stdout] 37 | let module = JsArc::new_async(|| async { load_dynamic_hello_world().await.into() }).await;
[INFO] [stdout]    |                                                                     ^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Sized` is not implemented for `_doctest_main_src_lib_rs_668_0::HelloWorldModule`
[INFO] [stdout] note: required by a bound in `std::task::Poll::Ready`
[INFO] [stdout]   --> /rustc/b642703cf9526da1e72c0b6755753b939a9c6b6d/library/core/src/task/poll.rs:16:5
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 17 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0433, E0658, E0728.
[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 110)
[INFO] [stdout]     src/lib.rs - (line 116)
[INFO] [stdout]     src/lib.rs - (line 17)
[INFO] [stdout]     src/lib.rs - (line 31)
[INFO] [stdout]     src/lib.rs - (line 54)
[INFO] [stdout]     src/lib.rs - (line 69)
[INFO] [stdout]     src/lib.rs - (line 7)
[INFO] [stdout]     src/lib.rs - (line 88)
[INFO] [stdout]     src/lib.rs - JsArc::arc (line 735)
[INFO] [stdout]     src/lib.rs - JsArc::new (line 643)
[INFO] [stdout]     src/lib.rs - JsArc::new_async (line 668)
[INFO] [stdout]     src/lib.rs - JsArc::with_many (line 908)
[INFO] [stdout]     src/lib.rs - JsArc::with_many_async (line 960)
[INFO] [stdout]     src/lib.rs - JsArc::with_other (line 814)
[INFO] [stdout]     src/lib.rs - JsArc::with_other_async (line 861)
[INFO] [stdout]     src/lib.rs - JsArc::with_self (line 743)
[INFO] [stdout]     src/lib.rs - JsArc::with_self (line 755)
[INFO] [stdout]     src/lib.rs - JsArc::with_self_async (line 782)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 18 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.54s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "4098ce9548368787b2d9d20988c9c1c89cdadcaeddbafb3b867b71e0a73ba9f6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4098ce9548368787b2d9d20988c9c1c89cdadcaeddbafb3b867b71e0a73ba9f6", kill_on_drop: false }`
[INFO] [stdout] 4098ce9548368787b2d9d20988c9c1c89cdadcaeddbafb3b867b71e0a73ba9f6
