[INFO] fetching crate par 0.3.10... [INFO] testing par-0.3.10 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate par 0.3.10 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate par 0.3.10 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate par 0.3.10 [INFO] tweaked toml for crates.io crate par 0.3.10 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate par 0.3.10 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate par 0.3.10 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 99c829e27215f007f2bc00b117aa48fc0fd9a0ff4b55c8332c468d95b26283e6 [INFO] running `Command { std: "docker" "start" "-a" "99c829e27215f007f2bc00b117aa48fc0fd9a0ff4b55c8332c468d95b26283e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "99c829e27215f007f2bc00b117aa48fc0fd9a0ff4b55c8332c468d95b26283e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99c829e27215f007f2bc00b117aa48fc0fd9a0ff4b55c8332c468d95b26283e6", kill_on_drop: false }` [INFO] [stdout] 99c829e27215f007f2bc00b117aa48fc0fd9a0ff4b55c8332c468d95b26283e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2459881e24275225cffd5f0924aaf0f53b110c519dfae78d1b90eec05561213e [INFO] running `Command { std: "docker" "start" "-a" "2459881e24275225cffd5f0924aaf0f53b110c519dfae78d1b90eec05561213e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tungstenite v0.24.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tokio-tungstenite v0.24.0 [INFO] [stderr] Compiling par v0.3.10 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.19s [INFO] running `Command { std: "docker" "inspect" "2459881e24275225cffd5f0924aaf0f53b110c519dfae78d1b90eec05561213e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2459881e24275225cffd5f0924aaf0f53b110c519dfae78d1b90eec05561213e", kill_on_drop: false }` [INFO] [stdout] 2459881e24275225cffd5f0924aaf0f53b110c519dfae78d1b90eec05561213e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 361da4af6009cad9f924c8281b015785f6363106be2042b30c100cf5e05dd470 [INFO] running `Command { std: "docker" "start" "-a" "361da4af6009cad9f924c8281b015785f6363106be2042b30c100cf5e05dd470", kill_on_drop: false }` [INFO] [stderr] Compiling par v0.3.10 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.49s [INFO] running `Command { std: "docker" "inspect" "361da4af6009cad9f924c8281b015785f6363106be2042b30c100cf5e05dd470", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "361da4af6009cad9f924c8281b015785f6363106be2042b30c100cf5e05dd470", kill_on_drop: false }` [INFO] [stdout] 361da4af6009cad9f924c8281b015785f6363106be2042b30c100cf5e05dd470 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1a45b055a2bf38065395ee9edf7315d80730917be0b77011366de37c4a632ca4 [INFO] running `Command { std: "docker" "start" "-a" "1a45b055a2bf38065395ee9edf7315d80730917be0b77011366de37c4a632ca4", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/par-95191a166fbb4017) [INFO] [stdout] [INFO] [stderr] Doc-tests par [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 41 tests [INFO] [stdout] test src/exchange.rs - exchange::Send (line 47) ... FAILED [INFO] [stdout] test src/lib.rs - (line 126) ... FAILED [INFO] [stdout] test src/lib.rs - (line 269) ... FAILED [INFO] [stdout] test src/exchange.rs - exchange::Send::choose (line 191) ... FAILED [INFO] [stdout] test src/lib.rs - (line 103) ... FAILED [INFO] [stdout] test src/exchange.rs - exchange::Send::handle (line 204) ... FAILED [INFO] [stdout] test src/lib.rs - (line 236) ... ok [INFO] [stdout] test src/lib.rs - (line 279) ... FAILED [INFO] [stdout] test src/exchange.rs - exchange::Send (line 55) ... FAILED [INFO] [stdout] test src/lib.rs - (line 155) ... FAILED [INFO] [stdout] test src/lib.rs - (line 136) ... ok [INFO] [stdout] test src/lib.rs - (line 312) ... FAILED [INFO] [stdout] test src/lib.rs - (line 335) ... FAILED [INFO] [stdout] test src/lib.rs - (line 294) ... FAILED [INFO] [stdout] test src/lib.rs - (line 375) ... FAILED [INFO] [stdout] test src/lib.rs - (line 369) ... FAILED [INFO] [stdout] test src/lib.rs - (line 344) ... FAILED [INFO] [stdout] test src/lib.rs - (line 354) ... FAILED [INFO] [stdout] test src/lib.rs - (line 464) ... FAILED [INFO] [stdout] test src/lib.rs - (line 475) ... FAILED [INFO] [stdout] test src/lib.rs - (line 408) ... FAILED [INFO] [stdout] test src/lib.rs - (line 569) ... FAILED [INFO] [stdout] test src/lib.rs - (line 615) ... FAILED [INFO] [stdout] test src/lib.rs - (line 452) ... FAILED [INFO] [stdout] test src/lib.rs - (line 322) ... FAILED [INFO] [stdout] test src/lib.rs - (line 590) ... FAILED [INFO] [stdout] test src/lib.rs - (line 637) ... FAILED [INFO] [stdout] test src/lib.rs - (line 653) ... FAILED [INFO] [stdout] test src/lib.rs - (line 381) ... FAILED [INFO] [stdout] test src/lib.rs - (line 517) ... FAILED [INFO] [stdout] test src/lib.rs - (line 483) ... FAILED [INFO] [stdout] test src/lib.rs - (line 70) ... ok [INFO] [stdout] test src/lib.rs - (line 703) ... FAILED [INFO] [stdout] test src/lib.rs - (line 743) ... FAILED [INFO] [stdout] test src/lib.rs - (line 425) ... FAILED [INFO] [stdout] test src/queue.rs - queue (line 12) ... FAILED [INFO] [stdout] test src/lib.rs - (line 91) ... FAILED [INFO] [stdout] test src/lib.rs - (line 727) ... FAILED [INFO] [stdout] test src/lib.rs - (line 794) ... FAILED [INFO] [stdout] test src/lib.rs - (line 813) ... FAILED [INFO] [stdout] test src/server.rs - server (line 25) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/exchange.rs - exchange::Send (line 47) stdout ---- [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/exchange.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 3 | let sequence: Send>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0782`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 126) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `Session` in this scope [INFO] [stdout] --> src/lib.rs:127:23 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Recv { /* private fields */ } [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use par::Session; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Session` in this scope [INFO] [stdout] --> src/lib.rs:128:23 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Send { /* private fields */ } [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use par::Session; [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 E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 269) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Recv` in this scope [INFO] [stdout] --> src/lib.rs:273:26 [INFO] [stdout] | [INFO] [stdout] 6 | type ATM = Send, InvalidAccount>>>; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use par::exchange::Recv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Operation` in this scope [INFO] [stdout] --> src/lib.rs:273:43 [INFO] [stdout] | [INFO] [stdout] 6 | type ATM = Send, InvalidAccount>>>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/option.rs:593:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named enum `Option` defined here [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 6 - type ATM = Send, InvalidAccount>>>; [INFO] [stdout] 6 + type ATM = Send, InvalidAccount>>>; [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 6 | type ATM = Send, InvalidAccount>>>; [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/lib.rs:273:12 [INFO] [stdout] | [INFO] [stdout] 6 | type ATM = Send, InvalidAccount>>>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 6 | type ATM = dyn Send, InvalidAccount>>>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0782. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/exchange.rs - exchange::Send::choose (line 191) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Recv` in this scope [INFO] [stdout] --> src/exchange.rs:192:28 [INFO] [stdout] | [INFO] [stdout] 3 | let branching: Send, ()>>; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use par::exchange::Recv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/exchange.rs:192:16 [INFO] [stdout] | [INFO] [stdout] 3 | let branching: Send, ()>>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0782. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 103) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Recv` in this scope [INFO] [stdout] --> src/lib.rs:107:41 [INFO] [stdout] | [INFO] [stdout] 7 | let sender: Send = fork(|receiver: Recv| async { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use par::exchange::Recv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/lib.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 7 | let sender: Send = fork(|receiver: Recv| async { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0782. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/exchange.rs - exchange::Send::handle (line 204) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Recv` in this scope [INFO] [stdout] --> src/exchange.rs:205:25 [INFO] [stdout] | [INFO] [stdout] 3 | let needs_session: Send>; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use par::exchange::Recv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/exchange.rs:205:20 [INFO] [stdout] | [INFO] [stdout] 3 | let needs_session: Send>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0782. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 279) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `ATM` in this scope [INFO] [stdout] --> src/lib.rs:283:20 [INFO] [stdout] | [INFO] [stdout] 7 | type Client = Dual; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 7 | type Client = Dual; [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/exchange.rs - exchange::Send (line 55) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Recv` in this scope [INFO] [stdout] --> src/exchange.rs:56:28 [INFO] [stdout] | [INFO] [stdout] 3 | let branching: Send, ()>>; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use par::exchange::Recv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/exchange.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 3 | let branching: Send, ()>>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0782. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 155) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Calculator` in this scope [INFO] [stdout] --> src/lib.rs:159:18 [INFO] [stdout] | [INFO] [stdout] 7 | type User = Dual; // Recv>>> [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 7 | type User = Dual; // Recv>>> [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Calculator` in this scope [INFO] [stdout] --> src/lib.rs:161:26 [INFO] [stdout] | [INFO] [stdout] 9 | fn start_calculator() -> Calculator { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Op` [INFO] [stdout] --> src/lib.rs:177:15 [INFO] [stdout] | [INFO] [stdout] 25 | .send(Op::Plus) [INFO] [stdout] | ^^ use of undeclared type `Op` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Op` [INFO] [stdout] --> src/lib.rs:184:15 [INFO] [stdout] | [INFO] [stdout] 32 | .send(Op::Times) [INFO] [stdout] | ^^ use of undeclared type `Op` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Op` [INFO] [stdout] --> src/lib.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 15 | Op::Plus => x + y, [INFO] [stdout] | ^^ use of undeclared type `Op` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Op` [INFO] [stdout] --> src/lib.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 16 | Op::Times => x * y, [INFO] [stdout] | ^^ use of undeclared type `Op` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 312) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `atm` in this scope [INFO] [stdout] --> src/lib.rs:313:21 [INFO] [stdout] | [INFO] [stdout] 3 | let Amount(funds) = atm.choose(Operation::CheckBalance).recv1().await; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Amount` in this scope [INFO] [stdout] --> src/lib.rs:313:5 [INFO] [stdout] | [INFO] [stdout] 3 | let Amount(funds) = atm.choose(Operation::CheckBalance).recv1().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/lib.rs:313:65 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_312_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] 3 | let Amount(funds) = atm.choose(Operation::CheckBalance).recv1().await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/lib.rs:313:32 [INFO] [stdout] | [INFO] [stdout] 3 | let Amount(funds) = atm.choose(Operation::CheckBalance).recv1().await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Operation` [INFO] [stdout] | help: an enum with a similar name exists: `Option` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0531, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 335) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `atm` in this scope [INFO] [stdout] --> src/lib.rs:336:1 [INFO] [stdout] | [INFO] [stdout] 3 | atm.send1(Operation::CheckBalance(fork(|atm: Recv| async move { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fork` in this scope [INFO] [stdout] --> src/lib.rs:336:35 [INFO] [stdout] | [INFO] [stdout] 3 | atm.send1(Operation::CheckBalance(fork(|atm: Recv| async move { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use par::runtimes::tokio::fork; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Recv` in this scope [INFO] [stdout] --> src/lib.rs:336:46 [INFO] [stdout] | [INFO] [stdout] 3 | atm.send1(Operation::CheckBalance(fork(|atm: Recv| async move { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use par::exchange::Recv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Amount` in this scope [INFO] [stdout] --> src/lib.rs:336:51 [INFO] [stdout] | [INFO] [stdout] 3 | atm.send1(Operation::CheckBalance(fork(|atm: Recv| async move { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_335_0() { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Amount` in this scope [INFO] [stdout] --> src/lib.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 4 | let Amount(funds) = atm.recv1().await; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `number` in this scope [INFO] [stdout] --> src/lib.rs:338:27 [INFO] [stdout] | [INFO] [stdout] 5 | println!("{} has {}", number, funds); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/lib.rs:336:11 [INFO] [stdout] | [INFO] [stdout] 3 | atm.send1(Operation::CheckBalance(fork(|atm: Recv| async move { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Operation` [INFO] [stdout] | help: an enum with a similar name exists: `Option` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0531. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 294) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Client` in this scope [INFO] [stdout] --> src/lib.rs:298:37 [INFO] [stdout] | [INFO] [stdout] 7 | fn check_balance(number: String) -> Client { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATM` in this scope [INFO] [stdout] --> src/lib.rs:299:16 [INFO] [stdout] | [INFO] [stdout] 8 | fork(|atm: ATM| async move { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Amount` in this scope [INFO] [stdout] --> src/lib.rs:304:13 [INFO] [stdout] | [INFO] [stdout] 13 | let Amount(funds) = atm.choose(Operation::CheckBalance).recv1().await; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Account` in this scope [INFO] [stdout] --> src/lib.rs:300:28 [INFO] [stdout] | [INFO] [stdout] 9 | let atm = atm.send(Account(number.clone())); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/lib.rs:304:40 [INFO] [stdout] | [INFO] [stdout] 13 | let Amount(funds) = atm.choose(Operation::CheckBalance).recv1().await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Operation` [INFO] [stdout] | help: an enum with a similar name exists: `Option` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0531. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 375) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:376:15 [INFO] [stdout] | [INFO] [stdout] 3 | let session = session.choose(Enum::Variant); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Enum` [INFO] [stdout] --> src/lib.rs:376:30 [INFO] [stdout] | [INFO] [stdout] 3 | let session = session.choose(Enum::Variant); [INFO] [stdout] | ^^^^ use of undeclared type `Enum` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 369) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Session` [INFO] [stdout] --> src/lib.rs:370:15 [INFO] [stdout] | [INFO] [stdout] 3 | let session = Session::fork_sync(|dual| session.send1(Enum::Variant(dual))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Session` [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use par::Session; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:370:41 [INFO] [stdout] | [INFO] [stdout] 3 | let session = Session::fork_sync(|dual| session.send1(Enum::Variant(dual))); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Enum` [INFO] [stdout] --> src/lib.rs:370:55 [INFO] [stdout] | [INFO] [stdout] 3 | let session = Session::fork_sync(|dual| session.send1(Enum::Variant(dual))); [INFO] [stdout] | ^^^^ use of undeclared type `Enum` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 344) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Recv` in this scope [INFO] [stdout] --> src/lib.rs:345:10 [INFO] [stdout] | [INFO] [stdout] 3 | let atm: Recv = fork(|client: Send| async move { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use par::exchange::Recv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Amount` in this scope [INFO] [stdout] --> src/lib.rs:345:15 [INFO] [stdout] | [INFO] [stdout] 3 | let atm: Recv = fork(|client: Send| async move { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_344_0() { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fork` in this scope [INFO] [stdout] --> src/lib.rs:345:25 [INFO] [stdout] | [INFO] [stdout] 3 | let atm: Recv = fork(|client: Send| async move { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use par::runtimes::tokio::fork; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Amount` in this scope [INFO] [stdout] --> src/lib.rs:345:44 [INFO] [stdout] | [INFO] [stdout] 3 | let atm: Recv = fork(|client: Send| async move { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_344_0() { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `atm` in this scope [INFO] [stdout] --> src/lib.rs:346:5 [INFO] [stdout] | [INFO] [stdout] 4 | atm.send1(Operation::CheckBalance(client)); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Amount` in this scope [INFO] [stdout] --> src/lib.rs:348:5 [INFO] [stdout] | [INFO] [stdout] 6 | let Amount(funds) = atm.recv1().await; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `number` in this scope [INFO] [stdout] --> src/lib.rs:349:23 [INFO] [stdout] | [INFO] [stdout] 7 | println!("{} has {}", number, funds); [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:348:33 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_344_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 6 | let Amount(funds) = atm.recv1().await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/lib.rs:345:39 [INFO] [stdout] | [INFO] [stdout] 3 | let atm: Recv = fork(|client: Send| async move { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 3 | let atm: Recv = fork(|client: dyn Send| async move { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/lib.rs:346:15 [INFO] [stdout] | [INFO] [stdout] 4 | atm.send1(Operation::CheckBalance(client)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Operation` [INFO] [stdout] | help: an enum with a similar name exists: `Option` [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0531, E0728, E0782. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 354) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Recv` in this scope [INFO] [stdout] --> src/lib.rs:355:12 [INFO] [stdout] | [INFO] [stdout] 3 | let atm = >::fork_sync(|client: Send| { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use par::exchange::Recv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Amount` in this scope [INFO] [stdout] --> src/lib.rs:355:17 [INFO] [stdout] | [INFO] [stdout] 3 | let atm = >::fork_sync(|client: Send| { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_354_0() { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Amount` in this scope [INFO] [stdout] --> src/lib.rs:355:51 [INFO] [stdout] | [INFO] [stdout] 3 | let atm = >::fork_sync(|client: Send| { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_354_0() { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `atm` in this scope [INFO] [stdout] --> src/lib.rs:356:5 [INFO] [stdout] | [INFO] [stdout] 4 | atm.send1(Operation::CheckBalance(client)) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Amount` in this scope [INFO] [stdout] --> src/lib.rs:358:5 [INFO] [stdout] | [INFO] [stdout] 6 | let Amount(funds) = atm.recv1().await; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `number` in this scope [INFO] [stdout] --> src/lib.rs:359:23 [INFO] [stdout] | [INFO] [stdout] 7 | println!("{} has {}", number, funds); [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:358:33 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_354_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 6 | let Amount(funds) = atm.recv1().await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/lib.rs:355:46 [INFO] [stdout] | [INFO] [stdout] 3 | let atm = >::fork_sync(|client: Send| { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 3 | let atm = >::fork_sync(|client: dyn Send| { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/lib.rs:356:15 [INFO] [stdout] | [INFO] [stdout] 4 | atm.send1(Operation::CheckBalance(client)) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Operation` [INFO] [stdout] | help: an enum with a similar name exists: `Option` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0531, E0728, E0782. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 464) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Amount` in this scope [INFO] [stdout] --> src/lib.rs:465:44 [INFO] [stdout] | [INFO] [stdout] 3 | let client = withdraw("Cyril".to_string(), Amount(2500)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `withdraw` in this scope [INFO] [stdout] --> src/lib.rs:465:14 [INFO] [stdout] | [INFO] [stdout] 3 | let client = withdraw("Cyril".to_string(), Amount(2500)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 475) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `atm` in this scope [INFO] [stdout] --> src/lib.rs:479:1 [INFO] [stdout] | [INFO] [stdout] 7 | atm.link(client); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib.rs:479:10 [INFO] [stdout] | [INFO] [stdout] 7 | atm.link(client); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 408) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Client` in this scope [INFO] [stdout] --> src/lib.rs:409:37 [INFO] [stdout] | [INFO] [stdout] 3 | fn check_balance(number: String) -> Client { /* ... */ } [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Amount` in this scope [INFO] [stdout] --> src/lib.rs:410:29 [INFO] [stdout] | [INFO] [stdout] 4 | fn withdraw(number: String, Amount(requested): Amount) -> Client { /* ... */ } [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Amount` in this scope [INFO] [stdout] --> src/lib.rs:410:48 [INFO] [stdout] | [INFO] [stdout] 4 | fn withdraw(number: String, Amount(requested): Amount) -> Client { /* ... */ } [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Client` in this scope [INFO] [stdout] --> src/lib.rs:410:59 [INFO] [stdout] | [INFO] [stdout] 4 | fn withdraw(number: String, Amount(requested): Amount) -> Client { /* ... */ } [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0531. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 569) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Recv` in this scope [INFO] [stdout] --> src/lib.rs:571:10 [INFO] [stdout] | [INFO] [stdout] 4 | More(Recv>), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use par::exchange::Recv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Recv` in this scope [INFO] [stdout] --> src/lib.rs:571:20 [INFO] [stdout] | [INFO] [stdout] 4 | More(Recv>), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use par::exchange::Recv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/lib.rs:572:10 [INFO] [stdout] | [INFO] [stdout] 5 | Done(Send), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 3 ~ enum Counting> { [INFO] [stdout] 4 | More(Recv>), [INFO] [stdout] 5 ~ Done(T), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0782. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 615) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:622:37 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_615_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 9 | .choose(Counting::Done).recv1().await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `start_counting` in this scope [INFO] [stdout] --> src/lib.rs:616:11 [INFO] [stdout] | [INFO] [stdout] 3 | let sum = start_counting() [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Counting` [INFO] [stdout] --> src/lib.rs:617:13 [INFO] [stdout] | [INFO] [stdout] 4 | .choose(Counting::More).send(1) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Counting` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Counting` [INFO] [stdout] --> src/lib.rs:618:13 [INFO] [stdout] | [INFO] [stdout] 5 | .choose(Counting::More).send(2) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Counting` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Counting` [INFO] [stdout] --> src/lib.rs:619:13 [INFO] [stdout] | [INFO] [stdout] 6 | .choose(Counting::More).send(3) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Counting` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Counting` [INFO] [stdout] --> src/lib.rs:620:13 [INFO] [stdout] | [INFO] [stdout] 7 | .choose(Counting::More).send(4) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Counting` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Counting` [INFO] [stdout] --> src/lib.rs:621:13 [INFO] [stdout] | [INFO] [stdout] 8 | .choose(Counting::More).send(5) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Counting` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Counting` [INFO] [stdout] --> src/lib.rs:622:13 [INFO] [stdout] | [INFO] [stdout] 9 | .choose(Counting::Done).recv1().await; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Counting` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 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] ---- src/lib.rs - (line 452) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:453:16 [INFO] [stdout] | [INFO] [stdout] 3 | let accounts = Arc::new(HashMap::from([ [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/lib.rs:453:25 [INFO] [stdout] | [INFO] [stdout] 3 | let accounts = Arc::new(HashMap::from([ [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:459:20 [INFO] [stdout] | [INFO] [stdout] 9 | let atm = boot_atm(Arc::clone(&accounts)); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Money` in this scope [INFO] [stdout] --> src/lib.rs:454:27 [INFO] [stdout] | [INFO] [stdout] 4 | ("Alice".to_string(), Money(1000)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Money` in this scope [INFO] [stdout] --> src/lib.rs:455:25 [INFO] [stdout] | [INFO] [stdout] 5 | ("Bob".to_string(), Money(700)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Money` in this scope [INFO] [stdout] --> src/lib.rs:456:27 [INFO] [stdout] | [INFO] [stdout] 6 | ("Cyril".to_string(), Money(5500)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `boot_atm` in this scope [INFO] [stdout] --> src/lib.rs:459:11 [INFO] [stdout] | [INFO] [stdout] 9 | let atm = boot_atm(Arc::clone(&accounts)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 322) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `atm` in this scope [INFO] [stdout] --> src/lib.rs:323:1 [INFO] [stdout] | [INFO] [stdout] 3 | atm.choose(Operation::CheckBalance) // -> Recv [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:324:14 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_322_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] 3 | atm.choose(Operation::CheckBalance) // -> Recv [INFO] [stdout] 4 | .recv1().await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/lib.rs:323:12 [INFO] [stdout] | [INFO] [stdout] 3 | atm.choose(Operation::CheckBalance) // -> Recv [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Operation` [INFO] [stdout] | help: an enum with a similar name exists: `Option` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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] ---- src/lib.rs - (line 590) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Counting` in this scope [INFO] [stdout] --> src/lib.rs:591:29 [INFO] [stdout] | [INFO] [stdout] 3 | fn start_counting() -> Send { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 3 | fn start_counting() -> Send { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fork` in this scope [INFO] [stdout] --> src/lib.rs:592:5 [INFO] [stdout] | [INFO] [stdout] 4 | fork(|mut numbers: Recv| async { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use par::runtimes::tokio::fork; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Recv` in this scope [INFO] [stdout] --> src/lib.rs:592:24 [INFO] [stdout] | [INFO] [stdout] 4 | fork(|mut numbers: Recv| async { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use par::exchange::Recv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Counting` in this scope [INFO] [stdout] --> src/lib.rs:592:29 [INFO] [stdout] | [INFO] [stdout] 4 | fork(|mut numbers: Recv| async { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 3 | fn start_counting() -> Send { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/lib.rs:591:24 [INFO] [stdout] | [INFO] [stdout] 3 | fn start_counting() -> Send { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `impl Send` to return an opaque type, as long as you return a single underlying type [INFO] [stdout] | [INFO] [stdout] 3 | fn start_counting() -> impl Send { [INFO] [stdout] | ++++ [INFO] [stdout] help: alternatively, you can return an owned trait object [INFO] [stdout] | [INFO] [stdout] 3 | fn start_counting() -> Box> { [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Counting` [INFO] [stdout] --> src/lib.rs:596:17 [INFO] [stdout] | [INFO] [stdout] 8 | Counting::More(number) => { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Counting` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Counting` [INFO] [stdout] --> src/lib.rs:601:17 [INFO] [stdout] | [INFO] [stdout] 13 | Counting::Done(report) => break report.send1(total), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Counting` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0782. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 637) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Dequeue` in this scope [INFO] [stdout] --> src/lib.rs:638:16 [INFO] [stdout] | [INFO] [stdout] 3 | type Numbers = Dequeue>; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use par::queue::Dequeue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Dual` in this scope [INFO] [stdout] --> src/lib.rs:639:16 [INFO] [stdout] | [INFO] [stdout] 4 | type Counter = Dual; // Enqueue> [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 + use par::Dual; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fork` in this scope [INFO] [stdout] --> src/lib.rs:642:5 [INFO] [stdout] | [INFO] [stdout] 7 | fork(|numbers: Numbers| async { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use par::runtimes::tokio::fork; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 653) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:662:6 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_653_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 11 | .await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `start_counting_with_queue` in this scope [INFO] [stdout] --> src/lib.rs:654:11 [INFO] [stdout] | [INFO] [stdout] 3 | let sum = start_counting_with_queue() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 381) stdout ---- [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Amount` in this scope [INFO] [stdout] --> src/lib.rs:382:29 [INFO] [stdout] | [INFO] [stdout] 3 | fn withdraw(number: String, Amount(requested): Amount) -> Client { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Amount` in this scope [INFO] [stdout] --> src/lib.rs:382:48 [INFO] [stdout] | [INFO] [stdout] 3 | fn withdraw(number: String, Amount(requested): Amount) -> Client { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Client` in this scope [INFO] [stdout] --> src/lib.rs:382:59 [INFO] [stdout] | [INFO] [stdout] 3 | fn withdraw(number: String, Amount(requested): Amount) -> Client { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fork` in this scope [INFO] [stdout] --> src/lib.rs:383:5 [INFO] [stdout] | [INFO] [stdout] 4 | fork(|atm: ATM| async move { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use par::runtimes::tokio::fork; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATM` in this scope [INFO] [stdout] --> src/lib.rs:383:16 [INFO] [stdout] | [INFO] [stdout] 4 | fork(|atm: ATM| async move { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Money` in this scope [INFO] [stdout] --> src/lib.rs:393:16 [INFO] [stdout] | [INFO] [stdout] 14 | Ok(Money(withdrawn)) => println!("{} withdrawn from {}", withdrawn, number), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Account` in this scope [INFO] [stdout] --> src/lib.rs:384:32 [INFO] [stdout] | [INFO] [stdout] 5 | let Ok(atm) = atm.send(Account(number.clone())).recv1().await else { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/lib.rs:388:21 [INFO] [stdout] | [INFO] [stdout] 9 | .choose(Operation::Withdraw) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Operation` [INFO] [stdout] | help: an enum with a similar name exists: `Option` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Amount` in this scope [INFO] [stdout] --> src/lib.rs:389:19 [INFO] [stdout] | [INFO] [stdout] 10 | .send(Amount(requested)) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0531. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 517) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:520:20 [INFO] [stdout] | [INFO] [stdout] 4 | let accounts = Arc::new(HashMap::from([ [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/lib.rs:520:29 [INFO] [stdout] | [INFO] [stdout] 4 | let accounts = Arc::new(HashMap::from([ [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:526:14 [INFO] [stdout] | [INFO] [stdout] 10 | boot_atm(Arc::clone(&accounts)).link(check_balance("Alice".to_string())); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:527:14 [INFO] [stdout] | [INFO] [stdout] 11 | boot_atm(Arc::clone(&accounts)).link(withdraw("Bob".to_string(), Amount(1000))); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:528:14 [INFO] [stdout] | [INFO] [stdout] 12 | boot_atm(Arc::clone(&accounts)).link(withdraw("Dylan".to_string(), Amount(20))); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/lib.rs:530:24 [INFO] [stdout] | [INFO] [stdout] 14 | tokio::time::sleep(Duration::from_secs(1)).await; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Money` in this scope [INFO] [stdout] --> src/lib.rs:521:31 [INFO] [stdout] | [INFO] [stdout] 5 | ("Alice".to_string(), Money(1000)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Money` in this scope [INFO] [stdout] --> src/lib.rs:522:29 [INFO] [stdout] | [INFO] [stdout] 6 | ("Bob".to_string(), Money(700)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Money` in this scope [INFO] [stdout] --> src/lib.rs:523:31 [INFO] [stdout] | [INFO] [stdout] 7 | ("Cyril".to_string(), Money(5500)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `boot_atm` in this scope [INFO] [stdout] --> src/lib.rs:526:5 [INFO] [stdout] | [INFO] [stdout] 10 | boot_atm(Arc::clone(&accounts)).link(check_balance("Alice".to_string())); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `check_balance` in this scope [INFO] [stdout] --> src/lib.rs:526:42 [INFO] [stdout] | [INFO] [stdout] 10 | boot_atm(Arc::clone(&accounts)).link(check_balance("Alice".to_string())); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `boot_atm` in this scope [INFO] [stdout] --> src/lib.rs:527:5 [INFO] [stdout] | [INFO] [stdout] 11 | boot_atm(Arc::clone(&accounts)).link(withdraw("Bob".to_string(), Amount(1000))); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Amount` in this scope [INFO] [stdout] --> src/lib.rs:527:70 [INFO] [stdout] | [INFO] [stdout] 11 | boot_atm(Arc::clone(&accounts)).link(withdraw("Bob".to_string(), Amount(1000))); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `withdraw` in this scope [INFO] [stdout] --> src/lib.rs:527:42 [INFO] [stdout] | [INFO] [stdout] 11 | boot_atm(Arc::clone(&accounts)).link(withdraw("Bob".to_string(), Amount(1000))); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `boot_atm` in this scope [INFO] [stdout] --> src/lib.rs:528:5 [INFO] [stdout] | [INFO] [stdout] 12 | boot_atm(Arc::clone(&accounts)).link(withdraw("Dylan".to_string(), Amount(20))); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Amount` in this scope [INFO] [stdout] --> src/lib.rs:528:72 [INFO] [stdout] | [INFO] [stdout] 12 | boot_atm(Arc::clone(&accounts)).link(withdraw("Dylan".to_string(), Amount(20))); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `withdraw` in this scope [INFO] [stdout] --> src/lib.rs:528:42 [INFO] [stdout] | [INFO] [stdout] 12 | boot_atm(Arc::clone(&accounts)).link(withdraw("Dylan".to_string(), Amount(20))); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 483) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:489:20 [INFO] [stdout] | [INFO] [stdout] 8 | let accounts = Arc::new(HashMap::from([ [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/lib.rs:489:29 [INFO] [stdout] | [INFO] [stdout] 8 | let accounts = Arc::new(HashMap::from([ [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:495:24 [INFO] [stdout] | [INFO] [stdout] 14 | let atm = boot_atm(Arc::clone(&accounts)); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/lib.rs:501:24 [INFO] [stdout] | [INFO] [stdout] 20 | tokio::time::sleep(Duration::from_secs(1)).await; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 4 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 4 + use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Money` in this scope [INFO] [stdout] --> src/lib.rs:490:31 [INFO] [stdout] | [INFO] [stdout] 9 | ("Alice".to_string(), Money(1000)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Money` in this scope [INFO] [stdout] --> src/lib.rs:491:29 [INFO] [stdout] | [INFO] [stdout] 10 | ("Bob".to_string(), Money(700)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Money` in this scope [INFO] [stdout] --> src/lib.rs:492:31 [INFO] [stdout] | [INFO] [stdout] 11 | ("Cyril".to_string(), Money(5500)), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `boot_atm` in this scope [INFO] [stdout] --> src/lib.rs:495:15 [INFO] [stdout] | [INFO] [stdout] 14 | let atm = boot_atm(Arc::clone(&accounts)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Amount` in this scope [INFO] [stdout] --> src/lib.rs:496:48 [INFO] [stdout] | [INFO] [stdout] 15 | let client = withdraw("Cyril".to_string(), Amount(2500)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `withdraw` in this scope [INFO] [stdout] --> src/lib.rs:496:18 [INFO] [stdout] | [INFO] [stdout] 15 | let client = withdraw("Cyril".to_string(), Amount(2500)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 703) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Recv` in this scope [INFO] [stdout] --> src/lib.rs:716:25 [INFO] [stdout] | [INFO] [stdout] 15 | type Round = Send>; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use par::exchange::Recv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Dual` in this scope [INFO] [stdout] --> src/lib.rs:717:15 [INFO] [stdout] | [INFO] [stdout] 16 | type Player = Dual; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 + use par::Dual; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/lib.rs:716:14 [INFO] [stdout] | [INFO] [stdout] 15 | type Round = Send>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 15 | type Round = dyn Send>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0782. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 743) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `Move`, `Outcome`, `Winner` [INFO] [stdout] --> src/lib.rs:745:10 [INFO] [stdout] | [INFO] [stdout] 4 | use {Move::*, Outcome::*, Winner::*}; [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^^ use of undeclared type `Winner` [INFO] [stdout] | | | [INFO] [stdout] | | use of undeclared type `Outcome` [INFO] [stdout] | use of undeclared type `Move` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 425) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Money` in this scope [INFO] [stdout] --> src/lib.rs:429:43 [INFO] [stdout] | [INFO] [stdout] 6 | fn boot_atm(accounts: Arc>) -> ATM { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 6 | fn boot_atm(accounts: Arc>) -> ATM { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ATM` in this scope [INFO] [stdout] --> src/lib.rs:429:55 [INFO] [stdout] | [INFO] [stdout] 6 | fn boot_atm(accounts: Arc>) -> ATM { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fork` in this scope [INFO] [stdout] --> src/lib.rs:430:5 [INFO] [stdout] | [INFO] [stdout] 7 | fork(|client: Client| async move { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use par::runtimes::tokio::fork; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Client` in this scope [INFO] [stdout] --> src/lib.rs:430:19 [INFO] [stdout] | [INFO] [stdout] 7 | fork(|client: Client| async move { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Account` in this scope [INFO] [stdout] --> src/lib.rs:431:14 [INFO] [stdout] | [INFO] [stdout] 8 | let (Account(number), client) = client.recv().await; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `InvalidAccount` in this scope [INFO] [stdout] --> src/lib.rs:433:37 [INFO] [stdout] | [INFO] [stdout] 10 | return client.send1(Err(InvalidAccount)); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Money` in this scope [INFO] [stdout] --> src/lib.rs:432:19 [INFO] [stdout] | [INFO] [stdout] 9 | let Some(&Money(funds)) = accounts.get(&number) else { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Amount` in this scope [INFO] [stdout] --> src/lib.rs:438:22 [INFO] [stdout] | [INFO] [stdout] 15 | let (Amount(requested), client) = client.recv().await; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `InsufficientFunds` in this scope [INFO] [stdout] --> src/lib.rs:442:38 [INFO] [stdout] | [INFO] [stdout] 19 | client.send1(Err(InsufficientFunds)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Amount` in this scope [INFO] [stdout] --> src/lib.rs:436:61 [INFO] [stdout] | [INFO] [stdout] 13 | Operation::CheckBalance(client) => client.send1(Amount(funds)), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Money` in this scope [INFO] [stdout] --> src/lib.rs:440:37 [INFO] [stdout] | [INFO] [stdout] 17 | client.send1(Ok(Money(requested))); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/lib.rs:436:13 [INFO] [stdout] | [INFO] [stdout] 13 | Operation::CheckBalance(client) => client.send1(Amount(funds)), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Operation` [INFO] [stdout] | help: an enum with a similar name exists: `Option` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operation` [INFO] [stdout] --> src/lib.rs:437:13 [INFO] [stdout] | [INFO] [stdout] 14 | Operation::Withdraw(client) => { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Operation` [INFO] [stdout] | help: an enum with a similar name exists: `Option` [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0531. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/queue.rs - queue (line 12) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `Session` in this scope [INFO] [stdout] --> src/queue.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 3 | enum Queue { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use par::Session; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Recv` in this scope [INFO] [stdout] --> src/queue.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 9 | type Dequeue = Recv>; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use par::exchange::Recv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Dual` in this scope [INFO] [stdout] --> src/queue.rs:20:36 [INFO] [stdout] | [INFO] [stdout] 10 | type Enqueue = Send>>; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 + use par::Dual; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/queue.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 10 | type Enqueue = Send>>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 10 | type Enqueue = dyn Send>>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0782. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 91) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Recv` in this scope [INFO] [stdout] --> src/lib.rs:92:52 [INFO] [stdout] | [INFO] [stdout] 3 | let sender: Send = Send::fork_sync(|receiver: Recv| { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use par::exchange::Recv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/lib.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 3 | let sender: Send = Send::fork_sync(|receiver: Recv| { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/lib.rs:92:25 [INFO] [stdout] | [INFO] [stdout] 3 | let sender: Send = Send::fork_sync(|receiver: Recv| { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 3 | let sender: Send = ::fork_sync(|receiver: Recv| { [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0782. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 727) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Player` in this scope [INFO] [stdout] --> src/lib.rs:735:19 [INFO] [stdout] | [INFO] [stdout] 10 | type Game = Send<(Player, Player, Player), Recv>; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 10 | type Game = Send<(Player, Player, Player), Recv>; [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Player` in this scope [INFO] [stdout] --> src/lib.rs:735:27 [INFO] [stdout] | [INFO] [stdout] 10 | type Game = Send<(Player, Player, Player), Recv>; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 10 | type Game = Send<(Player, Player, Player), Recv>; [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Player` in this scope [INFO] [stdout] --> src/lib.rs:735:35 [INFO] [stdout] | [INFO] [stdout] 10 | type Game = Send<(Player, Player, Player), Recv>; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 10 | type Game = Send<(Player, Player, Player), Recv>; [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Recv` in this scope [INFO] [stdout] --> src/lib.rs:735:44 [INFO] [stdout] | [INFO] [stdout] 10 | type Game = Send<(Player, Player, Player), Recv>; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use par::exchange::Recv; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0782]: expected a type, found a trait [INFO] [stdout] --> src/lib.rs:735:13 [INFO] [stdout] | [INFO] [stdout] 10 | type Game = Send<(Player, Player, Player), Recv>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object [INFO] [stdout] | [INFO] [stdout] 10 | type Game = dyn Send<(Player, Player, Player), Recv>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0782. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 794) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `game` in this scope [INFO] [stdout] --> src/lib.rs:795:57 [INFO] [stdout] | [INFO] [stdout] 3 | let ((mut player1, mut player2, mut player3), winner) = game.recv().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/lib.rs:795:69 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_794_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] 3 | let ((mut player1, mut player2, mut player3), winner) = game.recv().await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 813) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Player` in this scope [INFO] [stdout] --> src/lib.rs:814:23 [INFO] [stdout] | [INFO] [stdout] 2 | fn random_player() -> Player { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fork` in this scope [INFO] [stdout] --> src/lib.rs:815:5 [INFO] [stdout] | [INFO] [stdout] 3 | fork(|mut round: Round| async move { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use par::runtimes::tokio::fork; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Round` in this scope [INFO] [stdout] --> src/lib.rs:815:22 [INFO] [stdout] | [INFO] [stdout] 3 | fork(|mut round: Round| async move { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Move` in this scope [INFO] [stdout] --> src/lib.rs:822:21 [INFO] [stdout] | [INFO] [stdout] 10 | fn random_move() -> Move { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Move` [INFO] [stdout] --> src/lib.rs:824:9 [INFO] [stdout] | [INFO] [stdout] 12 | Move::Up [INFO] [stdout] | ^^^^ use of undeclared type `Move` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Move` [INFO] [stdout] --> src/lib.rs:826:9 [INFO] [stdout] | [INFO] [stdout] 14 | Move::Down [INFO] [stdout] | ^^^^ use of undeclared type `Move` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `start_playing` in this scope [INFO] [stdout] --> src/lib.rs:833:22 [INFO] [stdout] | [INFO] [stdout] 21 | let winner = start_playing() [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Outcome` [INFO] [stdout] --> src/lib.rs:816:19 [INFO] [stdout] | [INFO] [stdout] 4 | while let Outcome::Draw(next_round) = round.send(random_move()).recv1().await { [INFO] [stdout] | ^^^^^^^ use of undeclared type `Outcome` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/server.rs - server (line 25) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Proxy` in this scope [INFO] [stdout] --> src/server.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 3 | let proxy1: Proxy; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use par::server::Proxy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Connect` in this scope [INFO] [stdout] --> src/server.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 3 | let proxy1: Proxy; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `par::server::Event::Connect`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 3 - let proxy1: Proxy; [INFO] [stdout] 3 + let proxy1: Proxy; [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_server_rs_25_0() { [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] [INFO] [stdout] failures: [INFO] [stdout] src/exchange.rs - exchange::Send (line 47) [INFO] [stdout] src/exchange.rs - exchange::Send (line 55) [INFO] [stdout] src/exchange.rs - exchange::Send::handle (line 204) [INFO] [stdout] src/exchange.rs - exchange::Send::choose (line 191) [INFO] [stdout] src/lib.rs - (line 103) [INFO] [stdout] src/lib.rs - (line 126) [INFO] [stdout] src/lib.rs - (line 155) [INFO] [stdout] src/lib.rs - (line 269) [INFO] [stdout] src/lib.rs - (line 279) [INFO] [stdout] src/lib.rs - (line 294) [INFO] [stdout] src/lib.rs - (line 312) [INFO] [stdout] src/lib.rs - (line 322) [INFO] [stdout] src/lib.rs - (line 335) [INFO] [stdout] src/lib.rs - (line 344) [INFO] [stdout] src/lib.rs - (line 354) [INFO] [stdout] src/lib.rs - (line 369) [INFO] [stdout] src/lib.rs - (line 375) [INFO] [stdout] src/lib.rs - (line 381) [INFO] [stdout] src/lib.rs - (line 408) [INFO] [stdout] src/lib.rs - (line 425) [INFO] [stdout] src/lib.rs - (line 452) [INFO] [stdout] src/lib.rs - (line 464) [INFO] [stdout] src/lib.rs - (line 475) [INFO] [stdout] src/lib.rs - (line 483) [INFO] [stdout] src/lib.rs - (line 517) [INFO] [stdout] src/lib.rs - (line 569) [INFO] [stdout] src/lib.rs - (line 590) [INFO] [stdout] src/lib.rs - (line 615) [INFO] [stdout] src/lib.rs - (line 637) [INFO] [stdout] src/lib.rs - (line 653) [INFO] [stdout] src/lib.rs - (line 703) [INFO] [stdout] src/lib.rs - (line 727) [INFO] [stdout] src/lib.rs - (line 743) [INFO] [stdout] src/lib.rs - (line 794) [INFO] [stdout] src/lib.rs - (line 813) [INFO] [stdout] src/lib.rs - (line 91) [INFO] [stdout] src/queue.rs - queue (line 12) [INFO] [stdout] src/server.rs - server (line 25) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 38 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.38s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1a45b055a2bf38065395ee9edf7315d80730917be0b77011366de37c4a632ca4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a45b055a2bf38065395ee9edf7315d80730917be0b77011366de37c4a632ca4", kill_on_drop: false }` [INFO] [stdout] 1a45b055a2bf38065395ee9edf7315d80730917be0b77011366de37c4a632ca4