[INFO] fetching crate jsonrpc_v2_awc 0.1.0... [INFO] testing jsonrpc_v2_awc-0.1.0 against 1.59.0 for beta-1.60-1 [INFO] extracting crate jsonrpc_v2_awc 0.1.0 into /workspace/builds/worker-11/source [INFO] validating manifest of crates.io crate jsonrpc_v2_awc 0.1.0 on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "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-11/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5a1e386916b80fffd09fa64784a52c8ef186ff606f2de00e7014de42047cbc32 [INFO] running `Command { std: "docker" "start" "-a" "5a1e386916b80fffd09fa64784a52c8ef186ff606f2de00e7014de42047cbc32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5a1e386916b80fffd09fa64784a52c8ef186ff606f2de00e7014de42047cbc32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a1e386916b80fffd09fa64784a52c8ef186ff606f2de00e7014de42047cbc32", kill_on_drop: false }` [INFO] [stdout] 5a1e386916b80fffd09fa64784a52c8ef186ff606f2de00e7014de42047cbc32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 896eb4d2d4c0094a8da79b98f0ff65bbd200de099dd0973885f44c992952e8e4 [INFO] running `Command { std: "docker" "start" "-a" "896eb4d2d4c0094a8da79b98f0ff65bbd200de099dd0973885f44c992952e8e4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.3 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling tracing v0.1.31 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling alloc-stdlib v0.2.1 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling enum-as-inner v0.3.4 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling brotli-decompressor v2.3.2 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling brotli v3.3.3 [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 idna v0.2.3 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling pin-project v0.4.29 [INFO] [stderr] Compiling actix-threadpool v0.3.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling actix-service v1.0.6 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling actix-rt v1.1.1 [INFO] [stderr] Compiling trust-dns-proto v0.19.7 [INFO] [stderr] Compiling actix-codec v0.3.0 [INFO] [stderr] Compiling h2 v0.2.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 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 24.80s [INFO] running `Command { std: "docker" "inspect" "896eb4d2d4c0094a8da79b98f0ff65bbd200de099dd0973885f44c992952e8e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "896eb4d2d4c0094a8da79b98f0ff65bbd200de099dd0973885f44c992952e8e4", kill_on_drop: false }` [INFO] [stdout] 896eb4d2d4c0094a8da79b98f0ff65bbd200de099dd0973885f44c992952e8e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6ddff1ac5003091c2a635e2be1c8688402aeabd2ddc3a095e5f277a98bc81eb3 [INFO] running `Command { std: "docker" "start" "-a" "6ddff1ac5003091c2a635e2be1c8688402aeabd2ddc3a095e5f277a98bc81eb3", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling jsonrpc_v2_awc v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.67s [INFO] running `Command { std: "docker" "inspect" "6ddff1ac5003091c2a635e2be1c8688402aeabd2ddc3a095e5f277a98bc81eb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ddff1ac5003091c2a635e2be1c8688402aeabd2ddc3a095e5f277a98bc81eb3", kill_on_drop: false }` [INFO] [stdout] 6ddff1ac5003091c2a635e2be1c8688402aeabd2ddc3a095e5f277a98bc81eb3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] cfcbc8d3bbb0ffccbae3029b40d187f9a410612277db4d070571aee867fd5d7f [INFO] running `Command { std: "docker" "start" "-a" "cfcbc8d3bbb0ffccbae3029b40d187f9a410612277db4d070571aee867fd5d7f", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/jsonrpc_v2_awc-aab87cb774f4ece0) [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 jsonrpc_v2_awc [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.15s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "cfcbc8d3bbb0ffccbae3029b40d187f9a410612277db4d070571aee867fd5d7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfcbc8d3bbb0ffccbae3029b40d187f9a410612277db4d070571aee867fd5d7f", kill_on_drop: false }` [INFO] [stdout] cfcbc8d3bbb0ffccbae3029b40d187f9a410612277db4d070571aee867fd5d7f