[INFO] fetching crate jsonrpc_v2_awc 0.1.0... [INFO] testing jsonrpc_v2_awc-0.1.0 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate jsonrpc_v2_awc 0.1.0 into /workspace/builds/worker-19/source [INFO] validating manifest of crates.io crate jsonrpc_v2_awc 0.1.0 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate jsonrpc_v2_awc 0.1.0 [INFO] finished tweaking crates.io crate jsonrpc_v2_awc 0.1.0 [INFO] tweaked toml for crates.io crate jsonrpc_v2_awc 0.1.0 written to /workspace/builds/worker-19/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-19/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-19/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cf859e39d6e603bfa8561cc79264a070b89ecb2b6f3e284bdaf85ec673523671 [INFO] running `Command { std: "docker" "start" "-a" "cf859e39d6e603bfa8561cc79264a070b89ecb2b6f3e284bdaf85ec673523671", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cf859e39d6e603bfa8561cc79264a070b89ecb2b6f3e284bdaf85ec673523671", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf859e39d6e603bfa8561cc79264a070b89ecb2b6f3e284bdaf85ec673523671", kill_on_drop: false }` [INFO] [stdout] cf859e39d6e603bfa8561cc79264a070b89ecb2b6f3e284bdaf85ec673523671 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-19/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-19/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2bf352960408f8cebf1e679588f50610e4f9c9e85b2a9a3808faf2d005ace2cb [INFO] running `Command { std: "docker" "start" "-a" "2bf352960408f8cebf1e679588f50610e4f9c9e85b2a9a3808faf2d005ace2cb", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.3 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling httparse v1.7.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling tracing-core v0.1.25 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling miniz_oxide v0.5.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling alloc-stdlib v0.2.1 [INFO] [stderr] Compiling brotli-decompressor v2.3.2 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling tracing v0.1.33 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling flate2 v1.0.23 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling brotli v3.3.4 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling enum-as-inner v0.3.4 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling async-trait v0.1.53 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling pin-project v0.4.29 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling actix-codec v0.3.0 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling actix-threadpool v0.3.3 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling actix-service v1.0.6 [INFO] [stderr] Compiling actix-rt v1.1.1 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling trust-dns-proto v0.19.7 [INFO] [stderr] Compiling actix-utils v2.0.0 [INFO] [stderr] Compiling trust-dns-resolver v0.19.7 [INFO] [stderr] Compiling actix-connect v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling actix-http v2.2.2 [INFO] [stderr] Compiling awc v2.0.3 [INFO] [stderr] Compiling jsonrpc_v2_awc v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 23.97s [INFO] running `Command { std: "docker" "inspect" "2bf352960408f8cebf1e679588f50610e4f9c9e85b2a9a3808faf2d005ace2cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2bf352960408f8cebf1e679588f50610e4f9c9e85b2a9a3808faf2d005ace2cb", kill_on_drop: false }` [INFO] [stdout] 2bf352960408f8cebf1e679588f50610e4f9c9e85b2a9a3808faf2d005ace2cb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-19/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-19/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2241a3cdc1e00d965508b7e395eca174434c04a78f5d54480adce2a1330a852 [INFO] running `Command { std: "docker" "start" "-a" "c2241a3cdc1e00d965508b7e395eca174434c04a78f5d54480adce2a1330a852", kill_on_drop: false }` [INFO] [stderr] Compiling jsonrpc_v2_awc v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.92s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/jsonrpc_v2_awc-d7479e6ed6488d6f) [INFO] running `Command { std: "docker" "inspect" "c2241a3cdc1e00d965508b7e395eca174434c04a78f5d54480adce2a1330a852", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2241a3cdc1e00d965508b7e395eca174434c04a78f5d54480adce2a1330a852", kill_on_drop: false }` [INFO] [stdout] c2241a3cdc1e00d965508b7e395eca174434c04a78f5d54480adce2a1330a852 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-19/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-19/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2a98b801e9217ad3791809faaf96e0a826d0af72fb593938e4ecebd09a137476 [INFO] running `Command { std: "docker" "start" "-a" "2a98b801e9217ad3791809faaf96e0a826d0af72fb593938e4ecebd09a137476", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/jsonrpc_v2_awc-d7479e6ed6488d6f) [INFO] [stderr] Doc-tests jsonrpc_v2_awc [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 1 test [INFO] [stdout] test src/lib.rs - (line 7) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 7) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() { [INFO] [stdout] | ---------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 10 | .body() [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:12:43 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() { [INFO] [stdout] | ---------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | .send("http://localhost:8082/api") [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 9 | | .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:24:16 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() { [INFO] [stdout] | ---------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 20 | .body() [INFO] [stdout] | ________________^ [INFO] [stdout] 21 | | .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:22:43 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() { [INFO] [stdout] | ---------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 18 | .send("http://localhost:8082/api") [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 19 | | .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:34:16 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() { [INFO] [stdout] | ---------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 30 | .body() [INFO] [stdout] | ________________^ [INFO] [stdout] 31 | | .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:32:94 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() { [INFO] [stdout] | ---------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 28 | .send_with_api_key("http://localhost:8082/api", "API_KEY", "ds09ds9d-0d9s0d.xxx.yyy") [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 29 | | .await? [INFO] [stdout] | |______________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 5 | | println!( [INFO] [stdout] 6 | | "2 + 3 = {:?}", [INFO] [stdout] 7 | | jsonrpc_v2_awc::Request::new("mul", jsonrpc_v2_awc::Params([2, 3]), 0) [INFO] [stdout] 8 | | .send("http://localhost:8082/api") [INFO] [stdout] 9 | | .await? [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 32 | | ); [INFO] [stdout] 33 | | } _doctest_main_src_lib_rs_7_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 5 | | println!( [INFO] [stdout] 6 | | "2 + 3 = {:?}", [INFO] [stdout] 7 | | jsonrpc_v2_awc::Request::new("mul", jsonrpc_v2_awc::Params([2, 3]), 0) [INFO] [stdout] ... | [INFO] [stdout] 11 | | .await? [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 32 | | ); [INFO] [stdout] 33 | | } _doctest_main_src_lib_rs_7_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 5 | | println!( [INFO] [stdout] 6 | | "2 + 3 = {:?}", [INFO] [stdout] 7 | | jsonrpc_v2_awc::Request::new("mul", jsonrpc_v2_awc::Params([2, 3]), 0) [INFO] [stdout] ... | [INFO] [stdout] 19 | | .await? [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 32 | | ); [INFO] [stdout] 33 | | } _doctest_main_src_lib_rs_7_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 5 | | println!( [INFO] [stdout] 6 | | "2 + 3 = {:?}", [INFO] [stdout] 7 | | jsonrpc_v2_awc::Request::new("mul", jsonrpc_v2_awc::Params([2, 3]), 0) [INFO] [stdout] ... | [INFO] [stdout] 21 | | .await? [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 32 | | ); [INFO] [stdout] 33 | | } _doctest_main_src_lib_rs_7_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:33:15 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 5 | | println!( [INFO] [stdout] 6 | | "2 + 3 = {:?}", [INFO] [stdout] 7 | | jsonrpc_v2_awc::Request::new("mul", jsonrpc_v2_awc::Params([2, 3]), 0) [INFO] [stdout] ... | [INFO] [stdout] 29 | | .await? [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 32 | | ); [INFO] [stdout] 33 | | } _doctest_main_src_lib_rs_7_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 5 | | println!( [INFO] [stdout] 6 | | "2 + 3 = {:?}", [INFO] [stdout] 7 | | jsonrpc_v2_awc::Request::new("mul", jsonrpc_v2_awc::Params([2, 3]), 0) [INFO] [stdout] ... | [INFO] [stdout] 31 | | .await? [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 32 | | ); [INFO] [stdout] 33 | | } _doctest_main_src_lib_rs_7_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:11:41 [INFO] [stdout] | [INFO] [stdout] 7 | jsonrpc_v2_awc::Request::new("mul", jsonrpc_v2_awc::Params([2, 3]), 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `{integer}: serde::ser::Serialize` found in the `serde` crate: [INFO] [stdout] - impl serde::ser::Serialize for i128; [INFO] [stdout] - impl serde::ser::Serialize for i16; [INFO] [stdout] - impl serde::ser::Serialize for i32; [INFO] [stdout] - impl serde::ser::Serialize for i64; [INFO] [stdout] and 8 more [INFO] [stdout] = note: required because of the requirements on the impl of `serde::ser::Serialize` for `[{integer}; 2]` [INFO] [stdout] note: required by a bound in `Params` [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:44:22 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Params(pub T); [INFO] [stdout] | ^^^^^^^^^ required by this bound in `Params` [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0283, 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 7) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.16s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "2a98b801e9217ad3791809faaf96e0a826d0af72fb593938e4ecebd09a137476", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a98b801e9217ad3791809faaf96e0a826d0af72fb593938e4ecebd09a137476", kill_on_drop: false }` [INFO] [stdout] 2a98b801e9217ad3791809faaf96e0a826d0af72fb593938e4ecebd09a137476