[INFO] fetching crate http-typed 0.4.0...
[INFO] testing http-typed-0.4.0 against 1.75.0 for beta-1.76-1
[INFO] extracting crate http-typed 0.4.0 into /workspace/builds/worker-4-tc1/source
[INFO] validating manifest of crates.io crate http-typed 0.4.0 on toolchain 1.75.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate http-typed 0.4.0
[INFO] finished tweaking crates.io crate http-typed 0.4.0
[INFO] tweaked toml for crates.io crate http-typed 0.4.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 2d640853cb3a0819a4b7943a2bd9bd96f856ba446db29846b050245153b8dfc6
[INFO] running `Command { std: "docker" "start" "-a" "2d640853cb3a0819a4b7943a2bd9bd96f856ba446db29846b050245153b8dfc6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2d640853cb3a0819a4b7943a2bd9bd96f856ba446db29846b050245153b8dfc6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2d640853cb3a0819a4b7943a2bd9bd96f856ba446db29846b050245153b8dfc6", kill_on_drop: false }`
[INFO] [stdout] 2d640853cb3a0819a4b7943a2bd9bd96f856ba446db29846b050245153b8dfc6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] e42f3590aeb1e596c3165d8e263d3b283550d188dd3a1ffd4dee9fc6e385c2f5
[INFO] running `Command { std: "docker" "start" "-a" "e42f3590aeb1e596c3165d8e263d3b283550d188dd3a1ffd4dee9fc6e385c2f5", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.151
[INFO] [stderr]    Compiling openssl v0.10.62
[INFO] [stderr]    Compiling tokio v1.35.1
[INFO] [stderr]    Compiling syn v2.0.48
[INFO] [stderr]    Compiling futures-task v0.3.30
[INFO] [stderr]    Compiling futures-channel v0.3.30
[INFO] [stderr]    Compiling paste v1.0.14
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling futures-util v0.3.30
[INFO] [stderr]    Compiling encoding_rs v0.8.33
[INFO] [stderr]    Compiling ipnet v2.9.0
[INFO] [stderr]    Compiling cc v1.0.83
[INFO] [stderr]    Compiling openssl-sys v0.9.98
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling thiserror-impl v1.0.56
[INFO] [stderr]    Compiling tokio-util v0.7.10
[INFO] [stderr]    Compiling h2 v0.3.22
[INFO] [stderr]    Compiling thiserror v1.0.56
[INFO] [stderr]    Compiling hyper v0.14.28
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.23
[INFO] [stderr]    Compiling http-typed v0.4.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 17.71s
[INFO] running `Command { std: "docker" "inspect" "e42f3590aeb1e596c3165d8e263d3b283550d188dd3a1ffd4dee9fc6e385c2f5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e42f3590aeb1e596c3165d8e263d3b283550d188dd3a1ffd4dee9fc6e385c2f5", kill_on_drop: false }`
[INFO] [stdout] e42f3590aeb1e596c3165d8e263d3b283550d188dd3a1ffd4dee9fc6e385c2f5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 801732b71e636fef4c41226bd742e008541864520326f4e01a7a17649a7ea0de
[INFO] running `Command { std: "docker" "start" "-a" "801732b71e636fef4c41226bd742e008541864520326f4e01a7a17649a7ea0de", kill_on_drop: false }`
[INFO] [stderr]    Compiling http-typed v0.4.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.85s
[INFO] running `Command { std: "docker" "inspect" "801732b71e636fef4c41226bd742e008541864520326f4e01a7a17649a7ea0de", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "801732b71e636fef4c41226bd742e008541864520326f4e01a7a17649a7ea0de", kill_on_drop: false }`
[INFO] [stdout] 801732b71e636fef4c41226bd742e008541864520326f4e01a7a17649a7ea0de
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] ed0645e3850fe9d452de5c2515c39669fe27fd7f2f7079b638547b724b40f7a3
[INFO] running `Command { std: "docker" "start" "-a" "ed0645e3850fe9d452de5c2515c39669fe27fd7f2f7079b638547b724b40f7a3", kill_on_drop: false }`
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.09s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/http_typed-abdd7a31d9926ac9)
[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 http-typed
[INFO] [stdout] 
[INFO] [stdout] running 11 tests
[INFO] [stdout] test src/lib.rs - (line 115) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 104) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 129) ... FAILED
[INFO] [stdout] test src/lib.rs - request_group (line 295) ... ignored
[INFO] [stdout] test src/lib.rs - (line 30) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 118) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 138) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 40) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 56) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 73) ... FAILED
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] [stdout] test src/lib.rs - (line 94) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 115) stdout ----
[INFO] [stdout] error: cannot find macro `request_group` in this scope
[INFO] [stdout]  --> src/lib.rs:116:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | request_group!(MyApi { MyRequest1, MyRequest2 });
[INFO] [stdout]   | ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::request_group;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 104) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client`
[INFO] [stdout]  --> src/lib.rs:105:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | let client = Client::new("http://example.com");
[INFO] [stdout]   |              ^^^^^^ use of undeclared type `Client`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::Client;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use reqwest::Client;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:106:49
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_104_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] 3 | let client = Client::new("http://example.com");
[INFO] [stdout] 4 | let my_response = client.send(MyRequest::new()).await?;
[INFO] [stdout]   |                                                 ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyRequest`
[INFO] [stdout]  --> src/lib.rs:106:31
[INFO] [stdout]   |
[INFO] [stdout] 4 | let my_response = client.send(MyRequest::new()).await?;
[INFO] [stdout]   |                               ^^^^^^^^^ use of undeclared type `MyRequest`
[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:106:54
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_104_0() {
[INFO] [stdout]   |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] 3 | let client = Client::new("http://example.com");
[INFO] [stdout] 4 | let my_response = client.send(MyRequest::new()).await?;
[INFO] [stdout]   |                                                      ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0433, 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 - (line 129) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client`
[INFO] [stdout]  --> src/lib.rs:130:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_client = Client::<MyApi>::default();
[INFO] [stdout]   |                 ^^^^^^ use of undeclared type `Client`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::Client;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use reqwest::Client;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MyApi` in this scope
[INFO] [stdout]  --> src/lib.rs:130:26
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_client = Client::<MyApi>::default();
[INFO] [stdout]   |                          ^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_129_0<MyApi>() {
[INFO] [stdout]   |                                                                       +++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:131:79
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_129_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] 3 | let my_client = Client::<MyApi>::default();
[INFO] [stdout] 4 | let my_response2 = my_client.send_to("http://example.com", MyRequest2::new()).await?; // works
[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:132:83
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_129_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 5 | let other_response = my_client.send_to("http://example.com", OtherRequest::new()).await?; // does not compile
[INFO] [stdout]   |                                                                                   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyRequest2`
[INFO] [stdout]  --> src/lib.rs:131:60
[INFO] [stdout]   |
[INFO] [stdout] 4 | let my_response2 = my_client.send_to("http://example.com", MyRequest2::new()).await?; // works
[INFO] [stdout]   |                                                            ^^^^^^^^^^ use of undeclared type `MyRequest2`
[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:131:84
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_129_0() {
[INFO] [stdout]   |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] 3 | let my_client = Client::<MyApi>::default();
[INFO] [stdout] 4 | let my_response2 = my_client.send_to("http://example.com", MyRequest2::new()).await?; // works
[INFO] [stdout]   |                                                                                    ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OtherRequest`
[INFO] [stdout]  --> src/lib.rs:132:62
[INFO] [stdout]   |
[INFO] [stdout] 5 | let other_response = my_client.send_to("http://example.com", OtherRequest::new()).await?; // does not compile
[INFO] [stdout]   |                                                              ^^^^^^^^^^^^ use of undeclared type `OtherRequest`
[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:132:88
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_129_0() {
[INFO] [stdout]   |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 5 | let other_response = my_client.send_to("http://example.com", OtherRequest::new()).await?; // does not compile
[INFO] [stdout]   |                                                                                        ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0433, 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 - (line 30) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client`
[INFO] [stdout]  --> src/lib.rs:31:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | let client = Client::new("http://example.com");
[INFO] [stdout]   |              ^^^^^^ use of undeclared type `Client`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::Client;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use reqwest::Client;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:32:46
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_30_0() {
[INFO] [stdout]   |                                         ----------------------------- this is not `async`
[INFO] [stdout] 3 | let client = Client::new("http://example.com");
[INFO] [stdout] 4 | let response = client.send(MyRequest::new()).await?;
[INFO] [stdout]   |                                              ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyRequest`
[INFO] [stdout]  --> src/lib.rs:32:28
[INFO] [stdout]   |
[INFO] [stdout] 4 | let response = client.send(MyRequest::new()).await?;
[INFO] [stdout]   |                            ^^^^^^^^^ use of undeclared type `MyRequest`
[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:32:51
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_30_0() {
[INFO] [stdout]   |                                      ---------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] 3 | let client = Client::new("http://example.com");
[INFO] [stdout] 4 | let response = client.send(MyRequest::new()).await?;
[INFO] [stdout]   |                                                   ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0433, 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 - (line 118) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client`
[INFO] [stdout]  --> src/lib.rs:119:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_client = Client::<MyApi>::new("http://example.com");
[INFO] [stdout]   |                 ^^^^^^ use of undeclared type `Client`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::Client;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use reqwest::Client;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MyApi` in this scope
[INFO] [stdout]  --> src/lib.rs:119:26
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_client = Client::<MyApi>::new("http://example.com");
[INFO] [stdout]   |                          ^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_118_0<MyApi>() {
[INFO] [stdout]   |                                                                       +++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:120:54
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_118_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] 3 | let my_client = Client::<MyApi>::new("http://example.com");
[INFO] [stdout] 4 | let my_response1 = my_client.send(MyRequest1::new()).await?; // works
[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:121:58
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_118_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 5 | let other_response = my_client.send(OtherRequest::new()).await?; // does not compile
[INFO] [stdout]   |                                                          ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyRequest1`
[INFO] [stdout]  --> src/lib.rs:120:35
[INFO] [stdout]   |
[INFO] [stdout] 4 | let my_response1 = my_client.send(MyRequest1::new()).await?; // works
[INFO] [stdout]   |                                   ^^^^^^^^^^ use of undeclared type `MyRequest1`
[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:120:59
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_118_0() {
[INFO] [stdout]   |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] 3 | let my_client = Client::<MyApi>::new("http://example.com");
[INFO] [stdout] 4 | let my_response1 = my_client.send(MyRequest1::new()).await?; // works
[INFO] [stdout]   |                                                           ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OtherRequest`
[INFO] [stdout]  --> src/lib.rs:121:37
[INFO] [stdout]   |
[INFO] [stdout] 5 | let other_response = my_client.send(OtherRequest::new()).await?; // does not compile
[INFO] [stdout]   |                                     ^^^^^^^^^^^^ use of undeclared type `OtherRequest`
[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:121:63
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_118_0() {
[INFO] [stdout]   |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 5 | let other_response = my_client.send(OtherRequest::new()).await?; // does not compile
[INFO] [stdout]   |                                                               ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0433, 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 - (line 138) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client`
[INFO] [stdout]  --> src/lib.rs:139:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_client = Client::new("http://example.com");
[INFO] [stdout]   |                 ^^^^^^ use of undeclared type `Client`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::Client;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use reqwest::Client;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:140:66
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_138_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] 3 | let my_client = Client::new("http://example.com");
[INFO] [stdout] 4 | let my_response = my_client.send_to("/api/v2", MyRequest::new()).await?;
[INFO] [stdout]   |                                                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyRequest`
[INFO] [stdout]  --> src/lib.rs:140:48
[INFO] [stdout]   |
[INFO] [stdout] 4 | let my_response = my_client.send_to("/api/v2", MyRequest::new()).await?;
[INFO] [stdout]   |                                                ^^^^^^^^^ use of undeclared type `MyRequest`
[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:140:71
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_138_0() {
[INFO] [stdout]   |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] 3 | let my_client = Client::new("http://example.com");
[INFO] [stdout] 4 | let my_response = my_client.send_to("/api/v2", MyRequest::new()).await?;
[INFO] [stdout]   |                                                                       ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0433, 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 - (line 40) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `MyResponse` in this scope
[INFO] [stdout]  --> src/lib.rs:41:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_response: MyResponse = send_custom(
[INFO] [stdout]   |                  ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `send_custom` in this scope
[INFO] [stdout]  --> src/lib.rs:41:31
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_response: MyResponse = send_custom(
[INFO] [stdout]   |                               ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::send_custom;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpMethod`
[INFO] [stdout]  --> src/lib.rs:43:5
[INFO] [stdout]   |
[INFO] [stdout] 5 |     HttpMethod::Get,
[INFO] [stdout]   |     ^^^^^^^^^^ use of undeclared type `HttpMethod`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::HttpMethod;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:46:2
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_40_0() {
[INFO] [stdout]   |                                         ----------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 | .await?;
[INFO] [stdout]   |  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyRequest`
[INFO] [stdout]  --> src/lib.rs:44:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     MyRequest::new()
[INFO] [stdout]   |     ^^^^^^^^^ use of undeclared type `MyRequest`
[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:46:7
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_40_0() {
[INFO] [stdout]   |                                      ---------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 8 | .await?;
[INFO] [stdout]   |       ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425, E0433, 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 - (line 56) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client`
[INFO] [stdout]  --> src/lib.rs:57:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | let client = Client::default();
[INFO] [stdout]   |              ^^^^^^ use of undeclared type `Client`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::Client;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use reqwest::Client;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MyResponse` in this scope
[INFO] [stdout]  --> src/lib.rs:58:18
[INFO] [stdout]   |
[INFO] [stdout] 4 | let my_response: MyResponse = client.send_custom(
[INFO] [stdout]   |                  ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpMethod`
[INFO] [stdout]  --> src/lib.rs:60:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     HttpMethod::Get,
[INFO] [stdout]   |     ^^^^^^^^^^ use of undeclared type `HttpMethod`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::HttpMethod;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:63:2
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_56_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[E0433]: failed to resolve: use of undeclared type `MyRequest`
[INFO] [stdout]  --> src/lib.rs:61:5
[INFO] [stdout]   |
[INFO] [stdout] 7 |     MyRequest::new()
[INFO] [stdout]   |     ^^^^^^^^^ use of undeclared type `MyRequest`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]  --> src/lib.rs:63:7
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_56_0() {
[INFO] [stdout]   |                                      ---------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 9 | .await?;
[INFO] [stdout]   |       ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0433, 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 - (line 73) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `HttpMethod` in this scope
[INFO] [stdout]  --> src/lib.rs:76:25
[INFO] [stdout]   |
[INFO] [stdout] 5 |     fn method(&self) -> HttpMethod;
[INFO] [stdout]   |                         ^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::HttpMethod;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 94) stdout ----
[INFO] [stdout] error[E0425]: cannot find function `send` in this scope
[INFO] [stdout]  --> src/lib.rs:95:19
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_response = send("http://example.com", MyRequest::new()).await?;
[INFO] [stdout]   |                   ^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::send;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:95:64
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_94_0() {
[INFO] [stdout]   |                                         ----------------------------- this is not `async`
[INFO] [stdout] 3 | let my_response = send("http://example.com", MyRequest::new()).await?;
[INFO] [stdout]   |                                                                ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyRequest`
[INFO] [stdout]  --> src/lib.rs:95:46
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_response = send("http://example.com", MyRequest::new()).await?;
[INFO] [stdout]   |                                              ^^^^^^^^^ use of undeclared type `MyRequest`
[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:95:69
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_94_0() {
[INFO] [stdout]   |                                      ---------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] 3 | let my_response = send("http://example.com", MyRequest::new()).await?;
[INFO] [stdout]   |                                                                     ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433, 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 104)
[INFO] [stdout]     src/lib.rs - (line 115)
[INFO] [stdout]     src/lib.rs - (line 118)
[INFO] [stdout]     src/lib.rs - (line 129)
[INFO] [stdout]     src/lib.rs - (line 138)
[INFO] [stdout]     src/lib.rs - (line 30)
[INFO] [stdout]     src/lib.rs - (line 40)
[INFO] [stdout]     src/lib.rs - (line 56)
[INFO] [stdout]     src/lib.rs - (line 73)
[INFO] [stdout]     src/lib.rs - (line 94)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 10 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.50s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "ed0645e3850fe9d452de5c2515c39669fe27fd7f2f7079b638547b724b40f7a3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ed0645e3850fe9d452de5c2515c39669fe27fd7f2f7079b638547b724b40f7a3", kill_on_drop: false }`
[INFO] [stdout] ed0645e3850fe9d452de5c2515c39669fe27fd7f2f7079b638547b724b40f7a3
[INFO] testing http-typed-0.4.0 against beta-2023-12-22 for beta-1.76-1
[INFO] extracting crate http-typed 0.4.0 into /workspace/builds/worker-4-tc2/source
[INFO] validating manifest of crates.io crate http-typed 0.4.0 on toolchain beta-2023-12-22
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-12-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate http-typed 0.4.0
[INFO] finished tweaking crates.io crate http-typed 0.4.0
[INFO] tweaked toml for crates.io crate http-typed 0.4.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-12-22" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-12-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-12-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 842ffddf653a7e85d5a456863afb224f3797a301aa986d7119160e04c6ab8543
[INFO] running `Command { std: "docker" "start" "-a" "842ffddf653a7e85d5a456863afb224f3797a301aa986d7119160e04c6ab8543", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "842ffddf653a7e85d5a456863afb224f3797a301aa986d7119160e04c6ab8543", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "842ffddf653a7e85d5a456863afb224f3797a301aa986d7119160e04c6ab8543", kill_on_drop: false }`
[INFO] [stdout] 842ffddf653a7e85d5a456863afb224f3797a301aa986d7119160e04c6ab8543
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-12-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 807ff72cc5ddd5b502e4b7c7a81c0d9208d77c2a6b5849e5a48f94ebd4272f8e
[INFO] running `Command { std: "docker" "start" "-a" "807ff72cc5ddd5b502e4b7c7a81c0d9208d77c2a6b5849e5a48f94ebd4272f8e", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.151
[INFO] [stderr]    Compiling tokio v1.35.1
[INFO] [stderr]    Compiling openssl v0.10.62
[INFO] [stderr]    Compiling syn v2.0.48
[INFO] [stderr]    Compiling futures-task v0.3.30
[INFO] [stderr]    Compiling futures-channel v0.3.30
[INFO] [stderr]    Compiling paste v1.0.14
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling futures-util v0.3.30
[INFO] [stderr]    Compiling encoding_rs v0.8.33
[INFO] [stderr]    Compiling ipnet v2.9.0
[INFO] [stderr]    Compiling cc v1.0.83
[INFO] [stderr]    Compiling openssl-sys v0.9.98
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]    Compiling tokio-util v0.7.10
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling thiserror-impl v1.0.56
[INFO] [stderr]    Compiling h2 v0.3.22
[INFO] [stderr]    Compiling thiserror v1.0.56
[INFO] [stderr]    Compiling hyper v0.14.28
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.23
[INFO] [stderr]    Compiling http-typed v0.4.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 25.97s
[INFO] running `Command { std: "docker" "inspect" "807ff72cc5ddd5b502e4b7c7a81c0d9208d77c2a6b5849e5a48f94ebd4272f8e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "807ff72cc5ddd5b502e4b7c7a81c0d9208d77c2a6b5849e5a48f94ebd4272f8e", kill_on_drop: false }`
[INFO] [stdout] 807ff72cc5ddd5b502e4b7c7a81c0d9208d77c2a6b5849e5a48f94ebd4272f8e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-12-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6f2e72f2f822f92f62bbdf6520b1179992320ab5d74480ff96785406b93dddb7
[INFO] running `Command { std: "docker" "start" "-a" "6f2e72f2f822f92f62bbdf6520b1179992320ab5d74480ff96785406b93dddb7", kill_on_drop: false }`
[INFO] [stderr]    Compiling http-typed v0.4.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.81s
[INFO] running `Command { std: "docker" "inspect" "6f2e72f2f822f92f62bbdf6520b1179992320ab5d74480ff96785406b93dddb7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6f2e72f2f822f92f62bbdf6520b1179992320ab5d74480ff96785406b93dddb7", kill_on_drop: false }`
[INFO] [stdout] 6f2e72f2f822f92f62bbdf6520b1179992320ab5d74480ff96785406b93dddb7
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-12-22" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] dd25da0dc081dca8e6cf817c252a5ec4c77ea654b73ecf7f2ea296e51bbcf700
[INFO] running `Command { std: "docker" "start" "-a" "dd25da0dc081dca8e6cf817c252a5ec4c77ea654b73ecf7f2ea296e51bbcf700", kill_on_drop: false }`
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.10s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/http_typed-71c4dc45191c9cf3)
[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 http-typed
[INFO] [stdout] 
[INFO] [stdout] running 11 tests
[INFO] [stdout] test src/lib.rs - (line 104) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 129) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 40) ... FAILED
[INFO] [stdout] test src/lib.rs - request_group (line 295) ... ignored
[INFO] [stdout] test src/lib.rs - (line 115) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 30) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 138) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 56) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 118) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 73) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 94) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 104) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client`
[INFO] [stdout]  --> src/lib.rs:105:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | let client = Client::new("http://example.com");
[INFO] [stdout]   |              ^^^^^^ use of undeclared type `Client`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::Client;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use reqwest::Client;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:106:49
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_104_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] 3 | let client = Client::new("http://example.com");
[INFO] [stdout] 4 | let my_response = client.send(MyRequest::new()).await?;
[INFO] [stdout]   |                                                 ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyRequest`
[INFO] [stdout]  --> src/lib.rs:106:31
[INFO] [stdout]   |
[INFO] [stdout] 4 | let my_response = client.send(MyRequest::new()).await?;
[INFO] [stdout]   |                               ^^^^^^^^^ use of undeclared type `MyRequest`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 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 129) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client`
[INFO] [stdout]  --> src/lib.rs:130:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_client = Client::<MyApi>::default();
[INFO] [stdout]   |                 ^^^^^^ use of undeclared type `Client`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::Client;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use reqwest::Client;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MyApi` in this scope
[INFO] [stdout]  --> src/lib.rs:130:26
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_client = Client::<MyApi>::default();
[INFO] [stdout]   |                          ^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_129_0<MyApi>() {
[INFO] [stdout]   |                                                                       +++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:131:79
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_129_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] 3 | let my_client = Client::<MyApi>::default();
[INFO] [stdout] 4 | let my_response2 = my_client.send_to("http://example.com", MyRequest2::new()).await?; // works
[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:132:83
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_129_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 5 | let other_response = my_client.send_to("http://example.com", OtherRequest::new()).await?; // does not compile
[INFO] [stdout]   |                                                                                   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyRequest2`
[INFO] [stdout]  --> src/lib.rs:131:60
[INFO] [stdout]   |
[INFO] [stdout] 4 | let my_response2 = my_client.send_to("http://example.com", MyRequest2::new()).await?; // works
[INFO] [stdout]   |                                                            ^^^^^^^^^^ use of undeclared type `MyRequest2`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OtherRequest`
[INFO] [stdout]  --> src/lib.rs:132:62
[INFO] [stdout]   |
[INFO] [stdout] 5 | let other_response = my_client.send_to("http://example.com", OtherRequest::new()).await?; // does not compile
[INFO] [stdout]   |                                                              ^^^^^^^^^^^^ use of undeclared type `OtherRequest`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 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 40) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `MyResponse` in this scope
[INFO] [stdout]  --> src/lib.rs:41:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_response: MyResponse = send_custom(
[INFO] [stdout]   |                  ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `send_custom` in this scope
[INFO] [stdout]  --> src/lib.rs:41:31
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_response: MyResponse = send_custom(
[INFO] [stdout]   |                               ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::send_custom;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpMethod`
[INFO] [stdout]  --> src/lib.rs:43:5
[INFO] [stdout]   |
[INFO] [stdout] 5 |     HttpMethod::Get,
[INFO] [stdout]   |     ^^^^^^^^^^ use of undeclared type `HttpMethod`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::HttpMethod;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:46:2
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_40_0() {
[INFO] [stdout]   |                                         ----------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 | .await?;
[INFO] [stdout]   |  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyRequest`
[INFO] [stdout]  --> src/lib.rs:44:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     MyRequest::new()
[INFO] [stdout]   |     ^^^^^^^^^ use of undeclared type `MyRequest`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 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 115) stdout ----
[INFO] [stdout] error: cannot find macro `request_group` in this scope
[INFO] [stdout]  --> src/lib.rs:116:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | request_group!(MyApi { MyRequest1, MyRequest2 });
[INFO] [stdout]   | ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::request_group;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 30) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client`
[INFO] [stdout]  --> src/lib.rs:31:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | let client = Client::new("http://example.com");
[INFO] [stdout]   |              ^^^^^^ use of undeclared type `Client`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::Client;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use reqwest::Client;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:32:46
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_30_0() {
[INFO] [stdout]   |                                         ----------------------------- this is not `async`
[INFO] [stdout] 3 | let client = Client::new("http://example.com");
[INFO] [stdout] 4 | let response = client.send(MyRequest::new()).await?;
[INFO] [stdout]   |                                              ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyRequest`
[INFO] [stdout]  --> src/lib.rs:32:28
[INFO] [stdout]   |
[INFO] [stdout] 4 | let response = client.send(MyRequest::new()).await?;
[INFO] [stdout]   |                            ^^^^^^^^^ use of undeclared type `MyRequest`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 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 138) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client`
[INFO] [stdout]  --> src/lib.rs:139:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_client = Client::new("http://example.com");
[INFO] [stdout]   |                 ^^^^^^ use of undeclared type `Client`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::Client;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use reqwest::Client;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:140:66
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_138_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] 3 | let my_client = Client::new("http://example.com");
[INFO] [stdout] 4 | let my_response = my_client.send_to("/api/v2", MyRequest::new()).await?;
[INFO] [stdout]   |                                                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyRequest`
[INFO] [stdout]  --> src/lib.rs:140:48
[INFO] [stdout]   |
[INFO] [stdout] 4 | let my_response = my_client.send_to("/api/v2", MyRequest::new()).await?;
[INFO] [stdout]   |                                                ^^^^^^^^^ use of undeclared type `MyRequest`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 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 56) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client`
[INFO] [stdout]  --> src/lib.rs:57:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | let client = Client::default();
[INFO] [stdout]   |              ^^^^^^ use of undeclared type `Client`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::Client;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use reqwest::Client;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MyResponse` in this scope
[INFO] [stdout]  --> src/lib.rs:58:18
[INFO] [stdout]   |
[INFO] [stdout] 4 | let my_response: MyResponse = client.send_custom(
[INFO] [stdout]   |                  ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpMethod`
[INFO] [stdout]  --> src/lib.rs:60:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     HttpMethod::Get,
[INFO] [stdout]   |     ^^^^^^^^^^ use of undeclared type `HttpMethod`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::HttpMethod;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:63:2
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_56_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[E0433]: failed to resolve: use of undeclared type `MyRequest`
[INFO] [stdout]  --> src/lib.rs:61:5
[INFO] [stdout]   |
[INFO] [stdout] 7 |     MyRequest::new()
[INFO] [stdout]   |     ^^^^^^^^^ use of undeclared type `MyRequest`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 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 118) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client`
[INFO] [stdout]  --> src/lib.rs:119:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_client = Client::<MyApi>::new("http://example.com");
[INFO] [stdout]   |                 ^^^^^^ use of undeclared type `Client`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::Client;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use reqwest::Client;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MyApi` in this scope
[INFO] [stdout]  --> src/lib.rs:119:26
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_client = Client::<MyApi>::new("http://example.com");
[INFO] [stdout]   |                          ^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_118_0<MyApi>() {
[INFO] [stdout]   |                                                                       +++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:120:54
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_118_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] 3 | let my_client = Client::<MyApi>::new("http://example.com");
[INFO] [stdout] 4 | let my_response1 = my_client.send(MyRequest1::new()).await?; // works
[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:121:58
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_118_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 5 | let other_response = my_client.send(OtherRequest::new()).await?; // does not compile
[INFO] [stdout]   |                                                          ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyRequest1`
[INFO] [stdout]  --> src/lib.rs:120:35
[INFO] [stdout]   |
[INFO] [stdout] 4 | let my_response1 = my_client.send(MyRequest1::new()).await?; // works
[INFO] [stdout]   |                                   ^^^^^^^^^^ use of undeclared type `MyRequest1`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OtherRequest`
[INFO] [stdout]  --> src/lib.rs:121:37
[INFO] [stdout]   |
[INFO] [stdout] 5 | let other_response = my_client.send(OtherRequest::new()).await?; // does not compile
[INFO] [stdout]   |                                     ^^^^^^^^^^^^ use of undeclared type `OtherRequest`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 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 73) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `HttpMethod` in this scope
[INFO] [stdout]  --> src/lib.rs:76:25
[INFO] [stdout]   |
[INFO] [stdout] 5 |     fn method(&self) -> HttpMethod;
[INFO] [stdout]   |                         ^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::HttpMethod;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 94) stdout ----
[INFO] [stdout] error[E0425]: cannot find function `send` in this scope
[INFO] [stdout]  --> src/lib.rs:95:19
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_response = send("http://example.com", MyRequest::new()).await?;
[INFO] [stdout]   |                   ^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]   |
[INFO] [stdout] 2 + use http_typed::send;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:95:64
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_94_0() {
[INFO] [stdout]   |                                         ----------------------------- this is not `async`
[INFO] [stdout] 3 | let my_response = send("http://example.com", MyRequest::new()).await?;
[INFO] [stdout]   |                                                                ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MyRequest`
[INFO] [stdout]  --> src/lib.rs:95:46
[INFO] [stdout]   |
[INFO] [stdout] 3 | let my_response = send("http://example.com", MyRequest::new()).await?;
[INFO] [stdout]   |                                              ^^^^^^^^^ use of undeclared type `MyRequest`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 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 104)
[INFO] [stdout]     src/lib.rs - (line 115)
[INFO] [stdout]     src/lib.rs - (line 118)
[INFO] [stdout]     src/lib.rs - (line 129)
[INFO] [stdout]     src/lib.rs - (line 138)
[INFO] [stdout]     src/lib.rs - (line 30)
[INFO] [stdout]     src/lib.rs - (line 40)
[INFO] [stdout]     src/lib.rs - (line 56)
[INFO] [stdout]     src/lib.rs - (line 73)
[INFO] [stdout]     src/lib.rs - (line 94)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 10 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.47s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "dd25da0dc081dca8e6cf817c252a5ec4c77ea654b73ecf7f2ea296e51bbcf700", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "dd25da0dc081dca8e6cf817c252a5ec4c77ea654b73ecf7f2ea296e51bbcf700", kill_on_drop: false }`
[INFO] [stdout] dd25da0dc081dca8e6cf817c252a5ec4c77ea654b73ecf7f2ea296e51bbcf700
