[INFO] fetching crate perhaps 2.0.0... [INFO] testing perhaps-2.0.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate perhaps 2.0.0 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate perhaps 2.0.0 [INFO] finished tweaking crates.io crate perhaps 2.0.0 [INFO] tweaked toml for crates.io crate perhaps 2.0.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate perhaps 2.0.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f30b8dae7041a83738da373822c6b82d12b20a4f0a5f268c4a7058d1458a3a4 [INFO] running `Command { std: "docker" "start" "-a" "3f30b8dae7041a83738da373822c6b82d12b20a4f0a5f268c4a7058d1458a3a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f30b8dae7041a83738da373822c6b82d12b20a4f0a5f268c4a7058d1458a3a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f30b8dae7041a83738da373822c6b82d12b20a4f0a5f268c4a7058d1458a3a4", kill_on_drop: false }` [INFO] [stdout] 3f30b8dae7041a83738da373822c6b82d12b20a4f0a5f268c4a7058d1458a3a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 362cb01254e8a777c421a04459a1282db7a29a1c21bcf5061f38252b75e7f8d1 [INFO] running `Command { std: "docker" "start" "-a" "362cb01254e8a777c421a04459a1282db7a29a1c21bcf5061f38252b75e7f8d1", kill_on_drop: false }` [INFO] [stderr] Compiling perhaps v2.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `panic_immediate_abort` [INFO] [stdout] --> src/lib.rs:1638:16 [INFO] [stdout] | [INFO] [stdout] 1638 | #[cfg_attr(not(feature = "panic_immediate_abort"), inline(never))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `panic_immediate_abort` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `panic_immediate_abort` [INFO] [stdout] --> src/lib.rs:1639:12 [INFO] [stdout] | [INFO] [stdout] 1639 | #[cfg_attr(feature = "panic_immediate_abort", inline)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `panic_immediate_abort` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `panic_immediate_abort` [INFO] [stdout] --> src/lib.rs:1647:16 [INFO] [stdout] | [INFO] [stdout] 1647 | #[cfg_attr(not(feature = "panic_immediate_abort"), inline(never))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `panic_immediate_abort` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `panic_immediate_abort` [INFO] [stdout] --> src/lib.rs:1648:12 [INFO] [stdout] | [INFO] [stdout] 1648 | #[cfg_attr(feature = "panic_immediate_abort", inline)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `panic_immediate_abort` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] running `Command { std: "docker" "inspect" "362cb01254e8a777c421a04459a1282db7a29a1c21bcf5061f38252b75e7f8d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "362cb01254e8a777c421a04459a1282db7a29a1c21bcf5061f38252b75e7f8d1", kill_on_drop: false }` [INFO] [stdout] 362cb01254e8a777c421a04459a1282db7a29a1c21bcf5061f38252b75e7f8d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f556d1d61d17301045c8806a3165145b5fde941f32b1ac241f7d0aaa38576e20 [INFO] running `Command { std: "docker" "start" "-a" "f556d1d61d17301045c8806a3165145b5fde941f32b1ac241f7d0aaa38576e20", kill_on_drop: false }` [INFO] [stderr] Compiling perhaps v2.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `panic_immediate_abort` [INFO] [stdout] --> src/lib.rs:1638:16 [INFO] [stdout] | [INFO] [stdout] 1638 | #[cfg_attr(not(feature = "panic_immediate_abort"), inline(never))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `panic_immediate_abort` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `panic_immediate_abort` [INFO] [stdout] --> src/lib.rs:1639:12 [INFO] [stdout] | [INFO] [stdout] 1639 | #[cfg_attr(feature = "panic_immediate_abort", inline)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `panic_immediate_abort` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `panic_immediate_abort` [INFO] [stdout] --> src/lib.rs:1647:16 [INFO] [stdout] | [INFO] [stdout] 1647 | #[cfg_attr(not(feature = "panic_immediate_abort"), inline(never))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `panic_immediate_abort` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `panic_immediate_abort` [INFO] [stdout] --> src/lib.rs:1648:12 [INFO] [stdout] | [INFO] [stdout] 1648 | #[cfg_attr(feature = "panic_immediate_abort", inline)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `panic_immediate_abort` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `panic_immediate_abort` [INFO] [stdout] --> src/lib.rs:1638:16 [INFO] [stdout] | [INFO] [stdout] 1638 | #[cfg_attr(not(feature = "panic_immediate_abort"), inline(never))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `panic_immediate_abort` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `panic_immediate_abort` [INFO] [stdout] --> src/lib.rs:1639:12 [INFO] [stdout] | [INFO] [stdout] 1639 | #[cfg_attr(feature = "panic_immediate_abort", inline)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `panic_immediate_abort` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `panic_immediate_abort` [INFO] [stdout] --> src/lib.rs:1647:16 [INFO] [stdout] | [INFO] [stdout] 1647 | #[cfg_attr(not(feature = "panic_immediate_abort"), inline(never))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `panic_immediate_abort` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `panic_immediate_abort` [INFO] [stdout] --> src/lib.rs:1648:12 [INFO] [stdout] | [INFO] [stdout] 1648 | #[cfg_attr(feature = "panic_immediate_abort", inline)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `panic_immediate_abort` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] running `Command { std: "docker" "inspect" "f556d1d61d17301045c8806a3165145b5fde941f32b1ac241f7d0aaa38576e20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f556d1d61d17301045c8806a3165145b5fde941f32b1ac241f7d0aaa38576e20", kill_on_drop: false }` [INFO] [stdout] f556d1d61d17301045c8806a3165145b5fde941f32b1ac241f7d0aaa38576e20 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3fc154058db0f5058cbe9896a40583bd9b465f275eee116406c7b84d26e59565 [INFO] running `Command { std: "docker" "start" "-a" "3fc154058db0f5058cbe9896a40583bd9b465f275eee116406c7b84d26e59565", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition value: `panic_immediate_abort` [INFO] [stderr] --> src/lib.rs:1638:16 [INFO] [stderr] | [INFO] [stderr] 1638 | #[cfg_attr(not(feature = "panic_immediate_abort"), inline(never))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `panic_immediate_abort` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `panic_immediate_abort` [INFO] [stderr] --> src/lib.rs:1639:12 [INFO] [stderr] | [INFO] [stderr] 1639 | #[cfg_attr(feature = "panic_immediate_abort", inline)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `panic_immediate_abort` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `panic_immediate_abort` [INFO] [stderr] --> src/lib.rs:1647:16 [INFO] [stderr] | [INFO] [stderr] 1647 | #[cfg_attr(not(feature = "panic_immediate_abort"), inline(never))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `panic_immediate_abort` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `panic_immediate_abort` [INFO] [stderr] --> src/lib.rs:1648:12 [INFO] [stderr] | [INFO] [stderr] 1648 | #[cfg_attr(feature = "panic_immediate_abort", inline)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `panic_immediate_abort` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: `perhaps` (lib) generated 4 warnings [INFO] [stderr] warning: `perhaps` (lib test) generated 4 warnings (4 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/perhaps-109270fd6b17c071) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests perhaps [INFO] [stdout] [INFO] [stdout] running 62 tests [INFO] [stdout] test src/lib.rs - (line 420) - compile fail ... ok [INFO] [stdout] test src/lib.rs - (line 401) ... FAILED [INFO] [stdout] test src/lib.rs - (line 442) ... FAILED [INFO] [stdout] test src/lib.rs - (line 318) ... FAILED [INFO] [stdout] test src/lib.rs - (line 517) ... FAILED [INFO] [stdout] test src/lib.rs - (line 503) ... FAILED [INFO] [stdout] test src/lib.rs - (line 350) ... FAILED [INFO] [stdout] test src/lib.rs - (line 22) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps<&'_T>::cloned (line 1544) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps<&'_T>::copied (line 1519) ... FAILED [INFO] [stdout] test src/lib.rs - (line 387) ... FAILED [INFO] [stdout] test src/lib.rs - (line 81) ... FAILED [INFO] [stdout] test src/lib.rs - (line 459) ... FAILED [INFO] [stdout] test src/lib.rs - (line 57) ... FAILED [INFO] [stdout] test src/lib.rs - (line 97) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps<&'aT>::from (line 1723) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps>::transpose (line 1620) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps<&'_mutT>::cloned (line 1592) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps>::flatten (line 1764) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps>::flatten (line 1777) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps<&'_mutT>::copied (line 1569) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps<(T,U)>::unzip (line 1497) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::and_then (line 1166) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps<&'amutT>::from (line 1741) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::as_deref (line 1073) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::as_mut (line 671) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::as_deref_mut (line 1098) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::and (line 1134) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::expect (line 700) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::and_then (line 1178) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::as_ref (line 652) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::default (line 1685) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::expect (line 705) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::get_or_insert_with (line 1393) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::insert (line 1338) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::get_or_insert (line 1365) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::filter (line 1212) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::expect (line 715) ... ok [INFO] [stdout] test src/lib.rs - Perhaps::from (line 1700) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::is_certain (line 581) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::inspect (line 914) ... ok [INFO] [stdout] test src/lib.rs - Perhaps::map_or_else (line 989) - compile ... ok [INFO] [stdout] test src/lib.rs - Perhaps::map (line 888) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::is_certain_and (line 598) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::map_or_else (line 970) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::is_dubious (line 621) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::map_or (line 946) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::ok_or (line 1024) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::ok_or_else (line 1048) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::or_else (line 1276) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::replace (line 1450) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::unwrap_or (line 783) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::unwrap (line 760) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::unwrap (line 755) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::or (line 1246) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::unwrap_or_else (line 799) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::xor (line 1299) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::unwrap_unchecked (line 862) - compile ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::zip (line 1473) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::take (line 1427) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::unwrap_unchecked (line 857) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::unwrap_or_default (line 824) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 401) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:405:37 [INFO] [stdout] | [INFO] [stdout] 405 | true => return (0..4).chain(Certain(42)).chain(4..8), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 401 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:406:38 [INFO] [stdout] | [INFO] [stdout] 406 | false => return (0..4).chain(Dubious).chain(4..8), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 401 + use perhaps::Perhaps::Dubious; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 442) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:443:46 [INFO] [stdout] | [INFO] [stdout] 443 | let v = [Self::Certain(2), Self::Certain(4), Dubious, Certain(8)]; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 442 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:443:55 [INFO] [stdout] | [INFO] [stdout] 443 | let v = [Self::Certain(2), Self::Certain(4), Dubious, Certain(8)]; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 442 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:444:10 [INFO] [stdout] | [INFO] [stdout] 444 | let res: Perhaps> = v.into_iter().collect(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 442 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:445:17 [INFO] [stdout] | [INFO] [stdout] 445 | assert_eq!(res, Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 442 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:446:46 [INFO] [stdout] | [INFO] [stdout] 446 | let v = [Self::Certain(2), Self::Certain(4), Certain(8)]; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 442 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:447:10 [INFO] [stdout] | [INFO] [stdout] 447 | let res: Perhaps> = v.into_iter().collect(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 442 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:448:17 [INFO] [stdout] | [INFO] [stdout] 448 | assert_eq!(res, Certain(vec![2, 4, 8])); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 442 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:443:10 [INFO] [stdout] | [INFO] [stdout] 443 | let v = [Self::Certain(2), Self::Certain(4), Dubious, Certain(8)]; [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:443:28 [INFO] [stdout] | [INFO] [stdout] 443 | let v = [Self::Certain(2), Self::Certain(4), Dubious, Certain(8)]; [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:446:10 [INFO] [stdout] | [INFO] [stdout] 446 | let v = [Self::Certain(2), Self::Certain(4), Certain(8)]; [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:446:28 [INFO] [stdout] | [INFO] [stdout] 446 | let v = [Self::Certain(2), Self::Certain(4), Certain(8)]; [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 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 318) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:333:17 [INFO] [stdout] | [INFO] [stdout] 333 | .or(Certain(&"error!")) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 318 + use perhaps::Perhaps::Certain; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 517) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:532:34 [INFO] [stdout] | [INFO] [stdout] 532 | let mut name_of_biggest_animal = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 517 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:539:38 [INFO] [stdout] | [INFO] [stdout] 539 | name_of_biggest_animal = Certain(name); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 517 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:546:5 [INFO] [stdout] | [INFO] [stdout] 546 | Certain(name) => println!("the biggest animal is {name}"), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 517 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0531. [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 503) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:504:11 [INFO] [stdout] | [INFO] [stdout] 504 | let msg = Certain("howdy"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 503 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:507:8 [INFO] [stdout] | [INFO] [stdout] 507 | if let Certain(m) = &msg { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 503 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0531. [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 350) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:351:9 [INFO] [stdout] | [INFO] [stdout] 351 | assert!(Dubious < Certain(0)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 350 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:351:19 [INFO] [stdout] | [INFO] [stdout] 351 | assert!(Dubious < Certain(0)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 350 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:352:28 [INFO] [stdout] | [INFO] [stdout] 352 | assert!(Self::Certain(0) < Certain(1)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 350 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:352:9 [INFO] [stdout] | [INFO] [stdout] 352 | assert!(Self::Certain(0) < Certain(1)); [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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 22) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:23:48 [INFO] [stdout] | [INFO] [stdout] 23 | fn divide(numerator: f64, denominator: f64) -> Perhaps { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 22 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | Dubious [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 22 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | Certain(numerator / denominator) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 22 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | Certain(x) => println!("Result: {x}"), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 22 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0531. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps<&'_T>::cloned (line 1544) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1546:13 [INFO] [stdout] | [INFO] [stdout] 1546 | let opt_x = Certain(&x); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1544 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1547:19 [INFO] [stdout] | [INFO] [stdout] 1547 | assert_eq!(opt_x, Certain(&12)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1544 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1549:20 [INFO] [stdout] | [INFO] [stdout] 1549 | assert_eq!(cloned, Certain(12)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1544 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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 - Perhaps<&'_T>::copied (line 1519) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1521:13 [INFO] [stdout] | [INFO] [stdout] 1521 | let opt_x = Certain(&x); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1519 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1522:19 [INFO] [stdout] | [INFO] [stdout] 1522 | assert_eq!(opt_x, Certain(&12)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1519 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1524:20 [INFO] [stdout] | [INFO] [stdout] 1524 | assert_eq!(copied, Certain(12)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1519 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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 387) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:388:11 [INFO] [stdout] | [INFO] [stdout] 388 | let yep = Certain(42); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 387 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 389 | let nope = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 387 + use perhaps::Perhaps::Dubious; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 81) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | fn add_last_numbers(stack: &mut Vec) -> Perhaps { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 83 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:89:49 [INFO] [stdout] | [INFO] [stdout] 89 | (Self::Certain(x), Self::Certain(y)) => Certain(x + y), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 83 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:90:14 [INFO] [stdout] | [INFO] [stdout] 90 | _ => Dubious, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 83 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | (Self::Certain(x), Self::Certain(y)) => Certain(x + y), [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:89:28 [INFO] [stdout] | [INFO] [stdout] 89 | (Self::Certain(x), Self::Certain(y)) => Certain(x + y), [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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 459) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:460:10 [INFO] [stdout] | [INFO] [stdout] 460 | let v = [Dubious, Self::Certain(1), Self::Certain(2), Certain(3)]; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 459 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:460:55 [INFO] [stdout] | [INFO] [stdout] 460 | let v = [Dubious, Self::Certain(1), Self::Certain(2), Certain(3)]; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 459 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:461:10 [INFO] [stdout] | [INFO] [stdout] 461 | let res: Perhaps = v.into_iter().sum(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 459 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:462:17 [INFO] [stdout] | [INFO] [stdout] 462 | assert_eq!(res, Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 459 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:463:46 [INFO] [stdout] | [INFO] [stdout] 463 | let v = [Self::Certain(1), Self::Certain(2), Certain(21)]; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 459 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:464:10 [INFO] [stdout] | [INFO] [stdout] 464 | let res: Perhaps = v.into_iter().product(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 459 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:465:17 [INFO] [stdout] | [INFO] [stdout] 465 | assert_eq!(res, Certain(42)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 459 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:460:19 [INFO] [stdout] | [INFO] [stdout] 460 | let v = [Dubious, Self::Certain(1), Self::Certain(2), Certain(3)]; [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:460:37 [INFO] [stdout] | [INFO] [stdout] 460 | let v = [Dubious, Self::Certain(1), Self::Certain(2), Certain(3)]; [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:463:10 [INFO] [stdout] | [INFO] [stdout] 463 | let v = [Self::Certain(1), Self::Certain(2), Certain(21)]; [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:463:28 [INFO] [stdout] | [INFO] [stdout] 463 | let v = [Self::Certain(1), Self::Certain(2), Certain(21)]; [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 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 57) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | let optional = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 57 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:61:16 [INFO] [stdout] | [INFO] [stdout] 61 | let optional = Certain(Box::new(9000)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 57 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:64:29 [INFO] [stdout] | [INFO] [stdout] 64 | fn check_optional(optional: Perhaps>) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 57 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | Certain(p) => println!("has value {p}"), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 57 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0531. [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 97) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:100:46 [INFO] [stdout] | [INFO] [stdout] 100 | fn add_last_numbers(stack: &mut Vec) -> Perhaps { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 99 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | Certain(stack.pop()? + stack.pop()?) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 99 + use perhaps::Perhaps::Certain; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps<&'aT>::from (line 1723) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1724:8 [INFO] [stdout] | [INFO] [stdout] 1724 | let s: Perhaps = Certain(String::from("Hello, Rustaceans!")); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1723 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1724:26 [INFO] [stdout] | [INFO] [stdout] 1724 | let s: Perhaps = Certain(String::from("Hello, Rustaceans!")); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1723 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1725:8 [INFO] [stdout] | [INFO] [stdout] 1725 | let o: Perhaps = Perhaps::from(&s).map(|ss: &String| ss.len()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1723 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1725:25 [INFO] [stdout] | [INFO] [stdout] 1725 | let o: Perhaps = Perhaps::from(&s).map(|ss: &String| ss.len()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Perhaps` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1723 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1729:15 [INFO] [stdout] | [INFO] [stdout] 1729 | assert_eq!(o, Certain(18)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1723 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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 - Perhaps>::transpose (line 1620) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1624:15 [INFO] [stdout] | [INFO] [stdout] 1624 | let x: Result, SomeErr> = Ok(Certain(5)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1620 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1624:43 [INFO] [stdout] | [INFO] [stdout] 1624 | let x: Result, SomeErr> = Ok(Certain(5)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1620 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1625:8 [INFO] [stdout] | [INFO] [stdout] 1625 | let y: Perhaps> = Certain(Ok(5)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1620 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1625:40 [INFO] [stdout] | [INFO] [stdout] 1625 | let y: Perhaps> = Certain(Ok(5)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1620 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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 - Perhaps<&'_mutT>::cloned (line 1592) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1594:13 [INFO] [stdout] | [INFO] [stdout] 1594 | let opt_x = Certain(&mut x); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1592 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1595:19 [INFO] [stdout] | [INFO] [stdout] 1595 | assert_eq!(opt_x, Certain(&mut 12)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1592 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1597:20 [INFO] [stdout] | [INFO] [stdout] 1597 | assert_eq!(cloned, Certain(12)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1592 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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 - Perhaps>::flatten (line 1764) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1765:8 [INFO] [stdout] | [INFO] [stdout] 1765 | let x: Perhaps> = Self::Certain(Certain(6)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1764 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1765:16 [INFO] [stdout] | [INFO] [stdout] 1765 | let x: Perhaps> = Self::Certain(Certain(6)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1764 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1765:46 [INFO] [stdout] | [INFO] [stdout] 1765 | let x: Perhaps> = Self::Certain(Certain(6)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1764 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1766:12 [INFO] [stdout] | [INFO] [stdout] 1766 | assert_eq!(Certain(6), x.flatten()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1764 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1768:8 [INFO] [stdout] | [INFO] [stdout] 1768 | let x: Perhaps> = Certain(Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1764 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1768:16 [INFO] [stdout] | [INFO] [stdout] 1768 | let x: Perhaps> = Certain(Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1764 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1768:32 [INFO] [stdout] | [INFO] [stdout] 1768 | let x: Perhaps> = Certain(Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1764 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1768:40 [INFO] [stdout] | [INFO] [stdout] 1768 | let x: Perhaps> = Certain(Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1764 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1769:12 [INFO] [stdout] | [INFO] [stdout] 1769 | assert_eq!(Dubious, x.flatten()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1764 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1771:8 [INFO] [stdout] | [INFO] [stdout] 1771 | let x: Perhaps> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1764 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1771:16 [INFO] [stdout] | [INFO] [stdout] 1771 | let x: Perhaps> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1764 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1771:32 [INFO] [stdout] | [INFO] [stdout] 1771 | let x: Perhaps> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1764 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1772:12 [INFO] [stdout] | [INFO] [stdout] 1772 | assert_eq!(Dubious, x.flatten()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1764 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:1765:32 [INFO] [stdout] | [INFO] [stdout] 1765 | let x: Perhaps> = Self::Certain(Certain(6)); [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 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 - Perhaps>::flatten (line 1777) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1778:8 [INFO] [stdout] | [INFO] [stdout] 1778 | let x: Perhaps>> = Self::Certain(Self::Certain(Certain(6))); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1777 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1778:16 [INFO] [stdout] | [INFO] [stdout] 1778 | let x: Perhaps>> = Self::Certain(Self::Certain(Certain(6))); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1777 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1778:24 [INFO] [stdout] | [INFO] [stdout] 1778 | let x: Perhaps>> = Self::Certain(Self::Certain(Certain(6))); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1777 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1778:69 [INFO] [stdout] | [INFO] [stdout] 1778 | let x: Perhaps>> = Self::Certain(Self::Certain(Certain(6))); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1777 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1779:26 [INFO] [stdout] | [INFO] [stdout] 1779 | assert_eq!(Self::Certain(Certain(6)), x.flatten()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1777 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1780:12 [INFO] [stdout] | [INFO] [stdout] 1780 | assert_eq!(Certain(6), x.flatten().flatten()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1777 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:1778:41 [INFO] [stdout] | [INFO] [stdout] 1778 | let x: Perhaps>> = Self::Certain(Self::Certain(Certain(6))); [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:1778:55 [INFO] [stdout] | [INFO] [stdout] 1778 | let x: Perhaps>> = Self::Certain(Self::Certain(Certain(6))); [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:1779:12 [INFO] [stdout] | [INFO] [stdout] 1779 | assert_eq!(Self::Certain(Certain(6)), x.flatten()); [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 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 - Perhaps<&'_mutT>::copied (line 1569) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1571:13 [INFO] [stdout] | [INFO] [stdout] 1571 | let opt_x = Certain(&mut x); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1569 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1572:19 [INFO] [stdout] | [INFO] [stdout] 1572 | assert_eq!(opt_x, Certain(&mut 12)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1569 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1574:20 [INFO] [stdout] | [INFO] [stdout] 1574 | assert_eq!(copied, Certain(12)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1569 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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 - Perhaps<(T,U)>::unzip (line 1497) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1498:9 [INFO] [stdout] | [INFO] [stdout] 1498 | let x = Certain((1, "hi")); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1497 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1499:9 [INFO] [stdout] | [INFO] [stdout] 1499 | let y = Dubious::<(u8, u32)>; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1497 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1501:42 [INFO] [stdout] | [INFO] [stdout] 1501 | assert_eq!(x.unzip(), (Self::Certain(1), Certain("hi"))); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1497 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1502:39 [INFO] [stdout] | [INFO] [stdout] 1502 | assert_eq!(y.unzip(), (Self::Dubious, Dubious)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1497 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:1501:24 [INFO] [stdout] | [INFO] [stdout] 1501 | assert_eq!(x.unzip(), (Self::Certain(1), Certain("hi"))); [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:1502:24 [INFO] [stdout] | [INFO] [stdout] 1502 | assert_eq!(y.unzip(), (Self::Dubious, Dubious)); [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 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 - Perhaps::and_then (line 1166) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1167:33 [INFO] [stdout] | [INFO] [stdout] 1167 | fn sq_then_to_string(x: u32) -> Perhaps { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1166 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1171:58 [INFO] [stdout] | [INFO] [stdout] 1171 | assert_eq!(Self::Certain(2).and_then(sq_then_to_string), Certain(4.to_string())); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1166 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1172:12 [INFO] [stdout] | [INFO] [stdout] 1172 | assert_eq!(Certain(1_000_000).and_then(sq_then_to_string), Dubious); // overflowed! [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1166 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1172:60 [INFO] [stdout] | [INFO] [stdout] 1172 | assert_eq!(Certain(1_000_000).and_then(sq_then_to_string), Dubious); // overflowed! [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1166 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1173:55 [INFO] [stdout] | [INFO] [stdout] 1173 | assert_eq!(Self::Dubious.and_then(sq_then_to_string), Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1166 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:1171:12 [INFO] [stdout] | [INFO] [stdout] 1171 | assert_eq!(Self::Certain(2).and_then(sq_then_to_string), Certain(4.to_string())); [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:1173:12 [INFO] [stdout] | [INFO] [stdout] 1173 | assert_eq!(Self::Dubious.and_then(sq_then_to_string), Dubious); [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [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 - Perhaps<&'amutT>::from (line 1741) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1742:13 [INFO] [stdout] | [INFO] [stdout] 1742 | let mut s = Certain(String::from("Hello")); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1741 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1743:8 [INFO] [stdout] | [INFO] [stdout] 1743 | let o: Perhaps<&mut String> = Perhaps::from(&mut s); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1741 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1743:31 [INFO] [stdout] | [INFO] [stdout] 1743 | let o: Perhaps<&mut String> = Perhaps::from(&mut s); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Perhaps` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1741 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1746:5 [INFO] [stdout] | [INFO] [stdout] 1746 | Certain(t) => *t = String::from("Hello, Rustaceans!"), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1741 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1750:15 [INFO] [stdout] | [INFO] [stdout] 1750 | assert_eq!(s, Certain(String::from("Hello, Rustaceans!"))); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1741 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0531. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::as_deref (line 1073) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1074:8 [INFO] [stdout] | [INFO] [stdout] 1074 | let x: Perhaps = Certain("hey".to_owned()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1073 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1074:26 [INFO] [stdout] | [INFO] [stdout] 1074 | let x: Perhaps = Certain("hey".to_owned()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1073 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1075:26 [INFO] [stdout] | [INFO] [stdout] 1075 | assert_eq!(x.as_deref(), Certain("hey")); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1073 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1077:8 [INFO] [stdout] | [INFO] [stdout] 1077 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1073 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1077:26 [INFO] [stdout] | [INFO] [stdout] 1077 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1073 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1078:26 [INFO] [stdout] | [INFO] [stdout] 1078 | assert_eq!(x.as_deref(), Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1073 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 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 - Perhaps::as_mut (line 671) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:672:13 [INFO] [stdout] | [INFO] [stdout] 672 | let mut x = Certain(2); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 671 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:674:5 [INFO] [stdout] | [INFO] [stdout] 674 | Certain(v) => *v = 42, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 671 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:677:15 [INFO] [stdout] | [INFO] [stdout] 677 | assert_eq!(x, Certain(42)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 671 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0531. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::as_deref_mut (line 1098) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1099:12 [INFO] [stdout] | [INFO] [stdout] 1099 | let mut x: Perhaps = Certain("hey".to_owned()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1098 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1099:30 [INFO] [stdout] | [INFO] [stdout] 1099 | let mut x: Perhaps = Certain("hey".to_owned()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1098 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1103:5 [INFO] [stdout] | [INFO] [stdout] 1103 | }), Certain("HEY".to_owned().as_mut_str())); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1098 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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 - Perhaps::and (line 1134) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1135:9 [INFO] [stdout] | [INFO] [stdout] 1135 | let x = Certain(2); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1134 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1136:8 [INFO] [stdout] | [INFO] [stdout] 1136 | let y: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1134 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1136:24 [INFO] [stdout] | [INFO] [stdout] 1136 | let y: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1134 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1137:22 [INFO] [stdout] | [INFO] [stdout] 1137 | assert_eq!(x.and(y), Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1134 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1139:8 [INFO] [stdout] | [INFO] [stdout] 1139 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1134 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1139:23 [INFO] [stdout] | [INFO] [stdout] 1139 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1134 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1140:9 [INFO] [stdout] | [INFO] [stdout] 1140 | let y = Certain("foo"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1134 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1141:22 [INFO] [stdout] | [INFO] [stdout] 1141 | assert_eq!(x.and(y), Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1134 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1143:9 [INFO] [stdout] | [INFO] [stdout] 1143 | let x = Certain(2); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1134 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1144:9 [INFO] [stdout] | [INFO] [stdout] 1144 | let y = Certain("foo"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1134 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1145:22 [INFO] [stdout] | [INFO] [stdout] 1145 | assert_eq!(x.and(y), Certain("foo")); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1134 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1147:8 [INFO] [stdout] | [INFO] [stdout] 1147 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1134 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1147:23 [INFO] [stdout] | [INFO] [stdout] 1147 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1134 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1148:8 [INFO] [stdout] | [INFO] [stdout] 1148 | let y: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1134 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1148:24 [INFO] [stdout] | [INFO] [stdout] 1148 | let y: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1134 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1149:22 [INFO] [stdout] | [INFO] [stdout] 1149 | assert_eq!(x.and(y), Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1134 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 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 - Perhaps::expect (line 700) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:701:9 [INFO] [stdout] | [INFO] [stdout] 701 | let x = Certain("value"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 700 + use perhaps::Perhaps::Certain; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::and_then (line 1178) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1182:22 [INFO] [stdout] | [INFO] [stdout] 1182 | assert_eq!(item_0_1, Certain(&"A1")); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1178 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1185:22 [INFO] [stdout] | [INFO] [stdout] 1185 | assert_eq!(item_2_0, Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1178 + use perhaps::Perhaps::Dubious; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::as_ref (line 652) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:653:11 [INFO] [stdout] | [INFO] [stdout] 653 | let text: Perhaps = Certain("Hello, world!".to_string()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 652 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:653:29 [INFO] [stdout] | [INFO] [stdout] 653 | let text: Perhaps = Certain("Hello, world!".to_string()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 652 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:656:18 [INFO] [stdout] | [INFO] [stdout] 656 | let text_length: Perhaps = text.as_ref().map(|s| s.len()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 652 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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 - Perhaps::default (line 1685) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1686:10 [INFO] [stdout] | [INFO] [stdout] 1686 | let opt: Perhaps = Perhaps::default(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1685 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1686:25 [INFO] [stdout] | [INFO] [stdout] 1686 | let opt: Perhaps = Perhaps::default(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Perhaps` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1685 + use perhaps::Perhaps; [INFO] [stdout] | [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 - Perhaps::expect (line 705) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:706:8 [INFO] [stdout] | [INFO] [stdout] 706 | let x: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 705 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:706:24 [INFO] [stdout] | [INFO] [stdout] 706 | let x: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 705 + use perhaps::Perhaps::Dubious; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::get_or_insert_with (line 1393) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1394:13 [INFO] [stdout] | [INFO] [stdout] 1394 | let mut x = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1393 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1403:15 [INFO] [stdout] | [INFO] [stdout] 1403 | assert_eq!(x, Certain(7)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1393 + use perhaps::Perhaps::Certain; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::insert (line 1338) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1339:15 [INFO] [stdout] | [INFO] [stdout] 1339 | let mut opt = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1338 + use perhaps::Perhaps::Dubious; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::get_or_insert (line 1365) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1366:13 [INFO] [stdout] | [INFO] [stdout] 1366 | let mut x = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1365 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1375:15 [INFO] [stdout] | [INFO] [stdout] 1375 | assert_eq!(x, Certain(7)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1365 + use perhaps::Perhaps::Certain; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::filter (line 1212) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1217:43 [INFO] [stdout] | [INFO] [stdout] 1217 | assert_eq!(Self::Dubious.filter(is_even), Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1212 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1218:12 [INFO] [stdout] | [INFO] [stdout] 1218 | assert_eq!(Certain(3).filter(is_even), Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1212 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1218:40 [INFO] [stdout] | [INFO] [stdout] 1218 | assert_eq!(Certain(3).filter(is_even), Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1212 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1219:46 [INFO] [stdout] | [INFO] [stdout] 1219 | assert_eq!(Self::Certain(4).filter(is_even), Certain(4)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1212 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:1217:12 [INFO] [stdout] | [INFO] [stdout] 1217 | assert_eq!(Self::Dubious.filter(is_even), Dubious); [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:1219:12 [INFO] [stdout] | [INFO] [stdout] 1219 | assert_eq!(Self::Certain(4).filter(is_even), Certain(4)); [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 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 - Perhaps::from (line 1700) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1701:8 [INFO] [stdout] | [INFO] [stdout] 1701 | let o: Perhaps = Perhaps::from(67); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1700 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1701:22 [INFO] [stdout] | [INFO] [stdout] 1701 | let o: Perhaps = Perhaps::from(67); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Perhaps` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1700 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1703:12 [INFO] [stdout] | [INFO] [stdout] 1703 | assert_eq!(Certain(67), o); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1700 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [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 - Perhaps::is_certain (line 581) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:582:8 [INFO] [stdout] | [INFO] [stdout] 582 | let x: Perhaps = Certain(2); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 581 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:582:23 [INFO] [stdout] | [INFO] [stdout] 582 | let x: Perhaps = Certain(2); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 581 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:585:8 [INFO] [stdout] | [INFO] [stdout] 585 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 581 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:585:23 [INFO] [stdout] | [INFO] [stdout] 585 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 581 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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 - Perhaps::map (line 888) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:889:20 [INFO] [stdout] | [INFO] [stdout] 889 | let maybe_string = Certain(String::from("Hello, World!")); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 888 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:892:23 [INFO] [stdout] | [INFO] [stdout] 892 | assert_eq!(maybe_len, Certain(13)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 888 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:894:8 [INFO] [stdout] | [INFO] [stdout] 894 | let x: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 888 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:894:24 [INFO] [stdout] | [INFO] [stdout] 894 | let x: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 888 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:895:32 [INFO] [stdout] | [INFO] [stdout] 895 | assert_eq!(x.map(|s| s.len()), Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 888 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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 - Perhaps::is_certain_and (line 598) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:599:8 [INFO] [stdout] | [INFO] [stdout] 599 | let x: Perhaps = Certain(2); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 598 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:599:23 [INFO] [stdout] | [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] 599 | let x: Perhaps = Certain(2); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 598 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:602:8 [INFO] [stdout] | [INFO] [stdout] 602 | let x: Perhaps = Certain(0); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 598 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:602:23 [INFO] [stdout] | [INFO] [stdout] 602 | let x: Perhaps = Certain(0); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 598 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:605:8 [INFO] [stdout] | [INFO] [stdout] 605 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 598 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:605:23 [INFO] [stdout] | [INFO] [stdout] 605 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 598 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 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 - Perhaps::map_or_else (line 970) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:973:9 [INFO] [stdout] | [INFO] [stdout] 973 | let x = Certain("foo"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 970 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:976:8 [INFO] [stdout] | [INFO] [stdout] 976 | let x: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 970 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:976:24 [INFO] [stdout] | [INFO] [stdout] 976 | let x: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 970 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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 - Perhaps::is_dubious (line 621) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:622:8 [INFO] [stdout] | [INFO] [stdout] 622 | let x: Perhaps = Certain(2); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 621 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:622:23 [INFO] [stdout] | [INFO] [stdout] 622 | let x: Perhaps = Certain(2); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 621 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:625:8 [INFO] [stdout] | [INFO] [stdout] 625 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 621 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:625:23 [INFO] [stdout] | [INFO] [stdout] 625 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 621 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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 - Perhaps::map_or (line 946) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:947:9 [INFO] [stdout] | [INFO] [stdout] 947 | let x = Certain("foo"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 946 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:950:8 [INFO] [stdout] | [INFO] [stdout] 950 | let x: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 946 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:950:24 [INFO] [stdout] | [INFO] [stdout] 950 | let x: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 946 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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 - Perhaps::ok_or (line 1024) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1025:9 [INFO] [stdout] | [INFO] [stdout] 1025 | let x = Certain("foo"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1024 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1028:8 [INFO] [stdout] | [INFO] [stdout] 1028 | let x: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1024 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1028:24 [INFO] [stdout] | [INFO] [stdout] 1028 | let x: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1024 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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 - Perhaps::ok_or_else (line 1048) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1049:9 [INFO] [stdout] | [INFO] [stdout] 1049 | let x = Certain("foo"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1048 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1052:8 [INFO] [stdout] | [INFO] [stdout] 1052 | let x: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1048 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1052:24 [INFO] [stdout] | [INFO] [stdout] 1052 | let x: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1048 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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 - Perhaps::or_else (line 1276) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1277:16 [INFO] [stdout] | [INFO] [stdout] 1277 | fn nobody() -> Perhaps<&'static str> { Dubious } [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1276 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1277:40 [INFO] [stdout] | [INFO] [stdout] 1277 | fn nobody() -> Perhaps<&'static str> { Dubious } [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1276 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1278:17 [INFO] [stdout] | [INFO] [stdout] 1278 | fn vikings() -> Perhaps<&'static str> { Certain("vikings") } [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1276 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1278:41 [INFO] [stdout] | [INFO] [stdout] 1278 | fn vikings() -> Perhaps<&'static str> { Certain("vikings") } [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1276 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1280:58 [INFO] [stdout] | [INFO] [stdout] 1280 | assert_eq!(Self::Certain("barbarians").or_else(vikings), Certain("barbarians")); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1276 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1281:12 [INFO] [stdout] | [INFO] [stdout] 1281 | assert_eq!(Dubious.or_else(vikings), Certain("vikings")); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1276 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1281:38 [INFO] [stdout] | [INFO] [stdout] 1281 | assert_eq!(Dubious.or_else(vikings), Certain("vikings")); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1276 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1282:43 [INFO] [stdout] | [INFO] [stdout] 1282 | assert_eq!(Self::Dubious.or_else(nobody), Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1276 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:1280:12 [INFO] [stdout] | [INFO] [stdout] 1280 | assert_eq!(Self::Certain("barbarians").or_else(vikings), Certain("barbarians")); [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Self` in this scope [INFO] [stdout] --> src/lib.rs:1282:12 [INFO] [stdout] | [INFO] [stdout] 1282 | assert_eq!(Self::Dubious.or_else(nobody), Dubious); [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [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 - Perhaps::replace (line 1450) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1451:13 [INFO] [stdout] | [INFO] [stdout] 1451 | let mut x = Certain(2); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1450 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1453:15 [INFO] [stdout] | [INFO] [stdout] 1453 | assert_eq!(x, Certain(5)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1450 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1454:17 [INFO] [stdout] | [INFO] [stdout] 1454 | assert_eq!(old, Certain(2)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1450 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1456:13 [INFO] [stdout] | [INFO] [stdout] 1456 | let mut x = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1450 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1458:15 [INFO] [stdout] | [INFO] [stdout] 1458 | assert_eq!(x, Certain(3)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1450 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1459:17 [INFO] [stdout] | [INFO] [stdout] 1459 | assert_eq!(old, Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1450 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 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 - Perhaps::unwrap_or (line 783) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:784:12 [INFO] [stdout] | [INFO] [stdout] 784 | assert_eq!(Certain("car").unwrap_or("bike"), "car"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 783 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:785:12 [INFO] [stdout] | [INFO] [stdout] 785 | assert_eq!(Dubious.unwrap_or("bike"), "bike"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 783 + use perhaps::Perhaps::Dubious; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::unwrap (line 760) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:761:8 [INFO] [stdout] | [INFO] [stdout] 761 | let x: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 760 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:761:24 [INFO] [stdout] | [INFO] [stdout] 761 | let x: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 760 + use perhaps::Perhaps::Dubious; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::unwrap (line 755) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:756:9 [INFO] [stdout] | [INFO] [stdout] 756 | let x = Certain("air"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 755 + use perhaps::Perhaps::Certain; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::or (line 1246) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1247:9 [INFO] [stdout] | [INFO] [stdout] 1247 | let x = Certain(2); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1246 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1248:9 [INFO] [stdout] | [INFO] [stdout] 1248 | let y = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1246 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1249:21 [INFO] [stdout] | [INFO] [stdout] 1249 | assert_eq!(x.or(y), Certain(2)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1246 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1251:9 [INFO] [stdout] | [INFO] [stdout] 1251 | let x = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1246 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1252:9 [INFO] [stdout] | [INFO] [stdout] 1252 | let y = Certain(100); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1246 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1253:21 [INFO] [stdout] | [INFO] [stdout] 1253 | assert_eq!(x.or(y), Certain(100)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1246 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1255:9 [INFO] [stdout] | [INFO] [stdout] 1255 | let x = Certain(2); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1246 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1256:9 [INFO] [stdout] | [INFO] [stdout] 1256 | let y = Certain(100); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1246 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1257:21 [INFO] [stdout] | [INFO] [stdout] 1257 | assert_eq!(x.or(y), Certain(2)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1246 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1259:8 [INFO] [stdout] | [INFO] [stdout] 1259 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1246 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1259:23 [INFO] [stdout] | [INFO] [stdout] 1259 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1246 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1260:9 [INFO] [stdout] | [INFO] [stdout] 1260 | let y = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1246 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1261:21 [INFO] [stdout] | [INFO] [stdout] 1261 | assert_eq!(x.or(y), Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1246 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 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 - Perhaps::unwrap_or_else (line 799) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:801:12 [INFO] [stdout] | [INFO] [stdout] 801 | assert_eq!(Certain(4).unwrap_or_else(|| 2 * k), 4); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 799 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:802:12 [INFO] [stdout] | [INFO] [stdout] 802 | assert_eq!(Dubious.unwrap_or_else(|| 2 * k), 20); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 799 + use perhaps::Perhaps::Dubious; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::xor (line 1299) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1300:9 [INFO] [stdout] | [INFO] [stdout] 1300 | let x = Certain(2); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1299 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1301:8 [INFO] [stdout] | [INFO] [stdout] 1301 | let y: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1299 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1301:23 [INFO] [stdout] | [INFO] [stdout] 1301 | let y: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1299 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1302:22 [INFO] [stdout] | [INFO] [stdout] 1302 | assert_eq!(x.xor(y), Certain(2)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1299 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1304:8 [INFO] [stdout] | [INFO] [stdout] 1304 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1299 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1304:23 [INFO] [stdout] | [INFO] [stdout] 1304 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1299 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1305:9 [INFO] [stdout] | [INFO] [stdout] 1305 | let y = Certain(2); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1299 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1306:22 [INFO] [stdout] | [INFO] [stdout] 1306 | assert_eq!(x.xor(y), Certain(2)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1299 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1308:9 [INFO] [stdout] | [INFO] [stdout] 1308 | let x = Certain(2); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1299 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1309:9 [INFO] [stdout] | [INFO] [stdout] 1309 | let y = Certain(2); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1299 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1310:22 [INFO] [stdout] | [INFO] [stdout] 1310 | assert_eq!(x.xor(y), Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1299 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1312:8 [INFO] [stdout] | [INFO] [stdout] 1312 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1299 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1312:23 [INFO] [stdout] | [INFO] [stdout] 1312 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1299 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1313:8 [INFO] [stdout] | [INFO] [stdout] 1313 | let y: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1299 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1313:23 [INFO] [stdout] | [INFO] [stdout] 1313 | let y: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1299 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1314:22 [INFO] [stdout] | [INFO] [stdout] 1314 | assert_eq!(x.xor(y), Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1299 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 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 - Perhaps::unwrap_unchecked (line 862) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:863:8 [INFO] [stdout] | [INFO] [stdout] 863 | let x: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 862 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:863:24 [INFO] [stdout] | [INFO] [stdout] 863 | let x: Perhaps<&str> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 862 + use perhaps::Perhaps::Dubious; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::zip (line 1473) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1474:9 [INFO] [stdout] | [INFO] [stdout] 1474 | let x = Certain(1); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1473 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1475:9 [INFO] [stdout] | [INFO] [stdout] 1475 | let y = Certain("hi"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1473 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1476:9 [INFO] [stdout] | [INFO] [stdout] 1476 | let z = Dubious::; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1473 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1478:22 [INFO] [stdout] | [INFO] [stdout] 1478 | assert_eq!(x.zip(y), Certain((1, "hi"))); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1473 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1479:22 [INFO] [stdout] | [INFO] [stdout] 1479 | assert_eq!(x.zip(z), Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1473 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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 - Perhaps::take (line 1427) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1428:13 [INFO] [stdout] | [INFO] [stdout] 1428 | let mut x = Certain(2); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1427 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1430:15 [INFO] [stdout] | [INFO] [stdout] 1430 | assert_eq!(x, Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1427 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:1431:15 [INFO] [stdout] | [INFO] [stdout] 1431 | assert_eq!(y, Certain(2)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 1427 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1433:12 [INFO] [stdout] | [INFO] [stdout] 1433 | let mut x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1427 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1433:27 [INFO] [stdout] | [INFO] [stdout] 1433 | let mut x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1427 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1435:15 [INFO] [stdout] | [INFO] [stdout] 1435 | assert_eq!(x, Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1427 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:1436:15 [INFO] [stdout] | [INFO] [stdout] 1436 | assert_eq!(y, Dubious); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1427 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 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 - Perhaps::unwrap_unchecked (line 857) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:858:9 [INFO] [stdout] | [INFO] [stdout] 858 | let x = Certain("air"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 857 + use perhaps::Perhaps::Certain; [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::unwrap_or_default (line 824) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:825:8 [INFO] [stdout] | [INFO] [stdout] 825 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 824 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:825:23 [INFO] [stdout] | [INFO] [stdout] 825 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 824 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:826:8 [INFO] [stdout] | [INFO] [stdout] 826 | let y: Perhaps = Certain(12); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 824 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Certain` in this scope [INFO] [stdout] --> src/lib.rs:826:23 [INFO] [stdout] | [INFO] [stdout] 826 | let y: Perhaps = Certain(12); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 824 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 22) [INFO] [stdout] src/lib.rs - (line 318) [INFO] [stdout] src/lib.rs - (line 350) [INFO] [stdout] src/lib.rs - (line 387) [INFO] [stdout] src/lib.rs - (line 401) [INFO] [stdout] src/lib.rs - (line 442) [INFO] [stdout] src/lib.rs - (line 459) [INFO] [stdout] src/lib.rs - (line 503) [INFO] [stdout] src/lib.rs - (line 517) [INFO] [stdout] src/lib.rs - (line 57) [INFO] [stdout] src/lib.rs - (line 81) [INFO] [stdout] src/lib.rs - (line 97) [INFO] [stdout] src/lib.rs - Perhaps<&'_T>::cloned (line 1544) [INFO] [stdout] src/lib.rs - Perhaps<&'_T>::copied (line 1519) [INFO] [stdout] src/lib.rs - Perhaps<&'_mutT>::cloned (line 1592) [INFO] [stdout] src/lib.rs - Perhaps<&'_mutT>::copied (line 1569) [INFO] [stdout] src/lib.rs - Perhaps<&'aT>::from (line 1723) [INFO] [stdout] src/lib.rs - Perhaps<&'amutT>::from (line 1741) [INFO] [stdout] src/lib.rs - Perhaps<(T,U)>::unzip (line 1497) [INFO] [stdout] src/lib.rs - Perhaps>::flatten (line 1764) [INFO] [stdout] src/lib.rs - Perhaps>::flatten (line 1777) [INFO] [stdout] src/lib.rs - Perhaps>::transpose (line 1620) [INFO] [stdout] src/lib.rs - Perhaps::and (line 1134) [INFO] [stdout] src/lib.rs - Perhaps::and_then (line 1166) [INFO] [stdout] src/lib.rs - Perhaps::and_then (line 1178) [INFO] [stdout] src/lib.rs - Perhaps::as_deref (line 1073) [INFO] [stdout] src/lib.rs - Perhaps::as_deref_mut (line 1098) [INFO] [stdout] src/lib.rs - Perhaps::as_mut (line 671) [INFO] [stdout] src/lib.rs - Perhaps::as_ref (line 652) [INFO] [stdout] src/lib.rs - Perhaps::default (line 1685) [INFO] [stdout] src/lib.rs - Perhaps::expect (line 700) [INFO] [stdout] src/lib.rs - Perhaps::expect (line 705) [INFO] [stdout] src/lib.rs - Perhaps::filter (line 1212) [INFO] [stdout] src/lib.rs - Perhaps::from (line 1700) [INFO] [stdout] src/lib.rs - Perhaps::get_or_insert (line 1365) [INFO] [stdout] src/lib.rs - Perhaps::get_or_insert_with (line 1393) [INFO] [stdout] src/lib.rs - Perhaps::insert (line 1338) [INFO] [stdout] src/lib.rs - Perhaps::is_certain (line 581) [INFO] [stdout] src/lib.rs - Perhaps::is_certain_and (line 598) [INFO] [stdout] src/lib.rs - Perhaps::is_dubious (line 621) [INFO] [stdout] src/lib.rs - Perhaps::map (line 888) [INFO] [stdout] src/lib.rs - Perhaps::map_or (line 946) [INFO] [stdout] src/lib.rs - Perhaps::map_or_else (line 970) [INFO] [stdout] src/lib.rs - Perhaps::ok_or (line 1024) [INFO] [stdout] src/lib.rs - Perhaps::ok_or_else (line 1048) [INFO] [stdout] src/lib.rs - Perhaps::or (line 1246) [INFO] [stdout] src/lib.rs - Perhaps::or_else (line 1276) [INFO] [stdout] src/lib.rs - Perhaps::replace (line 1450) [INFO] [stdout] src/lib.rs - Perhaps::take (line 1427) [INFO] [stdout] src/lib.rs - Perhaps::unwrap (line 755) [INFO] [stdout] src/lib.rs - Perhaps::unwrap (line 760) [INFO] [stdout] src/lib.rs - Perhaps::unwrap_or (line 783) [INFO] [stdout] src/lib.rs - Perhaps::unwrap_or_default (line 824) [INFO] [stdout] src/lib.rs - Perhaps::unwrap_or_else (line 799) [INFO] [stdout] src/lib.rs - Perhaps::unwrap_unchecked (line 857) [INFO] [stdout] src/lib.rs - Perhaps::unwrap_unchecked (line 862) [INFO] [stdout] src/lib.rs - Perhaps::xor (line 1299) [INFO] [stdout] src/lib.rs - Perhaps::zip (line 1473) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 4 passed; 58 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.34s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3fc154058db0f5058cbe9896a40583bd9b465f275eee116406c7b84d26e59565", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fc154058db0f5058cbe9896a40583bd9b465f275eee116406c7b84d26e59565", kill_on_drop: false }` [INFO] [stdout] 3fc154058db0f5058cbe9896a40583bd9b465f275eee116406c7b84d26e59565