[INFO] fetching crate http-typed 0.4.0... [INFO] testing http-typed-0.4.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate http-typed 0.4.0 into /workspace/builds/worker-4-tc1/source [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] validating manifest of crates.io crate http-typed 0.4.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 175 packages to latest compatible versions [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.13.2) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.18) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded hyper-rustls v0.24.2 [INFO] [stderr] Downloaded sct v0.7.1 [INFO] [stderr] Downloaded tokio-rustls v0.24.1 [INFO] [stderr] Downloaded webpki-roots v0.25.4 [INFO] [stderr] Downloaded rustls-webpki v0.101.7 [INFO] [stderr] Downloaded rustls v0.21.12 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6160010e3f6d8c9a93b6a38ff950beb99a5d9d118665d09fc083ab976bc41ab4 [INFO] running `Command { std: "docker" "start" "-a" "6160010e3f6d8c9a93b6a38ff950beb99a5d9d118665d09fc083ab976bc41ab4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6160010e3f6d8c9a93b6a38ff950beb99a5d9d118665d09fc083ab976bc41ab4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6160010e3f6d8c9a93b6a38ff950beb99a5d9d118665d09fc083ab976bc41ab4", kill_on_drop: false }` [INFO] [stdout] 6160010e3f6d8c9a93b6a38ff950beb99a5d9d118665d09fc083ab976bc41ab4 [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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 61f820e1ced666cab801f31367d4c175eeceb30d91a4f30c3471af448eff62f2 [INFO] running `Command { std: "docker" "start" "-a" "61f820e1ced666cab801f31367d4c175eeceb30d91a4f30c3471af448eff62f2", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling unicode-ident v1.0.24 [INFO] [stderr] Compiling libc v0.2.184 [INFO] [stderr] Compiling find-msvc-tools v0.1.9 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pin-project-lite v0.2.17 [INFO] [stderr] Compiling once_cell v1.21.4 [INFO] [stderr] Compiling writeable v0.6.3 [INFO] [stderr] Compiling litemap v0.8.2 [INFO] [stderr] Compiling itoa v1.0.18 [INFO] [stderr] Compiling icu_normalizer_data v2.2.0 [INFO] [stderr] Compiling icu_properties_data v2.2.0 [INFO] [stderr] Compiling futures-core v0.3.32 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.76 [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling cc v1.2.59 [INFO] [stderr] Compiling futures-task v0.3.32 [INFO] [stderr] Compiling hashbrown v0.17.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling futures-sink v0.3.32 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Compiling bitflags v2.11.0 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling openssl-probe v0.2.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling ryu v1.0.23 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling indexmap v2.14.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling ipnet v2.12.0 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling mio v1.2.0 [INFO] [stderr] Compiling socket2 v0.6.3 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling openssl-sys v0.9.112 [INFO] [stderr] Compiling tokio v1.51.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.7 [INFO] [stderr] Compiling yoke-derive v0.8.2 [INFO] [stderr] Compiling zerovec-derive v0.11.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerofrom v0.1.7 [INFO] [stderr] Compiling yoke v0.8.2 [INFO] [stderr] Compiling zerovec v0.11.6 [INFO] [stderr] Compiling zerotrie v0.2.4 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling tinystr v0.8.3 [INFO] [stderr] Compiling potential_utf v0.1.5 [INFO] [stderr] Compiling icu_collections v2.2.0 [INFO] [stderr] Compiling icu_locale_core v2.2.0 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling icu_provider v2.2.0 [INFO] [stderr] Compiling icu_properties v2.2.0 [INFO] [stderr] Compiling icu_normalizer v2.2.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling http-typed v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.43s [INFO] running `Command { std: "docker" "inspect" "61f820e1ced666cab801f31367d4c175eeceb30d91a4f30c3471af448eff62f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61f820e1ced666cab801f31367d4c175eeceb30d91a4f30c3471af448eff62f2", kill_on_drop: false }` [INFO] [stdout] 61f820e1ced666cab801f31367d4c175eeceb30d91a4f30c3471af448eff62f2 [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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 63feef95f1481061a6f6b2a6e4b2a0c3e6cc797d0f12d9b5304d649efc4b8a49 [INFO] running `Command { std: "docker" "start" "-a" "63feef95f1481061a6f6b2a6e4b2a0c3e6cc797d0f12d9b5304d649efc4b8a49", kill_on_drop: false }` [INFO] [stderr] Compiling http-typed v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.70s [INFO] running `Command { std: "docker" "inspect" "63feef95f1481061a6f6b2a6e4b2a0c3e6cc797d0f12d9b5304d649efc4b8a49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63feef95f1481061a6f6b2a6e4b2a0c3e6cc797d0f12d9b5304d649efc4b8a49", kill_on_drop: false }` [INFO] [stdout] 63feef95f1481061a6f6b2a6e4b2a0c3e6cc797d0f12d9b5304d649efc4b8a49 [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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] fdc774fb1bd35e8914f86feccb1f3a1a97ff4aeccb75ee184aad81d2f79981f9 [INFO] running `Command { std: "docker" "start" "-a" "fdc774fb1bd35e8914f86feccb1f3a1a97ff4aeccb75ee184aad81d2f79981f9", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/http_typed-c94ebbe80eecd7eb) [INFO] [stderr] Doc-tests http_typed [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 11 tests [INFO] [stdout] test src/lib.rs - request_group (line 295) ... ignored [INFO] [stdout] test src/lib.rs - (line 73) ... FAILED [INFO] [stdout] test src/lib.rs - (line 56) ... FAILED [INFO] [stdout] test src/lib.rs - (line 115) ... FAILED [INFO] [stdout] test src/lib.rs - (line 138) ... FAILED [INFO] [stdout] test src/lib.rs - (line 118) ... FAILED [INFO] [stdout] test src/lib.rs - (line 94) ... 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 - (line 40) ... FAILED [INFO] [stdout] test src/lib.rs - (line 30) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 73) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `HttpMethod` in this scope [INFO] [stdout] --> src/lib.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | fn method(&self) -> HttpMethod; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 73 + 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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 56) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `Client` in this scope [INFO] [stdout] --> src/lib.rs:57:14 [INFO] [stdout] | [INFO] [stdout] 57 | let client = Client::default(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Client` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 56 + use http_typed::Client; [INFO] [stdout] | [INFO] [stdout] 56 + use reqwest::Client; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `MyResponse` in this scope [INFO] [stdout] --> src/lib.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | let my_response: MyResponse = client.send_custom( [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `HttpMethod` in this scope [INFO] [stdout] --> src/lib.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | HttpMethod::Get, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `HttpMethod` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 56 + 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] 56 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_56_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 63 | .await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MyRequest` in this scope [INFO] [stdout] --> src/lib.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | 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: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 115) stdout ---- [INFO] [stdout] error: cannot find macro `request_group` in this scope [INFO] [stdout] --> src/lib.rs:116:1 [INFO] [stdout] | [INFO] [stdout] 116 | request_group!(MyApi { MyRequest1, MyRequest2 }); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 115 + 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 138) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `Client` in this scope [INFO] [stdout] --> src/lib.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | 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 structs [INFO] [stdout] | [INFO] [stdout] 138 + use http_typed::Client; [INFO] [stdout] | [INFO] [stdout] 138 + 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] 138 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_138_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] 139 | let my_client = Client::new("http://example.com"); [INFO] [stdout] 140 | 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]: cannot find type `MyRequest` in this scope [INFO] [stdout] --> src/lib.rs:140:48 [INFO] [stdout] | [INFO] [stdout] 140 | 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 118) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `Client` in this scope [INFO] [stdout] --> src/lib.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | 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 structs [INFO] [stdout] | [INFO] [stdout] 118 + use http_typed::Client; [INFO] [stdout] | [INFO] [stdout] 118 + use reqwest::Client; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `MyApi` in this scope [INFO] [stdout] --> src/lib.rs:119:26 [INFO] [stdout] | [INFO] [stdout] 119 | let my_client = Client::::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] 118 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_118_0() { [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] 118 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_118_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] 119 | let my_client = Client::::new("http://example.com"); [INFO] [stdout] 120 | 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] 118 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_118_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 121 | let other_response = my_client.send(OtherRequest::new()).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MyRequest1` in this scope [INFO] [stdout] --> src/lib.rs:120:35 [INFO] [stdout] | [INFO] [stdout] 120 | let my_response1 = my_client.send(MyRequest1::new()).await?; // works [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `MyRequest1` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `OtherRequest` in this scope [INFO] [stdout] --> src/lib.rs:121:37 [INFO] [stdout] | [INFO] [stdout] 121 | let other_response = my_client.send(OtherRequest::new()).await?; [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: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 94) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `send` in this scope [INFO] [stdout] --> src/lib.rs:95:19 [INFO] [stdout] | [INFO] [stdout] 95 | 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] 94 + 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] 94 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_94_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 95 | 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]: cannot find type `MyRequest` in this scope [INFO] [stdout] --> src/lib.rs:95:46 [INFO] [stdout] | [INFO] [stdout] 95 | 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] ---- src/lib.rs - (line 104) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `Client` in this scope [INFO] [stdout] --> src/lib.rs:105:14 [INFO] [stdout] | [INFO] [stdout] 105 | let client = Client::new("http://example.com"); [INFO] [stdout] | ^^^^^^ use of undeclared type `Client` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 104 + use http_typed::Client; [INFO] [stdout] | [INFO] [stdout] 104 + 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] 104 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_104_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] 105 | let client = Client::new("http://example.com"); [INFO] [stdout] 106 | let my_response = client.send(MyRequest::new()).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MyRequest` in this scope [INFO] [stdout] --> src/lib.rs:106:31 [INFO] [stdout] | [INFO] [stdout] 106 | 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]: cannot find type `Client` in this scope [INFO] [stdout] --> src/lib.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | let my_client = Client::::default(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Client` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 129 + use http_typed::Client; [INFO] [stdout] | [INFO] [stdout] 129 + use reqwest::Client; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `MyApi` in this scope [INFO] [stdout] --> src/lib.rs:130:26 [INFO] [stdout] | [INFO] [stdout] 130 | let my_client = Client::::default(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 129 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_129_0() { [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] 129 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_129_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] 130 | let my_client = Client::::default(); [INFO] [stdout] 131 | 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] 129 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_129_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 132 | let other_response = my_client.send_to("http://example.com", OtherRequest::new()).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MyRequest2` in this scope [INFO] [stdout] --> src/lib.rs:131:60 [INFO] [stdout] | [INFO] [stdout] 131 | 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]: cannot find type `OtherRequest` in this scope [INFO] [stdout] --> src/lib.rs:132:62 [INFO] [stdout] | [INFO] [stdout] 132 | let other_response = my_client.send_to("http://example.com", OtherRequest::new()).await?; [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: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 40) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `MyResponse` in this scope [INFO] [stdout] --> src/lib.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | 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] 41 | 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] 40 + use http_typed::send_custom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `HttpMethod` in this scope [INFO] [stdout] --> src/lib.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | HttpMethod::Get, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `HttpMethod` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 40 + 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] 40 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_40_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 46 | .await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MyRequest` in this scope [INFO] [stdout] --> src/lib.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | 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: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 30) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `Client` in this scope [INFO] [stdout] --> src/lib.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | let client = Client::new("http://example.com"); [INFO] [stdout] | ^^^^^^ use of undeclared type `Client` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 30 + use http_typed::Client; [INFO] [stdout] | [INFO] [stdout] 30 + 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] 30 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_30_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 31 | let client = Client::new("http://example.com"); [INFO] [stdout] 32 | let response = client.send(MyRequest::new()).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MyRequest` in this scope [INFO] [stdout] --> src/lib.rs:32:28 [INFO] [stdout] | [INFO] [stdout] 32 | 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] [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.28s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "fdc774fb1bd35e8914f86feccb1f3a1a97ff4aeccb75ee184aad81d2f79981f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdc774fb1bd35e8914f86feccb1f3a1a97ff4aeccb75ee184aad81d2f79981f9", kill_on_drop: false }` [INFO] [stdout] fdc774fb1bd35e8914f86feccb1f3a1a97ff4aeccb75ee184aad81d2f79981f9