[INFO] fetching crate etternaonline_api 0.1.0... [INFO] testing etternaonline_api-0.1.0 against try#03a1ea71b075ab964b5278bc6e74cd6c52c36ee0 for pr-74409 [INFO] extracting crate etternaonline_api 0.1.0 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate etternaonline_api 0.1.0 on toolchain 03a1ea71b075ab964b5278bc6e74cd6c52c36ee0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "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-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 413f3aba860da81214d1d6782fc64768fb1de5efa7a3bdd63e22443a8f8ffbee [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" "413f3aba860da81214d1d6782fc64768fb1de5efa7a3bdd63e22443a8f8ffbee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "413f3aba860da81214d1d6782fc64768fb1de5efa7a3bdd63e22443a8f8ffbee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "413f3aba860da81214d1d6782fc64768fb1de5efa7a3bdd63e22443a8f8ffbee", kill_on_drop: false }` [INFO] [stdout] 413f3aba860da81214d1d6782fc64768fb1de5efa7a3bdd63e22443a8f8ffbee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 60dae653747341929c1029f91d0fb55b3e811ce03cad1275008fceedfa79e89b [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" "60dae653747341929c1029f91d0fb55b3e811ce03cad1275008fceedfa79e89b", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.35 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling once_cell v1.4.0 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling proc-macro-hack v0.5.16 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling base64 v0.11.0 [INFO] [stderr] Compiling chunked_transfer v1.2.0 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling qstring v0.7.2 [INFO] [stderr] Compiling ring v0.16.15 [INFO] [stderr] Compiling standback v0.2.9 [INFO] [stderr] Compiling time v0.2.16 [INFO] [stderr] Compiling serde_json v1.0.56 [INFO] [stderr] Compiling webpki v0.21.3 [INFO] [stderr] Compiling sct v0.6.0 [INFO] [stderr] Compiling webpki-roots v0.19.0 [INFO] [stderr] Compiling rustls v0.17.0 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [INFO] [stderr] Compiling time-macros v0.1.0 [INFO] [stderr] Compiling thiserror v1.0.20 [INFO] [stderr] Compiling cookie v0.13.3 [INFO] [stderr] Compiling ureq v1.3.0 [INFO] [stderr] Compiling etternaonline_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 31.92s [INFO] running `Command { std: "docker" "inspect" "60dae653747341929c1029f91d0fb55b3e811ce03cad1275008fceedfa79e89b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60dae653747341929c1029f91d0fb55b3e811ce03cad1275008fceedfa79e89b", kill_on_drop: false }` [INFO] [stdout] 60dae653747341929c1029f91d0fb55b3e811ce03cad1275008fceedfa79e89b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ba088cf7dabee492e410e9c0cb8a4d96eaa18e5a6ac5ec177c32c9cd0f58b90 [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" "1ba088cf7dabee492e410e9c0cb8a4d96eaa18e5a6ac5ec177c32c9cd0f58b90", kill_on_drop: false }` [INFO] [stderr] Compiling etternaonline_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.92s [INFO] running `Command { std: "docker" "inspect" "1ba088cf7dabee492e410e9c0cb8a4d96eaa18e5a6ac5ec177c32c9cd0f58b90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ba088cf7dabee492e410e9c0cb8a4d96eaa18e5a6ac5ec177c32c9cd0f58b90", kill_on_drop: false }` [INFO] [stdout] 1ba088cf7dabee492e410e9c0cb8a4d96eaa18e5a6ac5ec177c32c9cd0f58b90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 372025ccde295592f0fbd45b1a2005140490bbf6ecd3898ac63fbe22d031c4ac [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" "372025ccde295592f0fbd45b1a2005140490bbf6ecd3898ac63fbe22d031c4ac", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/etternaonline_api-a74e5c458ac1711c [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 [INFO] [stdout] [INFO] [stderr] Doc-tests etternaonline_api [INFO] [stdout] [INFO] [stdout] running 19 tests [INFO] [stdout] test src/lib.rs - Session::chart_leaderboard (line 603) ... FAILED [INFO] [stdout] test src/lib.rs - Session::remove_user_goal (line 815) ... FAILED [INFO] [stdout] test src/lib.rs - Session::user_latest_scores (line 471) ... FAILED [INFO] [stdout] test src/lib.rs - Session::user_favorites (line 686) ... FAILED [INFO] [stdout] test src/lib.rs - Session::add_user_favorite (line 707) ... FAILED [INFO] [stdout] test src/lib.rs - Session::user_goals (line 745) ... FAILED [INFO] [stdout] test src/lib.rs - Session::remove_user_favorite (line 724) ... FAILED [INFO] [stdout] test src/lib.rs - Session::new_from_login (line 222) ... FAILED [INFO] [stdout] test src/lib.rs - Session::user_top_scores_per_skillset (line 526) ... FAILED [INFO] [stdout] test src/lib.rs - Session::update_user_goal (line 847) ... FAILED [INFO] [stdout] test src/lib.rs - Session::score_data (line 570) ... FAILED [INFO] [stdout] test src/lib.rs - Session::country_leaderboard (line 641) ... FAILED [INFO] [stdout] test src/lib.rs - Session (line 181) ... FAILED [INFO] [stdout] test src/lib.rs - Session::user_ranks_per_skillset (line 499) ... FAILED [INFO] [stdout] test src/lib.rs - Session::user_details (line 384) ... FAILED [INFO] [stdout] test src/lib.rs - Session::add_user_goal (line 778) ... FAILED [INFO] [stdout] test src/lib.rs - Session::user_top_10_scores (line 457) ... 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::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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:604:19 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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::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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:818:18 [INFO] [stdout] | [INFO] [stdout] 4 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:820:1 [INFO] [stdout] | [INFO] [stdout] 4 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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::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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:473:14 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | let scores = session.user_latest_scores("kangalioo")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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::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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:709:1 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:746:19 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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::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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:726:1 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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::new_from_login (line 222) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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_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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:527:18 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:850:23 [INFO] [stdout] | [INFO] [stdout] 4 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:854:1 [INFO] [stdout] | [INFO] [stdout] 4 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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::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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:571:18 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let score_info = session.score_data("S65565b5bc377c6d78b60c0aecfd9e05955b4cf63")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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::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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:642:19 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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 (line 181) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:189:43 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:191:18 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:194:2 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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_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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:501:14 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | let scores = session.user_ranks("kangalioo")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:386:15 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | let details = session.user_details("kangalioo")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:780:1 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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_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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:459:14 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:668:19 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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 or module `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 or module `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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:437:14 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::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 [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "372025ccde295592f0fbd45b1a2005140490bbf6ecd3898ac63fbe22d031c4ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "372025ccde295592f0fbd45b1a2005140490bbf6ecd3898ac63fbe22d031c4ac", kill_on_drop: false }` [INFO] [stdout] 372025ccde295592f0fbd45b1a2005140490bbf6ecd3898ac63fbe22d031c4ac