[INFO] fetching crate rqlite 0.1.0... [INFO] testing rqlite-0.1.0 against try#8262275854dc0e5381c9d42d56257d94932c5a87 for pr-90799 [INFO] extracting crate rqlite 0.1.0 into /workspace/builds/worker-55/source [INFO] validating manifest of crates.io crate rqlite 0.1.0 on toolchain 8262275854dc0e5381c9d42d56257d94932c5a87 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rqlite 0.1.0 [INFO] finished tweaking crates.io crate rqlite 0.1.0 [INFO] tweaked toml for crates.io crate rqlite 0.1.0 written to /workspace/builds/worker-55/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-55/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-55/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] afa5f83a6b5e603cc926c17d746baf7f72b40dd01e97902b34cce2b7783fbbb2 [INFO] running `Command { std: "docker" "start" "-a" "afa5f83a6b5e603cc926c17d746baf7f72b40dd01e97902b34cce2b7783fbbb2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "afa5f83a6b5e603cc926c17d746baf7f72b40dd01e97902b34cce2b7783fbbb2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "afa5f83a6b5e603cc926c17d746baf7f72b40dd01e97902b34cce2b7783fbbb2", kill_on_drop: false }` [INFO] [stdout] afa5f83a6b5e603cc926c17d746baf7f72b40dd01e97902b34cce2b7783fbbb2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-55/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-55/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba0c19a192d45f48cbeed3f2eb3b6159f380d271fd55269b176ad1dd0802b1a0 [INFO] running `Command { std: "docker" "start" "-a" "ba0c19a192d45f48cbeed3f2eb3b6159f380d271fd55269b176ad1dd0802b1a0", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling pkg-config v0.3.22 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling smallvec v1.7.0 [INFO] [stderr] Compiling futures-core v0.3.18 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling futures-task v0.3.18 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling futures-util v0.3.18 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling futures-sink v0.3.18 [INFO] [stderr] Compiling futures-channel v0.3.18 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling ryu v1.0.6 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling serde_json v1.0.72 [INFO] [stderr] Compiling openssl-probe v0.1.4 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling tracing-core v0.1.21 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling tokio v1.14.0 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling http v0.2.5 [INFO] [stderr] Compiling tracing v0.1.29 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling openssl-sys v0.9.71 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling tokio-macros v1.6.0 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.7 [INFO] [stderr] Compiling hyper v0.14.15 [INFO] [stderr] Compiling rqlite v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 31.27s [INFO] running `Command { std: "docker" "inspect" "ba0c19a192d45f48cbeed3f2eb3b6159f380d271fd55269b176ad1dd0802b1a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba0c19a192d45f48cbeed3f2eb3b6159f380d271fd55269b176ad1dd0802b1a0", kill_on_drop: false }` [INFO] [stdout] ba0c19a192d45f48cbeed3f2eb3b6159f380d271fd55269b176ad1dd0802b1a0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-55/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-55/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8b7250d7c49f26ca0aa3638f0244a2ed3d75083e0e656a05c411de7a62a884fd [INFO] running `Command { std: "docker" "start" "-a" "8b7250d7c49f26ca0aa3638f0244a2ed3d75083e0e656a05c411de7a62a884fd", kill_on_drop: false }` [INFO] [stderr] Compiling rqlite v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.43s [INFO] running `Command { std: "docker" "inspect" "8b7250d7c49f26ca0aa3638f0244a2ed3d75083e0e656a05c411de7a62a884fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b7250d7c49f26ca0aa3638f0244a2ed3d75083e0e656a05c411de7a62a884fd", kill_on_drop: false }` [INFO] [stdout] 8b7250d7c49f26ca0aa3638f0244a2ed3d75083e0e656a05c411de7a62a884fd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-55/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-55/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a805c4f7067568671c257441d155fd27134ed8bd3cd92c8d3b76ecc6aea33792 [INFO] running `Command { std: "docker" "start" "-a" "a805c4f7067568671c257441d155fd27134ed8bd3cd92c8d3b76ecc6aea33792", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rqlite-88e915b7d811d903) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests rqlite [INFO] [stdout] [INFO] [stdout] running 15 tests [INFO] [stdout] test src/lib.rs - (line 6) ... FAILED [INFO] [stdout] test src/connect.rs - connect::Connection::execute (line 207) ... FAILED [INFO] [stdout] test src/connect.rs - connect::ConnectOptions::scheme (line 67) ... FAILED [INFO] [stdout] test src/connect.rs - connect::Connection::cursor (line 196) ... FAILED [INFO] [stdout] test src/connect.rs - connect::ConnectOptions::user (line 78) ... FAILED [INFO] [stdout] test src/types.rs - types::par (line 49) ... FAILED [INFO] [stdout] test src/connect.rs - connect::Connection::ready (line 342) ... FAILED [INFO] [stdout] test src/connect.rs - connect::ConnectOptions::new (line 48) ... FAILED [INFO] [stdout] test src/cursor.rs - cursor::Cursor::next_row (line 165) ... FAILED [INFO] [stdout] test src/connect.rs - connect::Connection::remove (line 367) ... FAILED [INFO] [stdout] test src/connect.rs - connect::Connection::nodes (line 285) ... FAILED [INFO] [stdout] test src/connect.rs - connect::ConnectOptions::pass (line 90) ... FAILED [INFO] [stdout] test src/connect.rs - connect::ConnectOptions::accept_invalid_cert (line 118) ... FAILED [INFO] [stdout] test src/connect.rs - connect::ConnectOptions::connect (line 131) ... FAILED [INFO] [stdout] test src/cursor.rs - cursor::Cursor::execute (line 66) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 6) stdout ---- [INFO] [stdout] error: cannot find macro `par` in this scope [INFO] [stdout] --> src/lib.rs:14:49 [INFO] [stdout] | [INFO] [stdout] 11 | conn.execute("SELECT * FROM foo where id = ?;", par!(1)).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] rqlite::par [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scheme` [INFO] [stdout] --> src/lib.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 7 | .scheme(Scheme::HTTPS) [INFO] [stdout] | ^^^^^^ use of undeclared type `Scheme` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_6_0() { [INFO] [stdout] | ---------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 6 | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] | ________________^ [INFO] [stdout] 7 | | .scheme(Scheme::HTTPS) [INFO] [stdout] 8 | | .user("root") [INFO] [stdout] 9 | | .pass("root") [INFO] [stdout] 10 | | .connect().await?; [INFO] [stdout] | |____________________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_6_0() { [INFO] [stdout] | ---------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 11 | conn.execute("SELECT * FROM foo where id = ?;", par!(1)).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_6_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rqlite::ConnectOptions; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] ... | [INFO] [stdout] 10 | | .connect().await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 11 | | conn.execute("SELECT * FROM foo where id = ?;", par!(1)).await?; [INFO] [stdout] 12 | | } _doctest_main_src_lib_rs_6_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:14:63 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_6_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rqlite::ConnectOptions; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] ... | [INFO] [stdout] 11 | | conn.execute("SELECT * FROM foo where id = ?;", par!(1)).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 12 | | } _doctest_main_src_lib_rs_6_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/connect.rs - connect::Connection::execute (line 207) stdout ---- [INFO] [stdout] error: cannot find macro `par` in this scope [INFO] [stdout] --> src/connect.rs:210:53 [INFO] [stdout] | [INFO] [stdout] 5 | if conn.execute("INSERT INTO foo(name) VALUES (?)", par!("fiona")).await?.rows_affected() == 1 { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] rqlite::par [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectOptions` [INFO] [stdout] --> src/connect.rs:208:16 [INFO] [stdout] | [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rqlite::ConnectOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/connect.rs:208:16 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_207_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] | ________________^ [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] | |____________________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/connect.rs:210:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_207_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 5 | if conn.execute("INSERT INTO foo(name) VALUES (?)", par!("fiona")).await?.rows_affected() == 1 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connect.rs:209:18 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_207_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | if conn.execute("INSERT INTO foo(name) VALUES (?)", par!("fiona")).await?.rows_affected() == 1 { [INFO] [stdout] 6 | | println!("fiona is now a member of foo"); [INFO] [stdout] 7 | | }; [INFO] [stdout] 8 | | } _doctest_main_src_connect_rs_207_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connect.rs:210:73 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_207_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] 5 | | if conn.execute("INSERT INTO foo(name) VALUES (?)", par!("fiona")).await?.rows_affected() == 1 { [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | println!("fiona is now a member of foo"); [INFO] [stdout] 7 | | }; [INFO] [stdout] 8 | | } _doctest_main_src_connect_rs_207_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/connect.rs - connect::ConnectOptions::scheme (line 67) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scheme` [INFO] [stdout] --> src/connect.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 4 | .scheme(Scheme::HTTPS) [INFO] [stdout] | ^^^^^^ use of undeclared type `Scheme` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectOptions` [INFO] [stdout] --> src/connect.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rqlite::ConnectOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/connect.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_67_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] | ________________^ [INFO] [stdout] 4 | | .scheme(Scheme::HTTPS) [INFO] [stdout] 5 | | .connect().await?; [INFO] [stdout] | |____________________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connect.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_67_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] 4 | | .scheme(Scheme::HTTPS) [INFO] [stdout] 5 | | .connect().await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | } _doctest_main_src_connect_rs_67_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/connect.rs - connect::Connection::cursor (line 196) stdout ---- [INFO] [stdout] error: cannot find macro `par` in this scope [INFO] [stdout] --> src/connect.rs:200:34 [INFO] [stdout] | [INFO] [stdout] 6 | cur.execute("SELECT * FROM foo", par!())?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] rqlite::par [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectOptions` [INFO] [stdout] --> src/connect.rs:197:16 [INFO] [stdout] | [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rqlite::ConnectOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/connect.rs:197:16 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_196_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] | ________________^ [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] | |____________________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connect.rs:198:18 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_196_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | let cur = conn.cursor(); [INFO] [stdout] 6 | | cur.execute("SELECT * FROM foo", par!())?; [INFO] [stdout] 7 | | } _doctest_main_src_connect_rs_196_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connect.rs:200:41 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_196_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] 5 | | let cur = conn.cursor(); [INFO] [stdout] 6 | | cur.execute("SELECT * FROM foo", par!())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } _doctest_main_src_connect_rs_196_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/connect.rs - connect::ConnectOptions::user (line 78) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scheme` [INFO] [stdout] --> src/connect.rs:80:10 [INFO] [stdout] | [INFO] [stdout] 4 | .scheme(Scheme::HTTPS) [INFO] [stdout] | ^^^^^^ use of undeclared type `Scheme` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectOptions` [INFO] [stdout] --> src/connect.rs:79:16 [INFO] [stdout] | [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rqlite::ConnectOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/connect.rs:79:16 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_78_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] | ________________^ [INFO] [stdout] 4 | | .scheme(Scheme::HTTPS) [INFO] [stdout] 5 | | .user("root") [INFO] [stdout] 6 | | .connect().await?; [INFO] [stdout] | |____________________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connect.rs:82:18 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_78_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] 4 | | .scheme(Scheme::HTTPS) [INFO] [stdout] 5 | | .user("root") [INFO] [stdout] 6 | | .connect().await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } _doctest_main_src_connect_rs_78_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/types.rs - types::par (line 49) stdout ---- [INFO] [stdout] error: cannot find macro `par` in this scope [INFO] [stdout] --> src/types.rs:50:50 [INFO] [stdout] | [INFO] [stdout] 3 | conn.execute("SELECT * FROM foo where name = ?", par!("fiona"))?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] rqlite::par [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/types.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 3 | conn.execute("SELECT * FROM foo where name = ?", par!("fiona"))?; [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 `FromResidual`) [INFO] [stdout] --> src/types.rs:50:64 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_types_rs_49_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | conn.execute("SELECT * FROM foo where name = ?", par!("fiona"))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_types_rs_49_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [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/connect.rs - connect::Connection::ready (line 342) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectOptions` [INFO] [stdout] --> src/connect.rs:343:16 [INFO] [stdout] | [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rqlite::ConnectOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/connect.rs:343:16 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_342_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] | ________________^ [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] | |____________________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/connect.rs:345:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_342_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 5 | if conn.ready().await? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connect.rs:344:18 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_342_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | if conn.ready().await? { [INFO] [stdout] 6 | | println!("127.0.0.1:4001 is ready to receive requests"); [INFO] [stdout] 7 | | } [INFO] [stdout] 8 | | } _doctest_main_src_connect_rs_342_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connect.rs:345:22 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_342_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] 5 | | if conn.ready().await? { [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | println!("127.0.0.1:4001 is ready to receive requests"); [INFO] [stdout] 7 | | } [INFO] [stdout] 8 | | } _doctest_main_src_connect_rs_342_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/connect.rs - connect::ConnectOptions::new (line 48) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/connect.rs:51:16 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_48_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 6 | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] | ________________^ [INFO] [stdout] 7 | | .connect().await?; [INFO] [stdout] | |____________________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connect.rs:52:18 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_48_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rqlite::ConnectOptions; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 7 | | .connect().await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 8 | | } _doctest_main_src_connect_rs_48_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/cursor.rs - cursor::Cursor::next_row (line 165) stdout ---- [INFO] [stdout] error: cannot find macro `par` in this scope [INFO] [stdout] --> src/cursor.rs:169:34 [INFO] [stdout] | [INFO] [stdout] 6 | cur.execute("SELECT * FROM foo", par!())?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] rqlite::par [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectOptions` [INFO] [stdout] --> src/cursor.rs:166:16 [INFO] [stdout] | [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rqlite::ConnectOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/cursor.rs:166:16 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_cursor_rs_165_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] | ________________^ [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] | |________________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cursor.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_cursor_rs_165_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | let cur = conn.cursor(); [INFO] [stdout] ... | [INFO] [stdout] 15 | | // 1 | diego [INFO] [stdout] 16 | | } _doctest_main_src_cursor_rs_165_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cursor.rs:169:41 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_cursor_rs_165_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] 5 | | let cur = conn.cursor(); [INFO] [stdout] 6 | | cur.execute("SELECT * FROM foo", par!())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 15 | | // 1 | diego [INFO] [stdout] 16 | | } _doctest_main_src_cursor_rs_165_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cursor.rs:173:21 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_cursor_rs_165_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] 5 | | let cur = conn.cursor(); [INFO] [stdout] ... | [INFO] [stdout] 10 | | i = row.get(0)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 15 | | // 1 | diego [INFO] [stdout] 16 | | } _doctest_main_src_cursor_rs_165_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cursor.rs:174:21 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_cursor_rs_165_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] 5 | | let cur = conn.cursor(); [INFO] [stdout] ... | [INFO] [stdout] 11 | | str = row.get(1)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 15 | | // 1 | diego [INFO] [stdout] 16 | | } _doctest_main_src_cursor_rs_165_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/connect.rs - connect::Connection::remove (line 367) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectOptions` [INFO] [stdout] --> src/connect.rs:368:16 [INFO] [stdout] | [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rqlite::ConnectOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `println` [INFO] [stdout] --> src/connect.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 7 | println("num5 removed from cluster"); [INFO] [stdout] | ^^^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 7 | println!("num5 removed from cluster"); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/connect.rs:368:16 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_367_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] | ________________^ [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] | |____________________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/connect.rs:370:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_367_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 5 | if conn.ready().await? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/connect.rs:371:8 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_367_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 6 | if conn.remove("num5").await? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connect.rs:369:18 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_367_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | if conn.ready().await? { [INFO] [stdout] ... | [INFO] [stdout] 9 | | } [INFO] [stdout] 10 | | } _doctest_main_src_connect_rs_367_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connect.rs:370:22 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_367_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] 5 | | if conn.ready().await? { [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 9 | | } [INFO] [stdout] 10 | | } _doctest_main_src_connect_rs_367_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connect.rs:371:33 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_367_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] 5 | | if conn.ready().await? { [INFO] [stdout] 6 | | if conn.remove("num5").await? { [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 9 | | } [INFO] [stdout] 10 | | } _doctest_main_src_connect_rs_367_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0423, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/connect.rs - connect::Connection::nodes (line 285) stdout ---- [INFO] [stdout] error[E0423]: expected function, found macro `println` [INFO] [stdout] --> src/connect.rs:291:1 [INFO] [stdout] | [INFO] [stdout] 9 | println("{:?}", nodes); [INFO] [stdout] | ^^^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 9 | println!("{:?}", nodes); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/connect.rs:288:16 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_285_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 6 | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] | ________________^ [INFO] [stdout] 7 | | .connect().await?; [INFO] [stdout] | |____________________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/connect.rs:290:24 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_285_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | let nodes: Vec = conn.nodes(false).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connect.rs:289:18 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_285_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rqlite::{ConnectOptions, Node}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 7 | | .connect().await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 15 | | // reachable: true, leader: false, time: 0.000043848 }] [INFO] [stdout] 16 | | } _doctest_main_src_connect_rs_285_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connect.rs:290:47 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_285_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rqlite::{ConnectOptions, Node}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 7 | | .connect().await?; [INFO] [stdout] 8 | | let nodes: Vec = conn.nodes(false).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 15 | | // reachable: true, leader: false, time: 0.000043848 }] [INFO] [stdout] 16 | | } _doctest_main_src_connect_rs_285_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0423, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/connect.rs - connect::ConnectOptions::pass (line 90) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scheme` [INFO] [stdout] --> src/connect.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 4 | .scheme(Scheme::HTTPS) [INFO] [stdout] | ^^^^^^ use of undeclared type `Scheme` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectOptions` [INFO] [stdout] --> src/connect.rs:91:16 [INFO] [stdout] | [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rqlite::ConnectOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/connect.rs:91:16 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_90_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] | ________________^ [INFO] [stdout] 4 | | .scheme(Scheme::HTTPS) [INFO] [stdout] 5 | | .user("root") [INFO] [stdout] 6 | | .pass("root") [INFO] [stdout] 7 | | .connect().await?; [INFO] [stdout] | |____________________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connect.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_90_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] 4 | | .scheme(Scheme::HTTPS) [INFO] [stdout] 5 | | .user("root") [INFO] [stdout] 6 | | .pass("root") [INFO] [stdout] 7 | | .connect().await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 8 | | } _doctest_main_src_connect_rs_90_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/connect.rs - connect::ConnectOptions::accept_invalid_cert (line 118) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scheme` [INFO] [stdout] --> src/connect.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 4 | .scheme(Scheme::HTTPS) [INFO] [stdout] | ^^^^^^ use of undeclared type `Scheme` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectOptions` [INFO] [stdout] --> src/connect.rs:119:16 [INFO] [stdout] | [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rqlite::ConnectOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/connect.rs:119:16 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_118_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] | ________________^ [INFO] [stdout] 4 | | .scheme(Scheme::HTTPS) [INFO] [stdout] 5 | | .user("root") [INFO] [stdout] 6 | | .accept_invalid_cert(true) [INFO] [stdout] 7 | | .connect().await?; [INFO] [stdout] | |____________________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connect.rs:123:18 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_118_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] 4 | | .scheme(Scheme::HTTPS) [INFO] [stdout] 5 | | .user("root") [INFO] [stdout] 6 | | .accept_invalid_cert(true) [INFO] [stdout] 7 | | .connect().await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 8 | | } _doctest_main_src_connect_rs_118_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/connect.rs - connect::ConnectOptions::connect (line 131) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scheme` [INFO] [stdout] --> src/connect.rs:133:10 [INFO] [stdout] | [INFO] [stdout] 4 | .scheme(Scheme::HTTPS) [INFO] [stdout] | ^^^^^^ use of undeclared type `Scheme` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectOptions` [INFO] [stdout] --> src/connect.rs:132:16 [INFO] [stdout] | [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rqlite::ConnectOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/connect.rs:132:16 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_131_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] | ________________^ [INFO] [stdout] 4 | | .scheme(Scheme::HTTPS) [INFO] [stdout] 5 | | .user("root") [INFO] [stdout] 6 | | .accept_invalid_cert(true) [INFO] [stdout] 7 | | .connect().await?; [INFO] [stdout] | |____________________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connect.rs:136:18 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connect_rs_131_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("my.node.local", 4001) [INFO] [stdout] 4 | | .scheme(Scheme::HTTPS) [INFO] [stdout] 5 | | .user("root") [INFO] [stdout] 6 | | .accept_invalid_cert(true) [INFO] [stdout] 7 | | .connect().await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 8 | | } _doctest_main_src_connect_rs_131_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/cursor.rs - cursor::Cursor::execute (line 66) stdout ---- [INFO] [stdout] error: cannot find macro `par` in this scope [INFO] [stdout] --> src/cursor.rs:70:34 [INFO] [stdout] | [INFO] [stdout] 6 | cur.execute("SELECT * FROM foo", par!()).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] rqlite::par [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectOptions` [INFO] [stdout] --> src/cursor.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rqlite::ConnectOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/cursor.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_cursor_rs_66_0() { [INFO] [stdout] | -------------------------------- this is not `async` [INFO] [stdout] 3 | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] | ________________^ [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] | |________________^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/cursor.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_cursor_rs_66_0() { [INFO] [stdout] | -------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 6 | cur.execute("SELECT * FROM foo", par!()).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cursor.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_cursor_rs_66_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | let cur = conn.cursor(); [INFO] [stdout] 6 | | cur.execute("SELECT * FROM foo", par!()).await?; [INFO] [stdout] 7 | | } _doctest_main_src_cursor_rs_66_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/cursor.rs:70:47 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_cursor_rs_66_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut conn = ConnectOptions::new("127.0.0.1", 4001) [INFO] [stdout] 4 | | .connect().await?; [INFO] [stdout] 5 | | let cur = conn.cursor(); [INFO] [stdout] 6 | | cur.execute("SELECT * FROM foo", par!()).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } _doctest_main_src_cursor_rs_66_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, 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/connect.rs - connect::ConnectOptions::accept_invalid_cert (line 118) [INFO] [stdout] src/connect.rs - connect::ConnectOptions::connect (line 131) [INFO] [stdout] src/connect.rs - connect::ConnectOptions::new (line 48) [INFO] [stdout] src/connect.rs - connect::ConnectOptions::pass (line 90) [INFO] [stdout] src/connect.rs - connect::ConnectOptions::scheme (line 67) [INFO] [stdout] src/connect.rs - connect::ConnectOptions::user (line 78) [INFO] [stdout] src/connect.rs - connect::Connection::cursor (line 196) [INFO] [stdout] src/connect.rs - connect::Connection::execute (line 207) [INFO] [stdout] src/connect.rs - connect::Connection::nodes (line 285) [INFO] [stdout] src/connect.rs - connect::Connection::ready (line 342) [INFO] [stdout] src/connect.rs - connect::Connection::remove (line 367) [INFO] [stdout] src/cursor.rs - cursor::Cursor::execute (line 66) [INFO] [stdout] src/cursor.rs - cursor::Cursor::next_row (line 165) [INFO] [stdout] src/lib.rs - (line 6) [INFO] [stdout] src/types.rs - types::par (line 49) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 15 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "a805c4f7067568671c257441d155fd27134ed8bd3cd92c8d3b76ecc6aea33792", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a805c4f7067568671c257441d155fd27134ed8bd3cd92c8d3b76ecc6aea33792", kill_on_drop: false }` [INFO] [stdout] a805c4f7067568671c257441d155fd27134ed8bd3cd92c8d3b76ecc6aea33792