[INFO] cloning repository https://github.com/rishabh-bector/thenewsapi
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rishabh-bector/thenewsapi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishabh-bector%2Fthenewsapi", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishabh-bector%2Fthenewsapi'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 330ccd31c65f2688d8bb385cf83c0212d00ee140
[INFO] testing rishabh-bector/thenewsapi against try#bd7d74411512a3dd3b35d2f699c51dd2557c7e7e+cargoflags=-Zbuild-dir-new-layout for pr-149852-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishabh-bector%2Fthenewsapi" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/rishabh-bector/thenewsapi
[INFO] finished tweaking git repo https://github.com/rishabh-bector/thenewsapi
[INFO] tweaked toml for git repo https://github.com/rishabh-bector/thenewsapi written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/rishabh-bector/thenewsapi on toolchain bd7d74411512a3dd3b35d2f699c51dd2557c7e7e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/rishabh-bector/thenewsapi already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: only one of `license` or `license-file` is necessary
[INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression.
[INFO] [stderr] `license-file` should be used if the package uses a non-standard license.
[INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information.
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 5e3a9cf92536cb0c696121c53264d75bd69b94c311e7f25f64a1fde5abafc201
[INFO] running `Command { std: "docker" "start" "-a" "5e3a9cf92536cb0c696121c53264d75bd69b94c311e7f25f64a1fde5abafc201", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5e3a9cf92536cb0c696121c53264d75bd69b94c311e7f25f64a1fde5abafc201", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5e3a9cf92536cb0c696121c53264d75bd69b94c311e7f25f64a1fde5abafc201", kill_on_drop: false }`
[INFO] [stdout] 5e3a9cf92536cb0c696121c53264d75bd69b94c311e7f25f64a1fde5abafc201
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "build" "--frozen" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }`
[INFO] [stdout] bd912722e3fb9249517c0ff14922fb87107fb8ce084a78413b15edd3add77b2a
[INFO] running `Command { std: "docker" "start" "-a" "bd912722e3fb9249517c0ff14922fb87107fb8ce084a78413b15edd3add77b2a", kill_on_drop: false }`
[INFO] [stderr] warning: only one of `license` or `license-file` is necessary
[INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression.
[INFO] [stderr] `license-file` should be used if the package uses a non-standard license.
[INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information.
[INFO] [stderr]    Compiling lock_api v0.4.11
[INFO] [stderr]    Compiling openssl-sys v0.9.102
[INFO] [stderr]    Compiling openssl v0.10.64
[INFO] [stderr]    Compiling http v1.1.0
[INFO] [stderr]    Compiling serde v1.0.204
[INFO] [stderr]    Compiling syn v2.0.71
[INFO] [stderr]    Compiling parking_lot_core v0.9.9
[INFO] [stderr]    Compiling num_cpus v1.16.0
[INFO] [stderr]    Compiling mio v0.8.11
[INFO] [stderr]    Compiling tinyvec v1.8.0
[INFO] [stderr]    Compiling unicode-bidi v0.3.15
[INFO] [stderr]    Compiling serde_json v1.0.120
[INFO] [stderr]    Compiling rustls-pki-types v1.7.0
[INFO] [stderr]    Compiling ipnet v2.9.0
[INFO] [stderr]    Compiling sync_wrapper v1.0.1
[INFO] [stderr]    Compiling rustls-pemfile v2.1.2
[INFO] [stderr]    Compiling parking_lot v0.12.1
[INFO] [stderr]    Compiling unicode-normalization v0.1.23
[INFO] [stderr]    Compiling native-tls v0.2.12
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling http-body-util v0.1.2
[INFO] [stderr]    Compiling idna v0.5.0
[INFO] [stderr]    Compiling url v2.5.2
[INFO] [stderr]    Compiling tokio-macros v2.3.0
[INFO] [stderr]    Compiling pin-project-internal v1.1.5
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling serde_derive v1.0.204
[INFO] [stderr]    Compiling pin-project v1.1.5
[INFO] [stderr]    Compiling tokio v1.38.1
[INFO] [stderr]    Compiling tokio-util v0.7.11
[INFO] [stderr]    Compiling tower v0.4.13
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling h2 v0.4.5
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling hyper v1.4.1
[INFO] [stderr]    Compiling hyper-util v0.1.6
[INFO] [stderr]    Compiling hyper-tls v0.6.0
[INFO] [stderr]    Compiling reqwest v0.12.5
[INFO] [stderr]    Compiling thenewsapi v0.1.2 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.66s
[INFO] running `Command { std: "docker" "inspect" "bd912722e3fb9249517c0ff14922fb87107fb8ce084a78413b15edd3add77b2a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bd912722e3fb9249517c0ff14922fb87107fb8ce084a78413b15edd3add77b2a", kill_on_drop: false }`
[INFO] [stdout] bd912722e3fb9249517c0ff14922fb87107fb8ce084a78413b15edd3add77b2a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "--no-run" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }`
[INFO] [stdout] 81c14c2723a6c7b2b214288a896e27061d9b1d4ab63d688df753b5320415321c
[INFO] running `Command { std: "docker" "start" "-a" "81c14c2723a6c7b2b214288a896e27061d9b1d4ab63d688df753b5320415321c", kill_on_drop: false }`
[INFO] [stderr] warning: only one of `license` or `license-file` is necessary
[INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression.
[INFO] [stderr] `license-file` should be used if the package uses a non-standard license.
[INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information.
[INFO] [stderr]    Compiling thenewsapi v0.1.2 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.07s
[INFO] running `Command { std: "docker" "inspect" "81c14c2723a6c7b2b214288a896e27061d9b1d4ab63d688df753b5320415321c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "81c14c2723a6c7b2b214288a896e27061d9b1d4ab63d688df753b5320415321c", kill_on_drop: false }`
[INFO] [stdout] 81c14c2723a6c7b2b214288a896e27061d9b1d4ab63d688df753b5320415321c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "-Zbuild-dir-new-layout", kill_on_drop: false }`
[INFO] [stdout] 8290ccf61c7ae556489989513339e8acfe359d81a695422b4516fba42dcdd35a
[INFO] running `Command { std: "docker" "start" "-a" "8290ccf61c7ae556489989513339e8acfe359d81a695422b4516fba42dcdd35a", kill_on_drop: false }`
[INFO] [stderr] warning: only one of `license` or `license-file` is necessary
[INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression.
[INFO] [stderr] `license-file` should be used if the package uses a non-standard license.
[INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information.
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/build/thenewsapi/993083e2586d9067/deps/thenewsapi-993083e2586d9067)
[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 thenewsapi
[INFO] [stdout] 
[INFO] [stdout] running 8 tests
[INFO] [stdout] test src/lib.rs - Client::get_similar_news (line 372) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - Client::get_all_news (line 353) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - (line 22) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - Client::get_top_stories (line 332) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - Client::get_headlines (line 314) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - Client::get_article_by_uuid (line 395) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - Client::get_sources (line 415) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - Client::new (line 296) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - Client::get_similar_news (line 372) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SimilarNewsParams`
[INFO] [stdout]    --> src/lib.rs:373:14
[INFO] [stdout]     |
[INFO] [stdout] 373 | let params = SimilarNewsParams::default();
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^ use of undeclared type `SimilarNewsParams`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 372 + use thenewsapi::SimilarNewsParams;
[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 E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - Client::get_all_news (line 353) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AllNewsParams`
[INFO] [stdout]    --> src/lib.rs:354:14
[INFO] [stdout]     |
[INFO] [stdout] 354 | let params = AllNewsParams::default();
[INFO] [stdout]     |              ^^^^^^^^^^^^^ use of undeclared type `AllNewsParams`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 353 + use thenewsapi::AllNewsParams;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:355:16
[INFO] [stdout]     |
[INFO] [stdout] 355 | let all_news = client.get_all_news(params).await.unwrap();
[INFO] [stdout]     |                ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:355:44
[INFO] [stdout]     |
[INFO] [stdout] 353 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_353_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 354 | let params = AllNewsParams::default();
[INFO] [stdout] 355 | let all_news = client.get_all_news(params).await.unwrap();
[INFO] [stdout]     |                                            ^^^^^ only allowed inside `async` functions and blocks
[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 22) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `news_api_client`
[INFO] [stdout]   --> src/lib.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 23 | use news_api_client::{Client, HeadlinesParams};
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `news_api_client`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `news_api_client`, use `cargo add news_api_client` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/lib.rs:31:21
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let headlines = client.get_headlines(params).await.unwrap();
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0432.
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - Client::get_top_stories (line 332) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TopStoriesParams`
[INFO] [stdout]    --> src/lib.rs:333:14
[INFO] [stdout]     |
[INFO] [stdout] 333 | let params = TopStoriesParams::default();
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^ use of undeclared type `TopStoriesParams`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 332 + use thenewsapi::TopStoriesParams;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:334:19
[INFO] [stdout]     |
[INFO] [stdout] 334 | let top_stories = client.get_top_stories(params).await.unwrap();
[INFO] [stdout]     |                   ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:334:50
[INFO] [stdout]     |
[INFO] [stdout] 332 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_332_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 333 | let params = TopStoriesParams::default();
[INFO] [stdout] 334 | let top_stories = client.get_top_stories(params).await.unwrap();
[INFO] [stdout]     |                                                  ^^^^^ only allowed inside `async` functions and blocks
[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 - Client::get_headlines (line 314) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HeadlinesParams`
[INFO] [stdout]    --> src/lib.rs:315:14
[INFO] [stdout]     |
[INFO] [stdout] 315 | let params = HeadlinesParams::default();
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^ use of undeclared type `HeadlinesParams`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 314 + use thenewsapi::HeadlinesParams;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:316:17
[INFO] [stdout]     |
[INFO] [stdout] 316 | let headlines = client.get_headlines(params).await.unwrap();
[INFO] [stdout]     |                 ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:316:46
[INFO] [stdout]     |
[INFO] [stdout] 314 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_314_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 315 | let params = HeadlinesParams::default();
[INFO] [stdout] 316 | let headlines = client.get_headlines(params).await.unwrap();
[INFO] [stdout]     |                                              ^^^^^ only allowed inside `async` functions and blocks
[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 - Client::get_article_by_uuid (line 395) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:396:15
[INFO] [stdout]     |
[INFO] [stdout] 396 | let article = client.get_article_by_uuid("article_uuid").await.unwrap();
[INFO] [stdout]     |               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:396:58
[INFO] [stdout]     |
[INFO] [stdout] 395 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_395_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 396 | let article = client.get_article_by_uuid("article_uuid").await.unwrap();
[INFO] [stdout]     |                                                          ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, 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 - Client::get_sources (line 415) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SourcesParams`
[INFO] [stdout]    --> src/lib.rs:416:14
[INFO] [stdout]     |
[INFO] [stdout] 416 | let params = SourcesParams::default();
[INFO] [stdout]     |              ^^^^^^^^^^^^^ use of undeclared type `SourcesParams`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 415 + use thenewsapi::SourcesParams;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]    --> src/lib.rs:417:15
[INFO] [stdout]     |
[INFO] [stdout] 417 | let sources = client.get_sources(params).await.unwrap();
[INFO] [stdout]     |               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/lib.rs:417:42
[INFO] [stdout]     |
[INFO] [stdout] 415 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_415_0() {
[INFO] [stdout]     |                                      ----------------------------------- this is not `async`
[INFO] [stdout] 416 | let params = SourcesParams::default();
[INFO] [stdout] 417 | let sources = client.get_sources(params).await.unwrap();
[INFO] [stdout]     |                                          ^^^^^ only allowed inside `async` functions and blocks
[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 - Client::new (line 296) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client`
[INFO] [stdout]    --> src/lib.rs:297:14
[INFO] [stdout]     |
[INFO] [stdout] 297 | let client = Client::new("your_api_token");
[INFO] [stdout]     |              ^^^^^^ use of undeclared type `Client`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 296 + use reqwest::Client;
[INFO] [stdout]     |
[INFO] [stdout] 296 + use thenewsapi::Client;
[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 E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - (line 22)
[INFO] [stdout]     src/lib.rs - Client::get_all_news (line 353)
[INFO] [stdout]     src/lib.rs - Client::get_article_by_uuid (line 395)
[INFO] [stdout]     src/lib.rs - Client::get_headlines (line 314)
[INFO] [stdout]     src/lib.rs - Client::get_similar_news (line 372)
[INFO] [stdout]     src/lib.rs - Client::get_sources (line 415)
[INFO] [stdout]     src/lib.rs - Client::get_top_stories (line 332)
[INFO] [stdout]     src/lib.rs - Client::new (line 296)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "8290ccf61c7ae556489989513339e8acfe359d81a695422b4516fba42dcdd35a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8290ccf61c7ae556489989513339e8acfe359d81a695422b4516fba42dcdd35a", kill_on_drop: false }`
[INFO] [stdout] 8290ccf61c7ae556489989513339e8acfe359d81a695422b4516fba42dcdd35a
