[INFO] fetching crate oauth2-surf 0.1.2... [INFO] testing oauth2-surf-0.1.2 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate oauth2-surf 0.1.2 into /workspace/builds/worker-71/source [INFO] validating manifest of crates.io crate oauth2-surf 0.1.2 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate oauth2-surf 0.1.2 [INFO] finished tweaking crates.io crate oauth2-surf 0.1.2 [INFO] tweaked toml for crates.io crate oauth2-surf 0.1.2 written to /workspace/builds/worker-71/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-71/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-71/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 67ea97f41d61dac4158a91d951b591bb8220629938ee9bccdcfc25814090f807 [INFO] running `Command { std: "docker" "start" "-a" "67ea97f41d61dac4158a91d951b591bb8220629938ee9bccdcfc25814090f807", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "67ea97f41d61dac4158a91d951b591bb8220629938ee9bccdcfc25814090f807", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67ea97f41d61dac4158a91d951b591bb8220629938ee9bccdcfc25814090f807", kill_on_drop: false }` [INFO] [stdout] 67ea97f41d61dac4158a91d951b591bb8220629938ee9bccdcfc25814090f807 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-71/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-71/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 045997e8967e9bbe599007199daaf9073cb62974534359522731a1b743fab5fc [INFO] running `Command { std: "docker" "start" "-a" "045997e8967e9bbe599007199daaf9073cb62974534359522731a1b743fab5fc", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling cache-padded v1.2.0 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling event-listener v2.5.2 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling waker-fn v1.1.0 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling parking v2.0.0 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.80 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling cpuid-bool v0.2.0 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling crossbeam-utils v0.8.8 [INFO] [stderr] Compiling async-task v4.2.0 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling atomic-waker v1.0.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling anyhow v1.0.56 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling curl v0.4.43 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.80 [INFO] [stderr] Compiling http-types v2.12.0 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling isahc v0.9.14 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling async-trait v0.1.53 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling infer v0.2.3 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling tracing-core v0.1.25 [INFO] [stderr] Compiling concurrent-queue v1.2.2 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling async-mutex v1.4.0 [INFO] [stderr] Compiling async-lock v2.5.0 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling value-bag v1.0.0-alpha.8 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling libnghttp2-sys v0.1.7+1.45.0 [INFO] [stderr] Compiling libz-sys v1.1.5 [INFO] [stderr] Compiling curl-sys v0.4.53+curl-7.82.0 [INFO] [stderr] Compiling sluice v0.5.5 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling spinning_top v0.2.4 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling flume v0.9.2 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling dashmap v4.0.2 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling universal-hash v0.4.1 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.10.1 [INFO] [stderr] Compiling aead v0.3.2 [INFO] [stderr] Compiling blocking v1.2.0 [INFO] [stderr] Compiling async-executor v1.4.1 [INFO] [stderr] Compiling polyval v0.4.5 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling aes-soft v0.6.4 [INFO] [stderr] Compiling ctr v0.6.0 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling hkdf v0.10.0 [INFO] [stderr] Compiling ghash v0.3.1 [INFO] [stderr] Compiling aes v0.6.0 [INFO] [stderr] Compiling aes-gcm v0.8.0 [INFO] [stderr] Compiling ctor v0.1.22 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling tracing-attributes v0.1.20 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling polling v2.2.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.80 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling async-io v1.6.0 [INFO] [stderr] Compiling tracing v0.1.33 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling async-global-executor v2.0.4 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.80 [INFO] [stderr] Compiling async-std v1.11.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.80 [INFO] [stderr] Compiling js-sys v0.3.57 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling serde_qs v0.8.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling serde_path_to_error v0.1.7 [INFO] [stderr] Compiling oauth2 v4.1.0 [INFO] [stderr] Compiling web-sys v0.3.57 [INFO] [stderr] Compiling http-client v6.5.1 [INFO] [stderr] Compiling surf v2.3.2 [INFO] [stderr] Compiling oauth2-surf v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 28.97s [INFO] running `Command { std: "docker" "inspect" "045997e8967e9bbe599007199daaf9073cb62974534359522731a1b743fab5fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "045997e8967e9bbe599007199daaf9073cb62974534359522731a1b743fab5fc", kill_on_drop: false }` [INFO] [stdout] 045997e8967e9bbe599007199daaf9073cb62974534359522731a1b743fab5fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-71/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-71/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2cff102bd63e639865c5ca9652b4426db943535315c730d85b82c4b64db46a16 [INFO] running `Command { std: "docker" "start" "-a" "2cff102bd63e639865c5ca9652b4426db943535315c730d85b82c4b64db46a16", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling oauth2-surf v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.98s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/oauth2_surf-92633e50ec7d6db0) [INFO] running `Command { std: "docker" "inspect" "2cff102bd63e639865c5ca9652b4426db943535315c730d85b82c4b64db46a16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2cff102bd63e639865c5ca9652b4426db943535315c730d85b82c4b64db46a16", kill_on_drop: false }` [INFO] [stdout] 2cff102bd63e639865c5ca9652b4426db943535315c730d85b82c4b64db46a16 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-71/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-71/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 05fad65f7f0a19be7de14688081c1b44f146495946d324a161d0d6dca3b4a7f7 [INFO] running `Command { std: "docker" "start" "-a" "05fad65f7f0a19be7de14688081c1b44f146495946d324a161d0d6dca3b4a7f7", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/oauth2_surf-92633e50ec7d6db0) [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests oauth2-surf [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - (line 8) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 8) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `url` [INFO] [stdout] --> src/lib.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 19 | use url::Url; [INFO] [stdout] | ^^^ help: a similar path exists: `oauth2::url` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:64:33 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_8_0() { [INFO] [stdout] | ---------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 59 | .request_async(http_client) [INFO] [stdout] | _________________________________^ [INFO] [stdout] 60 | | .await?; [INFO] [stdout] | |___________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:32:54 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_8_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use anyhow; [INFO] [stdout] 5 | | use oauth2::{ [INFO] [stdout] 6 | | AuthorizationCode, [INFO] [stdout] ... | [INFO] [stdout] 27 | | AuthUrl::new("http://authorize".to_string())?, [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 62 | | // Unwrapping token_result will either produce a Token or a RequestTokenError. [INFO] [stdout] 63 | | } _doctest_main_src_lib_rs_8_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:33:56 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_8_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use anyhow; [INFO] [stdout] 5 | | use oauth2::{ [INFO] [stdout] 6 | | AuthorizationCode, [INFO] [stdout] ... | [INFO] [stdout] 28 | | Some(TokenUrl::new("http://token".to_string())?) [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 62 | | // Unwrapping token_result will either produce a Token or a RequestTokenError. [INFO] [stdout] 63 | | } _doctest_main_src_lib_rs_8_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_redirect_url` found for struct `Client` in the current scope [INFO] [stdout] --> src/lib.rs:36:7 [INFO] [stdout] | [INFO] [stdout] 31 | .set_redirect_url(RedirectUrl::new("http://redirect".to_string())?); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `set_redirect_uri` [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:36:71 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_8_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use anyhow; [INFO] [stdout] 5 | | use oauth2::{ [INFO] [stdout] 6 | | AuthorizationCode, [INFO] [stdout] ... | [INFO] [stdout] 31 | | .set_redirect_url(RedirectUrl::new("http://redirect".to_string())?); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 62 | | // Unwrapping token_result will either produce a Token or a RequestTokenError. [INFO] [stdout] 63 | | } _doctest_main_src_lib_rs_8_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_8_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use anyhow; [INFO] [stdout] 5 | | use oauth2::{ [INFO] [stdout] 6 | | AuthorizationCode, [INFO] [stdout] ... | [INFO] [stdout] 60 | | .await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 61 | | [INFO] [stdout] 62 | | // Unwrapping token_result will either produce a Token or a RequestTokenError. [INFO] [stdout] 63 | | } _doctest_main_src_lib_rs_8_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0599, 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 8) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.44s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "05fad65f7f0a19be7de14688081c1b44f146495946d324a161d0d6dca3b4a7f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05fad65f7f0a19be7de14688081c1b44f146495946d324a161d0d6dca3b4a7f7", kill_on_drop: false }` [INFO] [stdout] 05fad65f7f0a19be7de14688081c1b44f146495946d324a161d0d6dca3b4a7f7