[INFO] fetching crate thirtyfour_query 0.4.1... [INFO] testing thirtyfour_query-0.4.1 against try#eafdee2dfae8c2233b74f98b123308be7ccefcc6 for pr-79296 [INFO] extracting crate thirtyfour_query 0.4.1 into /workspace/builds/worker-11/source [INFO] validating manifest of crates.io crate thirtyfour_query 0.4.1 on toolchain eafdee2dfae8c2233b74f98b123308be7ccefcc6 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate thirtyfour_query 0.4.1 [INFO] finished tweaking crates.io crate thirtyfour_query 0.4.1 [INFO] tweaked toml for crates.io crate thirtyfour_query 0.4.1 written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate crates.io crate thirtyfour_query 0.4.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded chrono v0.4.17 [INFO] [stderr] Downloaded stringmatch v0.2.0 [INFO] [stderr] Downloaded thirtyfour v0.18.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e4bf2baba531dffc2c3a7066f987e037598f6bb9cf9c46d39c4e97c0112ab877 [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" "e4bf2baba531dffc2c3a7066f987e037598f6bb9cf9c46d39c4e97c0112ab877", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e4bf2baba531dffc2c3a7066f987e037598f6bb9cf9c46d39c4e97c0112ab877", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4bf2baba531dffc2c3a7066f987e037598f6bb9cf9c46d39c4e97c0112ab877", kill_on_drop: false }` [INFO] [stdout] e4bf2baba531dffc2c3a7066f987e037598f6bb9cf9c46d39c4e97c0112ab877 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 53569d3ba3d04e759ca290b607b5fe4d5b92c139ca7b5e4eb21a4569ae1d1fe9 [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" "53569d3ba3d04e759ca290b607b5fe4d5b92c139ca7b5e4eb21a4569ae1d1fe9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.22 [INFO] [stderr] Compiling syn v1.0.41 [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Compiling cc v1.0.60 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling pin-project-internal v0.4.23 [INFO] [stderr] Compiling serde_derive v1.0.116 [INFO] [stderr] Compiling serde v1.0.116 [INFO] [stderr] Compiling hashbrown v0.9.0 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling encoding_rs v0.8.24 [INFO] [stderr] Compiling regex-syntax v0.6.18 [INFO] [stderr] Compiling urlparse v0.7.3 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling tracing-core v0.1.16 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling futures-task v0.3.5 [INFO] [stderr] Compiling futures-channel v0.3.5 [INFO] [stderr] Compiling http v0.2.1 [INFO] [stderr] Compiling aho-corasick v0.7.13 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling net2 v0.2.35 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling socket2 v0.3.15 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling stringmatch v0.2.0 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling tracing-attributes v0.1.11 [INFO] [stderr] Compiling serde_repr v0.1.6 [INFO] [stderr] Compiling async-trait v0.1.40 [INFO] [stderr] Compiling tokio v0.2.22 [INFO] [stderr] Compiling tracing v0.1.19 [INFO] [stderr] Compiling pin-project v0.4.23 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.2.6 [INFO] [stderr] Compiling futures-executor v0.3.5 [INFO] [stderr] Compiling futures v0.3.5 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling chrono v0.4.17 [INFO] [stderr] Compiling hyper v0.13.8 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling reqwest v0.10.8 [INFO] [stderr] Compiling thirtyfour v0.18.0 [INFO] [stderr] Compiling thirtyfour_query v0.4.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3m 10s [INFO] running `Command { std: "docker" "inspect" "53569d3ba3d04e759ca290b607b5fe4d5b92c139ca7b5e4eb21a4569ae1d1fe9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53569d3ba3d04e759ca290b607b5fe4d5b92c139ca7b5e4eb21a4569ae1d1fe9", kill_on_drop: false }` [INFO] [stdout] 53569d3ba3d04e759ca290b607b5fe4d5b92c139ca7b5e4eb21a4569ae1d1fe9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a58cbbaca5130499927a688f24d654584d57156c14889d61819c25035592a524 [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" "a58cbbaca5130499927a688f24d654584d57156c14889d61819c25035592a524", kill_on_drop: false }` [INFO] [stderr] Compiling eyre v0.6.1 [INFO] [stderr] Compiling gimli v0.22.0 [INFO] [stderr] Compiling indenter v0.3.0 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Compiling object v0.20.0 [INFO] [stderr] Compiling owo-colors v1.1.3 [INFO] [stderr] Compiling sharded-slab v0.0.9 [INFO] [stderr] Compiling miniz_oxide v0.4.2 [INFO] [stderr] Compiling tracing-subscriber v0.2.12 [INFO] [stderr] Compiling tracing-error v0.1.2 [INFO] [stderr] Compiling color-spantrace v0.1.4 [INFO] [stderr] Compiling addr2line v0.13.0 [INFO] [stderr] Compiling backtrace v0.3.51 [INFO] [stderr] Compiling color-eyre v0.5.6 [INFO] [stderr] Compiling thirtyfour_query v0.4.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 32.31s [INFO] running `Command { std: "docker" "inspect" "a58cbbaca5130499927a688f24d654584d57156c14889d61819c25035592a524", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a58cbbaca5130499927a688f24d654584d57156c14889d61819c25035592a524", kill_on_drop: false }` [INFO] [stdout] a58cbbaca5130499927a688f24d654584d57156c14889d61819c25035592a524 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "test" "--frozen", 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] 7e251be99874f4cc491d49b68941ac73a1492cbb40c4b1ceb9c417e71058f17b [INFO] running `Command { std: "docker" "start" "-a" "7e251be99874f4cc491d49b68941ac73a1492cbb40c4b1ceb9c417e71058f17b", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.18s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/thirtyfour_query-c23999f042878a4e [INFO] [stdout] [INFO] [stderr] Doc-tests thirtyfour_query [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] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/lib.rs - (line 30) ... FAILED [INFO] [stdout] test src/lib.rs - (line 22) ... FAILED [INFO] [stdout] test src/lib.rs - (line 9) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 30) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `driver` in this scope [INFO] [stdout] --> src/lib.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 3 | driver.query(By::Css("thiswont.match")).with_text("testing") [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `By` [INFO] [stdout] --> src/lib.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 3 | driver.query(By::Css("thiswont.match")).with_text("testing") [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use thirtyfour::By; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `By` [INFO] [stdout] --> src/lib.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 4 | .or(By::Id("searchInput")).with_class("search").and_not_enabled() [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use thirtyfour::By; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] 3 | / driver.query(By::Css("thiswont.match")).with_text("testing") [INFO] [stdout] 4 | | .or(By::Id("searchInput")).with_class("search").and_not_enabled() [INFO] [stdout] 5 | | .first().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 `Try`) [INFO] [stdout] --> src/lib.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | driver.query(By::Css("thiswont.match")).with_text("testing") [INFO] [stdout] | |_^ [INFO] [stdout] 4 | || .or(By::Id("searchInput")).with_class("search").and_not_enabled() [INFO] [stdout] 5 | || .first().await?; [INFO] [stdout] | ||___________________^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | } [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 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 22) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `driver` in this scope [INFO] [stdout] --> src/lib.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 4 | driver.query(By::Css("thiswont.match")).or(By::Id("searchInput")).first().await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `By` [INFO] [stdout] --> src/lib.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 4 | driver.query(By::Css("thiswont.match")).or(By::Id("searchInput")).first().await?; [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use thirtyfour::By; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `By` [INFO] [stdout] --> src/lib.rs:24:48 [INFO] [stdout] | [INFO] [stdout] 4 | driver.query(By::Css("thiswont.match")).or(By::Id("searchInput")).first().await?; [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use thirtyfour::By; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] 3 | let elem_text = [INFO] [stdout] 4 | driver.query(By::Css("thiswont.match")).or(By::Id("searchInput")).first().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 `Try`) [INFO] [stdout] --> src/lib.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let elem_text = [INFO] [stdout] 4 | | driver.query(By::Css("thiswont.match")).or(By::Id("searchInput")).first().await?; [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 `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 9) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `driver` in this scope [INFO] [stdout] --> src/lib.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 4 | driver.set_implicit_wait_timeout(Duration::new(0, 0)).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/lib.rs:11:34 [INFO] [stdout] | [INFO] [stdout] 4 | driver.set_implicit_wait_timeout(Duration::new(0, 0)).await?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ElementPoller` [INFO] [stdout] --> src/lib.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 6 | let poller = ElementPoller::TimeoutWithInterval(Duration::new(20, 0), Duration::from_millis(500)); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | use thirtyfour_query::query::ElementPoller; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/lib.rs:13:49 [INFO] [stdout] | [INFO] [stdout] 6 | let poller = ElementPoller::TimeoutWithInterval(Duration::new(20, 0), Duration::from_millis(500)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/lib.rs:13:71 [INFO] [stdout] | [INFO] [stdout] 6 | let poller = ElementPoller::TimeoutWithInterval(Duration::new(20, 0), Duration::from_millis(500)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `driver` in this scope [INFO] [stdout] --> src/lib.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 7 | driver.config_mut().set("ElementPoller", poller)?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ---- this is not `async` [INFO] [stdout] 4 | driver.set_implicit_wait_timeout(Duration::new(0, 0)).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 `Try`) [INFO] [stdout] --> src/lib.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | driver.set_implicit_wait_timeout(Duration::new(0, 0)).await?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let poller = ElementPoller::TimeoutWithInterval(Duration::new(20, 0), Duration::from_millis(500)); [INFO] [stdout] 7 | | driver.config_mut().set("ElementPoller", poller)?; [INFO] [stdout] 8 | | } [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:14:1 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | driver.set_implicit_wait_timeout(Duration::new(0, 0)).await?; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let poller = ElementPoller::TimeoutWithInterval(Duration::new(20, 0), Duration::from_millis(500)); [INFO] [stdout] 7 | | driver.config_mut().set("ElementPoller", poller)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 8 | | } [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 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433, 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 22) [INFO] [stdout] src/lib.rs - (line 30) [INFO] [stdout] src/lib.rs - (line 9) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 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" "7e251be99874f4cc491d49b68941ac73a1492cbb40c4b1ceb9c417e71058f17b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e251be99874f4cc491d49b68941ac73a1492cbb40c4b1ceb9c417e71058f17b", kill_on_drop: false }` [INFO] [stdout] 7e251be99874f4cc491d49b68941ac73a1492cbb40c4b1ceb9c417e71058f17b