[INFO] cloning repository https://github.com/BFlex-financial/bfinancial-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BFlex-financial/bfinancial-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBFlex-financial%2Fbfinancial-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBFlex-financial%2Fbfinancial-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e4d96def8781f17cfde7a154d8130030a9caba48
[INFO] testing BFlex-financial/bfinancial-rs against 1.90.0 for beta-1.91-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBFlex-financial%2Fbfinancial-rs" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/BFlex-financial/bfinancial-rs
[INFO] finished tweaking git repo https://github.com/BFlex-financial/bfinancial-rs
[INFO] tweaked toml for git repo https://github.com/BFlex-financial/bfinancial-rs written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/BFlex-financial/bfinancial-rs on toolchain 1.90.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/BFlex-financial/bfinancial-rs 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" "+1.90.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded hyper-rustls v0.27.2
[INFO] [stderr]   Downloaded security-framework-sys v2.11.1
[INFO] [stderr]   Downloaded rustls-pki-types v1.8.0
[INFO] [stderr]   Downloaded tempfile v3.12.0
[INFO] [stderr]   Downloaded rustls-webpki v0.102.6
[INFO] [stderr]   Downloaded syn v2.0.76
[INFO] [stderr]   Downloaded object v0.36.3
[INFO] [stderr]   Downloaded tokio v1.39.3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e838f512b85562b0bdfb144e8e3a484efa039ebe958293d7670320356838be57
[INFO] running `Command { std: "docker" "start" "-a" "e838f512b85562b0bdfb144e8e3a484efa039ebe958293d7670320356838be57", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e838f512b85562b0bdfb144e8e3a484efa039ebe958293d7670320356838be57", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e838f512b85562b0bdfb144e8e3a484efa039ebe958293d7670320356838be57", kill_on_drop: false }`
[INFO] [stdout] e838f512b85562b0bdfb144e8e3a484efa039ebe958293d7670320356838be57
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d196de927609d30a4698b0a3528e801f389dd04c3dc2f35f9c4a06a561c0575d
[INFO] running `Command { std: "docker" "start" "-a" "d196de927609d30a4698b0a3528e801f389dd04c3dc2f35f9c4a06a561c0575d", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.86
[INFO] [stderr]    Compiling libc v0.2.158
[INFO] [stderr]    Compiling bytes v1.7.1
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling cc v1.1.15
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling httparse v1.9.4
[INFO] [stderr]    Compiling openssl v0.10.66
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling bitflags v2.6.0
[INFO] [stderr]    Compiling native-tls v0.2.12
[INFO] [stderr]    Compiling serde v1.0.209
[INFO] [stderr]    Compiling http v1.1.0
[INFO] [stderr]    Compiling log v0.4.22
[INFO] [stderr]    Compiling unicode-normalization v0.1.23
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling serde_json v1.0.127
[INFO] [stderr]    Compiling rustls-pki-types v1.8.0
[INFO] [stderr]    Compiling indexmap v2.4.0
[INFO] [stderr]    Compiling syn v2.0.76
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling signal-hook-registry v1.4.2
[INFO] [stderr]    Compiling socket2 v0.5.7
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling mio v1.0.2
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling openssl-sys v0.9.103
[INFO] [stderr]    Compiling http-body-util v0.1.2
[INFO] [stderr]    Compiling idna v0.5.0
[INFO] [stderr]    Compiling rustls-pemfile v2.1.3
[INFO] [stderr]    Compiling sync_wrapper v1.0.1
[INFO] [stderr]    Compiling url v2.5.2
[INFO] [stderr]    Compiling tokio-macros v2.4.0
[INFO] [stderr]    Compiling pin-project-internal v1.1.5
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling serde_derive v1.0.209
[INFO] [stderr]    Compiling tokio v1.39.3
[INFO] [stderr]    Compiling pin-project v1.1.5
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling tokio-util v0.7.11
[INFO] [stderr]    Compiling tower v0.4.13
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling h2 v0.4.6
[INFO] [stderr]    Compiling hyper v1.4.1
[INFO] [stderr]    Compiling hyper-util v0.1.7
[INFO] [stderr]    Compiling hyper-tls v0.6.0
[INFO] [stderr]    Compiling reqwest v0.12.7
[INFO] [stderr]    Compiling bfinancial-rs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: value assigned to `start` is never read
[INFO] [stdout]    --> src/models/server/payment.rs:159:13
[INFO] [stdout]     |
[INFO] [stdout] 159 |     let mut start: String = String::new();
[INFO] [stdout]     |             ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 57.93s
[INFO] running `Command { std: "docker" "inspect" "d196de927609d30a4698b0a3528e801f389dd04c3dc2f35f9c4a06a561c0575d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d196de927609d30a4698b0a3528e801f389dd04c3dc2f35f9c4a06a561c0575d", kill_on_drop: false }`
[INFO] [stdout] d196de927609d30a4698b0a3528e801f389dd04c3dc2f35f9c4a06a561c0575d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a9dbe5f0553882c9dc1e62f1b8607a634cef956963078c129d7b32191343efc1
[INFO] running `Command { std: "docker" "start" "-a" "a9dbe5f0553882c9dc1e62f1b8607a634cef956963078c129d7b32191343efc1", kill_on_drop: false }`
[INFO] [stderr]    Compiling bfinancial-rs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: value assigned to `start` is never read
[INFO] [stdout]    --> src/models/server/payment.rs:159:13
[INFO] [stdout]     |
[INFO] [stdout] 159 |     let mut start: String = String::new();
[INFO] [stdout]     |             ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `start` is never read
[INFO] [stdout]    --> src/models/server/payment.rs:159:13
[INFO] [stdout]     |
[INFO] [stdout] 159 |     let mut start: String = String::new();
[INFO] [stdout]     |             ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.22s
[INFO] running `Command { std: "docker" "inspect" "a9dbe5f0553882c9dc1e62f1b8607a634cef956963078c129d7b32191343efc1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a9dbe5f0553882c9dc1e62f1b8607a634cef956963078c129d7b32191343efc1", kill_on_drop: false }`
[INFO] [stdout] a9dbe5f0553882c9dc1e62f1b8607a634cef956963078c129d7b32191343efc1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 2b6863eba393e0859c2c30b64157273290f7dd242ace8bd83cf71986539df81e
[INFO] running `Command { std: "docker" "start" "-a" "2b6863eba393e0859c2c30b64157273290f7dd242ace8bd83cf71986539df81e", kill_on_drop: false }`
[INFO] [stderr] warning: value assigned to `start` is never read
[INFO] [stderr]    --> src/models/server/payment.rs:159:13
[INFO] [stderr]     |
[INFO] [stderr] 159 |     let mut start: String = String::new();
[INFO] [stderr]     |             ^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = help: maybe it is overwritten before being read?
[INFO] [stderr]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `bfinancial-rs` (lib) generated 1 warning
[INFO] [stderr] warning: `bfinancial-rs` (lib test) generated 1 warning (1 duplicate)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/bfinancial_rs-6bef2868d8bd54c8)
[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]      Running tests/automation.rs (/opt/rustwide/target/debug/deps/automation-005dce6e21adbbf1)
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test lib_tests::test_spawn ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests bfinancial_rs
[INFO] [stdout] 
[INFO] [stdout] running 5 tests
[INFO] [stdout] test src/payments.rs - payments::Payments::create (line 31) ... FAILED
[INFO] [stdout] test src/models/server/payment.rs - models::server::payment::Response::access (line 97) ... FAILED
[INFO] [stdout] test src/models/server/payment.rs - models::server::payment::Response::access (line 79) ... FAILED
[INFO] [stdout] test src/payments.rs - payments::Payments::obtain (line 167) ... FAILED
[INFO] [stdout] test src/models/server/payment.rs - models::server::payment::Response::check (line 129) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/payments.rs - payments::Payments::create (line 31) stdout ----
[INFO] [stdout] error: this file contains an unclosed delimiter
[INFO] [stdout]   --> src/payments.rs:45:4
[INFO] [stdout]    |
[INFO] [stdout]  7 | assert!(matches!(
[INFO] [stdout]    |        - unclosed delimiter
[INFO] [stdout] ...
[INFO] [stdout] 14 | ));
[INFO] [stdout]    |    ^
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/models/server/payment.rs - models::server::payment::Response::access (line 97) stdout ----
[INFO] [stdout] error: expected identifier, found `...`
[INFO] [stdout]  --> src/models/server/payment.rs:99:97
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                                                            ------------------   ^^^ expected identifier
[INFO] [stdout]   |                                                                            |
[INFO] [stdout]   |                                                                            while parsing this struct
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Response` in this scope
[INFO] [stdout]  --> src/models/server/payment.rs:99:21
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                     ^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use bfinancial_rs::models::server::payment::Response;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use reqwest::Response;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `payments` in this scope
[INFO] [stdout]  --> src/models/server/payment.rs:99:41
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                         ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PaymentCreate`
[INFO] [stdout]  --> src/models/server/payment.rs:99:57
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                                         ^^^^^^^^^^^^^ use of undeclared type `PaymentCreate`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use bfinancial_rs::models::client::payment::PaymentCreate;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `payment`
[INFO] [stdout]  --> src/models/server/payment.rs:99:76
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                                                            ^^^^^^^ use of unresolved module or unlinked crate `payment`
[INFO] [stdout]   |
[INFO] [stdout] help: to make use of source file src/models/server/payment.rs, use `mod payment` in this file to declare the module
[INFO] [stdout]   |
[INFO] [stdout] 2 + mod payment;
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 2 + use bfinancial_rs::models::client::payment;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Pix` in this scope
[INFO] [stdout]   --> src/models/server/payment.rs:107:11
[INFO] [stdout]    |
[INFO] [stdout] 12 | let pix: &Pix = payment.access::<Pix>().unwrap();
[INFO] [stdout]    |           ^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  2 + use bfinancial_rs::models::server::payment::Pix;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Pix` in this scope
[INFO] [stdout]   --> src/models/server/payment.rs:107:34
[INFO] [stdout]    |
[INFO] [stdout] 12 | let pix: &Pix = payment.access::<Pix>().unwrap();
[INFO] [stdout]    |                                  ^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  2 + use bfinancial_rs::models::server::payment::Pix;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/models/server/payment.rs:99:105
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_models_server_payment_rs_97_0() {
[INFO] [stdout]   |                                      ---------------------------------------------------- this is not `async`
[INFO] [stdout] 3 | // Create the payment
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                                                                                         ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/models/server/payment.rs - models::server::payment::Response::access (line 79) stdout ----
[INFO] [stdout] error: expected identifier, found `...`
[INFO] [stdout]  --> src/models/server/payment.rs:81:97
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                                                            ------------------   ^^^ expected identifier
[INFO] [stdout]   |                                                                            |
[INFO] [stdout]   |                                                                            while parsing this struct
[INFO] [stdout] 
[INFO] [stdout] error: unexpected token: `...`
[INFO] [stdout]   --> src/models/server/payment.rs:90:27
[INFO] [stdout]    |
[INFO] [stdout] 13 |   Response::Pix(pix) => { ... },
[INFO] [stdout]    |                           ^^^
[INFO] [stdout]    |
[INFO] [stdout] help: use `..` for an exclusive range
[INFO] [stdout]    |
[INFO] [stdout] 13 -   Response::Pix(pix) => { ... },
[INFO] [stdout] 13 +   Response::Pix(pix) => { .. },
[INFO] [stdout]    |
[INFO] [stdout] help: or `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout] 13 -   Response::Pix(pix) => { ... },
[INFO] [stdout] 13 +   Response::Pix(pix) => { ..= },
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0586]: inclusive range with no end
[INFO] [stdout]   --> src/models/server/payment.rs:90:27
[INFO] [stdout]    |
[INFO] [stdout] 13 |   Response::Pix(pix) => { ... },
[INFO] [stdout]    |                           ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
[INFO] [stdout] help: use `..` instead
[INFO] [stdout]    |
[INFO] [stdout] 13 -   Response::Pix(pix) => { ... },
[INFO] [stdout] 13 +   Response::Pix(pix) => { .. },
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: unexpected token: `...`
[INFO] [stdout]   --> src/models/server/payment.rs:91:29
[INFO] [stdout]    |
[INFO] [stdout] 14 |   Response::Card(card) => { ... },
[INFO] [stdout]    |                             ^^^
[INFO] [stdout]    |
[INFO] [stdout] help: use `..` for an exclusive range
[INFO] [stdout]    |
[INFO] [stdout] 14 -   Response::Card(card) => { ... },
[INFO] [stdout] 14 +   Response::Card(card) => { .. },
[INFO] [stdout]    |
[INFO] [stdout] help: or `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout] 14 -   Response::Card(card) => { ... },
[INFO] [stdout] 14 +   Response::Card(card) => { ..= },
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0586]: inclusive range with no end
[INFO] [stdout]   --> src/models/server/payment.rs:91:29
[INFO] [stdout]    |
[INFO] [stdout] 14 |   Response::Card(card) => { ... },
[INFO] [stdout]    |                             ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
[INFO] [stdout] help: use `..` instead
[INFO] [stdout]    |
[INFO] [stdout] 14 -   Response::Card(card) => { ... },
[INFO] [stdout] 14 +   Response::Card(card) => { .. },
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Response` in this scope
[INFO] [stdout]  --> src/models/server/payment.rs:81:21
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                     ^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use bfinancial_rs::models::server::payment::Response;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use reqwest::Response;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `payments` in this scope
[INFO] [stdout]  --> src/models/server/payment.rs:81:41
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                         ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PaymentCreate`
[INFO] [stdout]  --> src/models/server/payment.rs:81:57
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                                         ^^^^^^^^^^^^^ use of undeclared type `PaymentCreate`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use bfinancial_rs::models::client::payment::PaymentCreate;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `payment`
[INFO] [stdout]  --> src/models/server/payment.rs:81:76
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                                                            ^^^^^^^ use of unresolved module or unlinked crate `payment`
[INFO] [stdout]   |
[INFO] [stdout] help: to make use of source file src/models/server/payment.rs, use `mod payment` in this file to declare the module
[INFO] [stdout]   |
[INFO] [stdout] 2 + mod payment;
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 2 + use bfinancial_rs::models::client::payment;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Response`
[INFO] [stdout]   --> src/models/server/payment.rs:90:3
[INFO] [stdout]    |
[INFO] [stdout] 13 |   Response::Pix(pix) => { ... },
[INFO] [stdout]    |   ^^^^^^^^ use of undeclared type `Response`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  2 + use bfinancial_rs::models::server::payment::Response;
[INFO] [stdout]    |
[INFO] [stdout]  2 + use reqwest::Response;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Response`
[INFO] [stdout]   --> src/models/server/payment.rs:91:3
[INFO] [stdout]    |
[INFO] [stdout] 14 |   Response::Card(card) => { ... },
[INFO] [stdout]    |   ^^^^^^^^ use of undeclared type `Response`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  2 + use bfinancial_rs::models::server::payment::Response;
[INFO] [stdout]    |
[INFO] [stdout]  2 + use reqwest::Response;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/models/server/payment.rs:81:105
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_models_server_payment_rs_79_0() {
[INFO] [stdout]   |                                      ---------------------------------------------------- this is not `async`
[INFO] [stdout] 3 | // Create the payment
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                                                                                         ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 12 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0586, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/payments.rs - payments::Payments::obtain (line 167) stdout ----
[INFO] [stdout] error: expected identifier, found `...`
[INFO] [stdout]  --> src/payments.rs:169:97
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                                                            ------------------   ^^^ expected identifier
[INFO] [stdout]   |                                                                            |
[INFO] [stdout]   |                                                                            while parsing this struct
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Response` in this scope
[INFO] [stdout]  --> src/payments.rs:169:21
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                     ^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use bfinancial_rs::models::server::payment::Response;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use reqwest::Response;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `payments` in this scope
[INFO] [stdout]  --> src/payments.rs:169:41
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                         ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PaymentCreate`
[INFO] [stdout]  --> src/payments.rs:169:57
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                                         ^^^^^^^^^^^^^ use of undeclared type `PaymentCreate`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use bfinancial_rs::models::client::payment::PaymentCreate;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `payment`
[INFO] [stdout]  --> src/payments.rs:169:76
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                                                            ^^^^^^^ use of unresolved module or unlinked crate `payment`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `payment`, use `cargo add payment` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 2 + use bfinancial_rs::models::client::payment;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Pix` in this scope
[INFO] [stdout]   --> src/payments.rs:177:11
[INFO] [stdout]    |
[INFO] [stdout] 12 | let pix: &Pix = payment.access::<Pix>().unwrap();
[INFO] [stdout]    |           ^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  2 + use bfinancial_rs::models::server::payment::Pix;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Pix` in this scope
[INFO] [stdout]   --> src/payments.rs:177:34
[INFO] [stdout]    |
[INFO] [stdout] 12 | let pix: &Pix = payment.access::<Pix>().unwrap();
[INFO] [stdout]    |                                  ^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  2 + use bfinancial_rs::models::server::payment::Pix;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `payments` in this scope
[INFO] [stdout]   --> src/payments.rs:180:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | let info = payments.obtain(&pix.payment_id).await.unwrap();
[INFO] [stdout]    |            ^^^^^^^^ help: a local variable with a similar name exists: `payment`
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/payments.rs:169:105
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_payments_rs_167_0() {
[INFO] [stdout]   |                                      ---------------------------------------- this is not `async`
[INFO] [stdout] 3 | // Create the payment
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).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/payments.rs:180:45
[INFO] [stdout]    |
[INFO] [stdout]  2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_payments_rs_167_0() {
[INFO] [stdout]    |                                      ---------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 15 | let info = payments.obtain(&pix.payment_id).await.unwrap();
[INFO] [stdout]    |                                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/models/server/payment.rs - models::server::payment::Response::check (line 129) stdout ----
[INFO] [stdout] error: expected identifier, found `...`
[INFO] [stdout]  --> src/models/server/payment.rs:131:97
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                                                            ------------------   ^^^ expected identifier
[INFO] [stdout]   |                                                                            |
[INFO] [stdout]   |                                                                            while parsing this struct
[INFO] [stdout] 
[INFO] [stdout] error: unexpected token: `...`
[INFO] [stdout]  --> src/models/server/payment.rs:134:31
[INFO] [stdout]   |
[INFO] [stdout] 7 | if let Err(fail) = &payment { ... }
[INFO] [stdout]   |                               ^^^
[INFO] [stdout]   |
[INFO] [stdout] help: use `..` for an exclusive range
[INFO] [stdout]   |
[INFO] [stdout] 7 - if let Err(fail) = &payment { ... }
[INFO] [stdout] 7 + if let Err(fail) = &payment { .. }
[INFO] [stdout]   |
[INFO] [stdout] help: or `..=` for an inclusive range
[INFO] [stdout]   |
[INFO] [stdout] 7 - if let Err(fail) = &payment { ... }
[INFO] [stdout] 7 + if let Err(fail) = &payment { ..= }
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0586]: inclusive range with no end
[INFO] [stdout]  --> src/models/server/payment.rs:134:31
[INFO] [stdout]   |
[INFO] [stdout] 7 | if let Err(fail) = &payment { ... }
[INFO] [stdout]   |                               ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
[INFO] [stdout] help: use `..` instead
[INFO] [stdout]   |
[INFO] [stdout] 7 - if let Err(fail) = &payment { ... }
[INFO] [stdout] 7 + if let Err(fail) = &payment { .. }
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Response` in this scope
[INFO] [stdout]  --> src/models/server/payment.rs:131:21
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                     ^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use bfinancial_rs::models::server::payment::Response;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use reqwest::Response;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `payments` in this scope
[INFO] [stdout]  --> src/models/server/payment.rs:131:41
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                         ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PaymentCreate`
[INFO] [stdout]  --> src/models/server/payment.rs:131:57
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                                         ^^^^^^^^^^^^^ use of undeclared type `PaymentCreate`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use bfinancial_rs::models::client::payment::PaymentCreate;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `payment`
[INFO] [stdout]  --> src/models/server/payment.rs:131:76
[INFO] [stdout]   |
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).await;
[INFO] [stdout]   |                                                                            ^^^^^^^ use of unresolved module or unlinked crate `payment`
[INFO] [stdout]   |
[INFO] [stdout] help: to make use of source file src/models/server/payment.rs, use `mod payment` in this file to declare the module
[INFO] [stdout]   |
[INFO] [stdout] 2 + mod payment;
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 2 + use bfinancial_rs::models::client::payment;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]   --> src/models/server/payment.rs:144:18
[INFO] [stdout]    |
[INFO] [stdout] 17 |   payment.check((client, "approved")).await
[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/models/server/payment.rs:131:105
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_models_server_payment_rs_129_0() {
[INFO] [stdout]   |                                      ----------------------------------------------------- this is not `async`
[INFO] [stdout] 3 | // Create the payment
[INFO] [stdout] 4 | let payment: Result<Response, String> = payments.create(PaymentCreate::Pix(payment::PixCreate { ... })).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/models/server/payment.rs:144:39
[INFO] [stdout]    |
[INFO] [stdout]  2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_models_server_payment_rs_129_0() {
[INFO] [stdout]    |                                      ----------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 17 |   payment.check((client, "approved")).await
[INFO] [stdout]    |                                       ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0586, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/models/server/payment.rs - models::server::payment::Response::access (line 79)
[INFO] [stdout]     src/models/server/payment.rs - models::server::payment::Response::access (line 97)
[INFO] [stdout]     src/models/server/payment.rs - models::server::payment::Response::check (line 129)
[INFO] [stdout]     src/payments.rs - payments::Payments::create (line 31)
[INFO] [stdout]     src/payments.rs - payments::Payments::obtain (line 167)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.42s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "2b6863eba393e0859c2c30b64157273290f7dd242ace8bd83cf71986539df81e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2b6863eba393e0859c2c30b64157273290f7dd242ace8bd83cf71986539df81e", kill_on_drop: false }`
[INFO] [stdout] 2b6863eba393e0859c2c30b64157273290f7dd242ace8bd83cf71986539df81e
