[INFO] fetching crate etternaonline_api 0.1.0... [INFO] testing etternaonline_api-0.1.0 against beta-2021-01-01 for beta-1.50-1 [INFO] extracting crate etternaonline_api 0.1.0 into /workspace/builds/worker-12/source [INFO] validating manifest of crates.io crate etternaonline_api 0.1.0 on toolchain beta-2021-01-01 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-01-01" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate etternaonline_api 0.1.0 [INFO] finished tweaking crates.io crate etternaonline_api 0.1.0 [INFO] tweaked toml for crates.io crate etternaonline_api 0.1.0 written to /workspace/builds/worker-12/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-01-01" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-01-01" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a50352b44aa809839f209318e31cb94cde366416590bd525bdb32f8f33eec922 [INFO] running `Command { std: "docker" "start" "-a" "a50352b44aa809839f209318e31cb94cde366416590bd525bdb32f8f33eec922", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a50352b44aa809839f209318e31cb94cde366416590bd525bdb32f8f33eec922", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a50352b44aa809839f209318e31cb94cde366416590bd525bdb32f8f33eec922", kill_on_drop: false }` [INFO] [stdout] a50352b44aa809839f209318e31cb94cde366416590bd525bdb32f8f33eec922 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b04ffcdafb9ba7baec558625aab83d8592f187a017eb538a58a1d2d5a724f3ee [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b04ffcdafb9ba7baec558625aab83d8592f187a017eb538a58a1d2d5a724f3ee", kill_on_drop: false }` [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling chunked_transfer v1.3.0 [INFO] [stderr] Compiling standback v0.2.14 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling time v0.2.23 [INFO] [stderr] Compiling cookie v0.14.3 [INFO] [stderr] Compiling ring v0.16.19 [INFO] [stderr] Compiling form_urlencoded v1.0.0 [INFO] [stderr] Compiling qstring v0.7.2 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Compiling tinyvec v1.1.0 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling unicode-normalization v0.1.16 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling thiserror v1.0.23 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.0 [INFO] [stderr] Compiling url v2.2.0 [INFO] [stderr] Compiling webpki-roots v0.21.0 [INFO] [stderr] Compiling rustls v0.19.0 [INFO] [stderr] Compiling publicsuffix v1.5.4 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Compiling cookie_store v0.12.0 [INFO] [stderr] Compiling ureq v1.5.4 [INFO] [stderr] Compiling etternaonline_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 56.83s [INFO] running `Command { std: "docker" "inspect" "b04ffcdafb9ba7baec558625aab83d8592f187a017eb538a58a1d2d5a724f3ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b04ffcdafb9ba7baec558625aab83d8592f187a017eb538a58a1d2d5a724f3ee", kill_on_drop: false }` [INFO] [stdout] b04ffcdafb9ba7baec558625aab83d8592f187a017eb538a58a1d2d5a724f3ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9fd98ad570c2cba9da3355b7da56cc2047adb9dc245af4337156498d8b8cd078 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "9fd98ad570c2cba9da3355b7da56cc2047adb9dc245af4337156498d8b8cd078", kill_on_drop: false }` [INFO] [stderr] Compiling etternaonline_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.60s [INFO] running `Command { std: "docker" "inspect" "9fd98ad570c2cba9da3355b7da56cc2047adb9dc245af4337156498d8b8cd078", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fd98ad570c2cba9da3355b7da56cc2047adb9dc245af4337156498d8b8cd078", kill_on_drop: false }` [INFO] [stdout] 9fd98ad570c2cba9da3355b7da56cc2047adb9dc245af4337156498d8b8cd078 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6e8894291ce4ec4642e30f9af1d9e817885688127cc52afa3588fdfff66db815 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6e8894291ce4ec4642e30f9af1d9e817885688127cc52afa3588fdfff66db815", 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] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.55s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/etternaonline_api-f45293db4c3aad28 [INFO] [stdout] [INFO] [stderr] Doc-tests etternaonline_api [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 19 tests [INFO] [stdout] test src/lib.rs - Session::new_from_login (line 222) ... FAILED [INFO] [stdout] test src/lib.rs - Session::user_top_10_scores (line 457) ... FAILED [INFO] [stdout] test src/lib.rs - Session::user_favorites (line 686) ... FAILED [INFO] [stdout] test src/lib.rs - Session::score_data (line 570) ... FAILED [INFO] [stdout] test src/lib.rs - Session::user_latest_scores (line 471) ... FAILED [INFO] [stdout] test src/lib.rs - Session::user_ranks_per_skillset (line 499) ... FAILED [INFO] [stdout] test src/lib.rs - Session::add_user_favorite (line 707) ... FAILED [INFO] [stdout] test src/lib.rs - Session::add_user_goal (line 778) ... FAILED [INFO] [stdout] test src/lib.rs - Session::user_details (line 384) ... FAILED [INFO] [stdout] test src/lib.rs - Session::user_goals (line 745) ... FAILED [INFO] [stdout] test src/lib.rs - Session::update_user_goal (line 847) ... FAILED [INFO] [stdout] test src/lib.rs - Session::country_leaderboard (line 641) ... FAILED [INFO] [stdout] test src/lib.rs - Session::remove_user_goal (line 815) ... FAILED [INFO] [stdout] test src/lib.rs - Session::remove_user_favorite (line 724) ... FAILED [INFO] [stdout] test src/lib.rs - Session::chart_leaderboard (line 603) ... FAILED [INFO] [stdout] test src/lib.rs - Session (line 181) ... FAILED [INFO] [stdout] test src/lib.rs - Session::user_top_scores_per_skillset (line 526) ... FAILED [INFO] [stdout] test src/lib.rs - Session::world_leaderboard (line 667) ... FAILED [INFO] [stdout] test src/lib.rs - Session::user_top_skillset_scores (line 435) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - Session::new_from_login (line 222) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Session` [INFO] [stdout] --> src/lib.rs:223:19 [INFO] [stdout] | [INFO] [stdout] 3 | let mut session = Session::new_from_login( [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use etternaonline_api::Session; [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 E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Session::user_top_10_scores (line 457) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:459:14 [INFO] [stdout] | [INFO] [stdout] 4 | let scores = session.user_top_10_scores("kangalioo")?; [INFO] [stdout] | ^^^^^^^ not found in this scope [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 `Try`) [INFO] [stdout] --> src/lib.rs:459:14 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_457_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let scores = session.user_top_10_scores("kangalioo")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | }; _doctest_main_src_lib_rs_457_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Session::user_favorites (line 686) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:687:17 [INFO] [stdout] | [INFO] [stdout] 3 | let favorites = session.user_favorites("kangalioo"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 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 - Session::score_data (line 570) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:571:18 [INFO] [stdout] | [INFO] [stdout] 3 | let score_info = session.score_data("S65565b5bc377c6d78b60c0aecfd9e05955b4cf63")?; [INFO] [stdout] | ^^^^^^^ not found in this scope [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 `Try`) [INFO] [stdout] --> src/lib.rs:571:18 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_570_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let score_info = session.score_data("S65565b5bc377c6d78b60c0aecfd9e05955b4cf63")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | }; _doctest_main_src_lib_rs_570_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Session::user_latest_scores (line 471) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:473:14 [INFO] [stdout] | [INFO] [stdout] 4 | let scores = session.user_latest_scores("kangalioo")?; [INFO] [stdout] | ^^^^^^^ not found in this scope [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 `Try`) [INFO] [stdout] --> src/lib.rs:473:14 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_471_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let scores = session.user_latest_scores("kangalioo")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | }; _doctest_main_src_lib_rs_471_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Session::user_ranks_per_skillset (line 499) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:501:14 [INFO] [stdout] | [INFO] [stdout] 4 | let scores = session.user_ranks("kangalioo")?; [INFO] [stdout] | ^^^^^^^ not found in this scope [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 `Try`) [INFO] [stdout] --> src/lib.rs:501:14 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_499_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let scores = session.user_ranks("kangalioo")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | }; _doctest_main_src_lib_rs_499_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Session::add_user_favorite (line 707) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:709:1 [INFO] [stdout] | [INFO] [stdout] 4 | session.add_user_favorite("kangalioo", "X4a15f62b66a80b62ec64521704f98c6c03d98e03")?; [INFO] [stdout] | ^^^^^^^ not found in this scope [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 `Try`) [INFO] [stdout] --> src/lib.rs:709:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_707_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | session.add_user_favorite("kangalioo", "X4a15f62b66a80b62ec64521704f98c6c03d98e03")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | }; _doctest_main_src_lib_rs_707_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Session::add_user_goal (line 778) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:780:1 [INFO] [stdout] | [INFO] [stdout] 4 | session.add_user_goal( [INFO] [stdout] | ^^^^^^^ not found in this scope [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 `Try`) [INFO] [stdout] --> src/lib.rs:780:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_778_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | session.add_user_goal( [INFO] [stdout] | |_^ [INFO] [stdout] 5 | || "kangalioo", [INFO] [stdout] 6 | || "X4a15f62b66a80b62ec64521704f98c6c03d98e03", [INFO] [stdout] 7 | || 1.0, [INFO] [stdout] 8 | || 0.93, [INFO] [stdout] 9 | || "2020-07-13 22:48:26", [INFO] [stdout] 10 | || )?; [INFO] [stdout] | ||__^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 11 | | }; _doctest_main_src_lib_rs_778_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Session::user_details (line 384) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:386:15 [INFO] [stdout] | [INFO] [stdout] 4 | let details = session.user_details("kangalioo")?; [INFO] [stdout] | ^^^^^^^ not found in this scope [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 `Try`) [INFO] [stdout] --> src/lib.rs:386:15 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_384_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let details = session.user_details("kangalioo")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | }; _doctest_main_src_lib_rs_384_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Session::user_goals (line 745) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:746:19 [INFO] [stdout] | [INFO] [stdout] 3 | let score_goals = session.user_goals("theropfather")?; [INFO] [stdout] | ^^^^^^^ not found in this scope [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 `Try`) [INFO] [stdout] --> src/lib.rs:746:19 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_745_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let score_goals = session.user_goals("theropfather")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | println!("theropfather has {} goals", score_goals.len()); [INFO] [stdout] 6 | | }; _doctest_main_src_lib_rs_745_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Session::update_user_goal (line 847) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:850:23 [INFO] [stdout] | [INFO] [stdout] 5 | let score_goal = &mut session.user_goals("kangalioo")?[0]; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:854:1 [INFO] [stdout] | [INFO] [stdout] 9 | session.update_user_goal("kangalioo", score_goal)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [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 `Try`) [INFO] [stdout] --> src/lib.rs:850:23 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_847_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 5 | | let score_goal = &mut session.user_goals("kangalioo")?[0]; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | [INFO] [stdout] 7 | | score_goal.rate += 0.05; [INFO] [stdout] 8 | | [INFO] [stdout] 9 | | session.update_user_goal("kangalioo", score_goal)?; [INFO] [stdout] 10 | | }; _doctest_main_src_lib_rs_847_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [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 `Try`) [INFO] [stdout] --> src/lib.rs:854:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_847_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 5 | | let score_goal = &mut session.user_goals("kangalioo")?[0]; [INFO] [stdout] 6 | | [INFO] [stdout] 7 | | score_goal.rate += 0.05; [INFO] [stdout] 8 | | [INFO] [stdout] 9 | | session.update_user_goal("kangalioo", score_goal)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 10 | | }; _doctest_main_src_lib_rs_847_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Session::country_leaderboard (line 641) stdout ---- [INFO] [stdout] error: expected `;`, found `println` [INFO] [stdout] --> src/lib.rs:642:53 [INFO] [stdout] | [INFO] [stdout] 3 | let leaderboard = session.country_leaderboard("DE")? [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 4 | [INFO] [stdout] 5 | println!( [INFO] [stdout] | ------- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:642:19 [INFO] [stdout] | [INFO] [stdout] 3 | let leaderboard = session.country_leaderboard("DE")? [INFO] [stdout] | ^^^^^^^ not found in this scope [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 `Try`) [INFO] [stdout] --> src/lib.rs:642:19 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_641_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let leaderboard = session.country_leaderboard("DE")? [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | println!( [INFO] [stdout] ... | [INFO] [stdout] 9 | | ); [INFO] [stdout] 10 | | }; _doctest_main_src_lib_rs_641_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Session::remove_user_goal (line 815) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:818:18 [INFO] [stdout] | [INFO] [stdout] 5 | let score_goal = session.user_goals("theropfather")?[0]; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:820:1 [INFO] [stdout] | [INFO] [stdout] 7 | session.remove_user_goal( [INFO] [stdout] | ^^^^^^^ not found in this scope [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 `Try`) [INFO] [stdout] --> src/lib.rs:818:18 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_815_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 5 | | let score_goal = session.user_goals("theropfather")?[0]; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | [INFO] [stdout] 7 | | session.remove_user_goal( [INFO] [stdout] ... | [INFO] [stdout] 12 | | )?; [INFO] [stdout] 13 | | }; _doctest_main_src_lib_rs_815_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [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 `Try`) [INFO] [stdout] --> src/lib.rs:820:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_815_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 5 | | let score_goal = session.user_goals("theropfather")?[0]; [INFO] [stdout] 6 | | [INFO] [stdout] 7 | | session.remove_user_goal( [INFO] [stdout] | |_^ [INFO] [stdout] 8 | || "theropfather", [INFO] [stdout] 9 | || score_goal.chartkey, [INFO] [stdout] 10 | || score_goal.rate, [INFO] [stdout] 11 | || score_goal.wifescore [INFO] [stdout] 12 | || )?; [INFO] [stdout] | ||__^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 13 | | }; _doctest_main_src_lib_rs_815_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Session::remove_user_favorite (line 724) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:726:1 [INFO] [stdout] | [INFO] [stdout] 4 | session.remove_user_favorite("kangalioo", "X4a15f62b66a80b62ec64521704f98c6c03d98e03")?; [INFO] [stdout] | ^^^^^^^ not found in this scope [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 `Try`) [INFO] [stdout] --> src/lib.rs:726:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_724_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | session.remove_user_favorite("kangalioo", "X4a15f62b66a80b62ec64521704f98c6c03d98e03")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | }; _doctest_main_src_lib_rs_724_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Session::chart_leaderboard (line 603) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:604:19 [INFO] [stdout] | [INFO] [stdout] 3 | let leaderboard = session.chart_leaderboard("X4a15f62b66a80b62ec64521704f98c6c03d98e03")?; [INFO] [stdout] | ^^^^^^^ not found in this scope [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 `Try`) [INFO] [stdout] --> src/lib.rs:604:19 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_603_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let leaderboard = session.chart_leaderboard("X4a15f62b66a80b62ec64521704f98c6c03d98e03")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | println!("The best Game Time score is being held by {}", leaderboard[0].user.username); [INFO] [stdout] 6 | | }; _doctest_main_src_lib_rs_603_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Session (line 181) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Session` [INFO] [stdout] --> src/lib.rs:182:19 [INFO] [stdout] | [INFO] [stdout] 3 | let mut session = Session::new_from_login( [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use etternaonline_api::Session; [INFO] [stdout] | [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 `Try`) [INFO] [stdout] --> src/lib.rs:189:43 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_181_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut session = Session::new_from_login( [INFO] [stdout] 4 | | "kangalioo", [INFO] [stdout] 5 | | "", [INFO] [stdout] ... | [INFO] [stdout] 10 | | println!("Details about kangalioo: {:?}", session.user_details("kangalioo")?); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 16 | | ); [INFO] [stdout] 17 | | }; _doctest_main_src_lib_rs_181_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [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 `Try`) [INFO] [stdout] --> src/lib.rs:191:18 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_181_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut session = Session::new_from_login( [INFO] [stdout] 4 | | "kangalioo", [INFO] [stdout] 5 | | "", [INFO] [stdout] ... | [INFO] [stdout] 12 | | let best_score = session.user_top_10_scores("kangalioo")?[0]; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 16 | | ); [INFO] [stdout] 17 | | }; _doctest_main_src_lib_rs_181_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [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 `Try`) [INFO] [stdout] --> src/lib.rs:194:2 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_181_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut session = Session::new_from_login( [INFO] [stdout] 4 | | "kangalioo", [INFO] [stdout] 5 | | "", [INFO] [stdout] ... | [INFO] [stdout] 15 | | session.score_data(best_score)?.judgements.misses [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 16 | | ); [INFO] [stdout] 17 | | }; _doctest_main_src_lib_rs_181_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Session::user_top_scores_per_skillset (line 526) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:527:18 [INFO] [stdout] | [INFO] [stdout] 3 | let top_scores = session.user_top_scores_per_skillset("kangalioo")?; [INFO] [stdout] | ^^^^^^^ not found in this scope [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 `Try`) [INFO] [stdout] --> src/lib.rs:527:18 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_526_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let top_scores = session.user_top_scores_per_skillset("kangalioo")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | println!("kangalioo's 5th best handstream score is {:?}", top_scores.handstream[4]); [INFO] [stdout] 5 | | }; _doctest_main_src_lib_rs_526_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Session::world_leaderboard (line 667) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:668:19 [INFO] [stdout] | [INFO] [stdout] 3 | let leaderboard = session.world_leaderboard()?; [INFO] [stdout] | ^^^^^^^ not found in this scope [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 `Try`) [INFO] [stdout] --> src/lib.rs:668:19 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_667_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let leaderboard = session.world_leaderboard()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | println!( [INFO] [stdout] ... | [INFO] [stdout] 9 | | ); [INFO] [stdout] 10 | | }; _doctest_main_src_lib_rs_667_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Session::user_top_skillset_scores (line 435) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Skillset7` [INFO] [stdout] --> src/lib.rs:437:60 [INFO] [stdout] | [INFO] [stdout] 4 | let scores = session.user_top_skillset_scores("kangalioo", Skillset7::Chordjack, 10)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Skillset7` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:437:14 [INFO] [stdout] | [INFO] [stdout] 4 | let scores = session.user_top_skillset_scores("kangalioo", Skillset7::Chordjack, 10)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [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 `Try`) [INFO] [stdout] --> src/lib.rs:437:14 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_435_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let scores = session.user_top_skillset_scores("kangalioo", Skillset7::Chordjack, 10)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | }; _doctest_main_src_lib_rs_435_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [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 - Session (line 181) [INFO] [stdout] src/lib.rs - Session::add_user_favorite (line 707) [INFO] [stdout] src/lib.rs - Session::add_user_goal (line 778) [INFO] [stdout] src/lib.rs - Session::chart_leaderboard (line 603) [INFO] [stdout] src/lib.rs - Session::country_leaderboard (line 641) [INFO] [stdout] src/lib.rs - Session::new_from_login (line 222) [INFO] [stdout] src/lib.rs - Session::remove_user_favorite (line 724) [INFO] [stdout] src/lib.rs - Session::remove_user_goal (line 815) [INFO] [stdout] src/lib.rs - Session::score_data (line 570) [INFO] [stdout] src/lib.rs - Session::update_user_goal (line 847) [INFO] [stdout] src/lib.rs - Session::user_details (line 384) [INFO] [stdout] src/lib.rs - Session::user_favorites (line 686) [INFO] [stdout] src/lib.rs - Session::user_goals (line 745) [INFO] [stdout] src/lib.rs - Session::user_latest_scores (line 471) [INFO] [stdout] src/lib.rs - Session::user_ranks_per_skillset (line 499) [INFO] [stdout] src/lib.rs - Session::user_top_10_scores (line 457) [INFO] [stdout] src/lib.rs - Session::user_top_scores_per_skillset (line 526) [INFO] [stdout] src/lib.rs - Session::user_top_skillset_scores (line 435) [INFO] [stdout] src/lib.rs - Session::world_leaderboard (line 667) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 19 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.95s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "6e8894291ce4ec4642e30f9af1d9e817885688127cc52afa3588fdfff66db815", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e8894291ce4ec4642e30f9af1d9e817885688127cc52afa3588fdfff66db815", kill_on_drop: false }` [INFO] [stdout] 6e8894291ce4ec4642e30f9af1d9e817885688127cc52afa3588fdfff66db815