[INFO] fetching crate dynamodb-helper 0.3.0... [INFO] testing dynamodb-helper-0.3.0 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate dynamodb-helper 0.3.0 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate dynamodb-helper 0.3.0 [INFO] finished tweaking crates.io crate dynamodb-helper 0.3.0 [INFO] tweaked toml for crates.io crate dynamodb-helper 0.3.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate dynamodb-helper 0.3.0 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate dynamodb-helper 0.3.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d28f4b594cc889bfbb5d353da03467876b39685d6faf7e979f7d03fc9c8c3c7d [INFO] running `Command { std: "docker" "start" "-a" "d28f4b594cc889bfbb5d353da03467876b39685d6faf7e979f7d03fc9c8c3c7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d28f4b594cc889bfbb5d353da03467876b39685d6faf7e979f7d03fc9c8c3c7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d28f4b594cc889bfbb5d353da03467876b39685d6faf7e979f7d03fc9c8c3c7d", kill_on_drop: false }` [INFO] [stdout] d28f4b594cc889bfbb5d353da03467876b39685d6faf7e979f7d03fc9c8c3c7d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 697dc1baea2ab4ecb4c40993979f7c1f948c36c308bb16aa6bd0edd2e1ee202c [INFO] running `Command { std: "docker" "start" "-a" "697dc1baea2ab4ecb4c40993979f7c1f948c36c308bb16aa6bd0edd2e1ee202c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling unicode-ident v1.0.4 [INFO] [stderr] Compiling itoa v1.0.4 [INFO] [stderr] Compiling once_cell v1.16.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-sink v0.3.25 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling outref v0.5.2 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling time-core v0.1.0 [INFO] [stderr] Compiling num_threads v0.1.6 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling vsimd v0.8.0 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling ryu v1.0.11 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling futures-channel v0.3.25 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling aws-lc-rs v1.13.1 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling bytes-utils v0.1.3 [INFO] [stderr] Compiling base64-simd v0.8.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling rustls v0.23.28 [INFO] [stderr] Compiling semver v1.0.14 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling rustls-native-certs v0.8.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling uuid v1.16.0 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling rustls-native-certs v0.6.3 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling aws-types v1.3.7 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling time v0.3.16 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling cc v1.2.29 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling aws-lc-sys v0.29.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling aws-smithy-async v1.2.5 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling tokio-util v0.7.4 [INFO] [stderr] Compiling aws-smithy-types v1.3.2 [INFO] [stderr] Compiling h2 v0.4.11 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling aws-smithy-runtime-api v1.8.1 [INFO] [stderr] Compiling aws-smithy-json v0.61.4 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling aws-credential-types v1.2.3 [INFO] [stderr] Compiling aws-smithy-http v0.62.1 [INFO] [stderr] Compiling aws-smithy-observability v0.1.3 [INFO] [stderr] Compiling aws-sigv4 v1.3.3 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.14 [INFO] [stderr] Compiling rustls-webpki v0.103.3 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling tokio-rustls v0.26.2 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling aws-smithy-http-client v1.0.6 [INFO] [stderr] Compiling aws-smithy-runtime v1.8.3 [INFO] [stderr] Compiling aws-runtime v1.5.8 [INFO] [stderr] Compiling aws-sdk-dynamodb v1.82.0 [INFO] [stderr] Compiling dynamodb-helper v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 19s [INFO] running `Command { std: "docker" "inspect" "697dc1baea2ab4ecb4c40993979f7c1f948c36c308bb16aa6bd0edd2e1ee202c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "697dc1baea2ab4ecb4c40993979f7c1f948c36c308bb16aa6bd0edd2e1ee202c", kill_on_drop: false }` [INFO] [stdout] 697dc1baea2ab4ecb4c40993979f7c1f948c36c308bb16aa6bd0edd2e1ee202c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a5a02225b73dfe3c78e6886f3f43fecc21d3ad049e0ddc961df9d399193f3256 [INFO] running `Command { std: "docker" "start" "-a" "a5a02225b73dfe3c78e6886f3f43fecc21d3ad049e0ddc961df9d399193f3256", kill_on_drop: false }` [INFO] [stderr] Compiling dynamodb-helper v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.81s [INFO] running `Command { std: "docker" "inspect" "a5a02225b73dfe3c78e6886f3f43fecc21d3ad049e0ddc961df9d399193f3256", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5a02225b73dfe3c78e6886f3f43fecc21d3ad049e0ddc961df9d399193f3256", kill_on_drop: false }` [INFO] [stdout] a5a02225b73dfe3c78e6886f3f43fecc21d3ad049e0ddc961df9d399193f3256 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c057ec7976f2f965462cf1188c1fd6c83a7d175fb35e7854b4bbcedc18fa13b3 [INFO] running `Command { std: "docker" "start" "-a" "c057ec7976f2f965462cf1188c1fd6c83a7d175fb35e7854b4bbcedc18fa13b3", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/dynamodb_helper-e9bf76979e6acaae) [INFO] [stdout] [INFO] [stderr] Doc-tests dynamodb_helper [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/lib.rs - (line 56) ... FAILED [INFO] [stdout] test src/lib.rs - (line 114) ... FAILED [INFO] [stdout] test src/lib.rs - (line 130) ... FAILED [INFO] [stdout] test src/lib.rs - (line 10) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 56) stdout ---- [INFO] [stdout] error: expected one of `!` or `::`, found `-` [INFO] [stdout] --> src/lib.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 1 | aws-config = "1.8" [INFO] [stdout] | ^ expected one of `!` or `::` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 114) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `SdkError` in this scope [INFO] [stdout] --> src/lib.rs:117:14 [INFO] [stdout] | [INFO] [stdout] 5 | AwsError(SdkError), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 + use aws_sdk_dynamodb::error::SdkError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ScanError` in this scope [INFO] [stdout] --> src/lib.rs:117:23 [INFO] [stdout] | [INFO] [stdout] 5 | AwsError(SdkError), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use aws_sdk_dynamodb::operation::scan::ScanError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 130) stdout ---- [INFO] [stdout] error: cannot find derive macro `DynamoDb` in this scope [INFO] [stdout] --> src/lib.rs:131:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(DynamoDb)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use dynamodb_helper::DynamoDb; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `exclusion` in this scope [INFO] [stdout] --> src/lib.rs:132:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[exclusion("scan", "delete_table", "create_table")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `partition` in this scope [INFO] [stdout] --> src/lib.rs:134:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[partition] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 10) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `aws_config` [INFO] [stdout] --> src/lib.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(DynamoDb)] [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `aws_config` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `aws_config`, use `cargo add aws_config` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the derive macro `DynamoDb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `aws_config` [INFO] [stdout] --> src/lib.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(DynamoDb)] [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `aws_config` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `aws_config`, use `cargo add aws_config` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the derive macro `DynamoDb` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `a_dynamodb_client` in this scope [INFO] [stdout] --> src/lib.rs:37:35 [INFO] [stdout] | [INFO] [stdout] 30 | let other_db = OtherStructDb::new(a_dynamodb_client, "exampleTable"); [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:22:101 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_10_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 15 | let db = ExampleStructDb::build(aws_sdk_dynamodb::config::Region::new("eu-west-1"), "exampleTable").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:25:51 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_10_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 18 | let example_struct = db.get("someId".to_string()).await.expect("This one to exist"); [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:40:80 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_10_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 33 | let other_struct = other_db.get("someId".to_string(), "someRange".to_string()).await.expect("This one to exist"); [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:42:76 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_10_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 35 | let multiple_structs = other_db.get_by_partition_key("someId".to_string()).await.expect("This one to exist"); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 10) [INFO] [stdout] src/lib.rs - (line 114) [INFO] [stdout] src/lib.rs - (line 130) [INFO] [stdout] src/lib.rs - (line 56) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.74s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "c057ec7976f2f965462cf1188c1fd6c83a7d175fb35e7854b4bbcedc18fa13b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c057ec7976f2f965462cf1188c1fd6c83a7d175fb35e7854b4bbcedc18fa13b3", kill_on_drop: false }` [INFO] [stdout] c057ec7976f2f965462cf1188c1fd6c83a7d175fb35e7854b4bbcedc18fa13b3