[INFO] fetching crate perhaps 2.0.0... [INFO] testing perhaps-2.0.0 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate perhaps 2.0.0 into /workspace/builds/worker-1-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-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate perhaps 2.0.0 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2468f7474de30e57b63a049dee91c997fcd3e81770abe12859d43cdcc1bb39c3 [INFO] running `Command { std: "docker" "start" "-a" "2468f7474de30e57b63a049dee91c997fcd3e81770abe12859d43cdcc1bb39c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2468f7474de30e57b63a049dee91c997fcd3e81770abe12859d43cdcc1bb39c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2468f7474de30e57b63a049dee91c997fcd3e81770abe12859d43cdcc1bb39c3", kill_on_drop: false }` [INFO] [stdout] 2468f7474de30e57b63a049dee91c997fcd3e81770abe12859d43cdcc1bb39c3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 40dca02a814e7408637dd483fd9fd8cb9e9b75fefdaa7aa21d3fa5ad745547a3 [INFO] running `Command { std: "docker" "start" "-a" "40dca02a814e7408637dd483fd9fd8cb9e9b75fefdaa7aa21d3fa5ad745547a3", 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.20s [INFO] running `Command { std: "docker" "inspect" "40dca02a814e7408637dd483fd9fd8cb9e9b75fefdaa7aa21d3fa5ad745547a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40dca02a814e7408637dd483fd9fd8cb9e9b75fefdaa7aa21d3fa5ad745547a3", kill_on_drop: false }` [INFO] [stdout] 40dca02a814e7408637dd483fd9fd8cb9e9b75fefdaa7aa21d3fa5ad745547a3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb0fc56583d206cbc3bca8785d706e4b24799d3f6843404361a2ed2f799828ea [INFO] running `Command { std: "docker" "start" "-a" "eb0fc56583d206cbc3bca8785d706e4b24799d3f6843404361a2ed2f799828ea", kill_on_drop: false }` [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] 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 `test` profile [unoptimized + debuginfo] target(s) in 0.63s [INFO] running `Command { std: "docker" "inspect" "eb0fc56583d206cbc3bca8785d706e4b24799d3f6843404361a2ed2f799828ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb0fc56583d206cbc3bca8785d706e4b24799d3f6843404361a2ed2f799828ea", kill_on_drop: false }` [INFO] [stdout] eb0fc56583d206cbc3bca8785d706e4b24799d3f6843404361a2ed2f799828ea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] cc53d55006ba6cde9689e87664f830552edfcc763ed53e6081012bd5b32f04a5 [INFO] running `Command { std: "docker" "start" "-a" "cc53d55006ba6cde9689e87664f830552edfcc763ed53e6081012bd5b32f04a5", 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] [stdout] [INFO] [stderr] warning: unexpected `cfg` condition value: `panic_immediate_abort` [INFO] [stdout] running 0 tests [INFO] [stderr] --> src/lib.rs:1648:12 [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] 1648 | #[cfg_attr(feature = "panic_immediate_abort", inline)] [INFO] [stdout] [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.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/perhaps-109270fd6b17c071) [INFO] [stderr] Doc-tests perhaps [INFO] [stdout] [INFO] [stdout] running 62 tests [INFO] [stdout] test src/lib.rs - (line 350) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps<&'_T>::copied (line 1519) ... FAILED [INFO] [stdout] test src/lib.rs - (line 517) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps<&'_T>::cloned (line 1544) ... FAILED [INFO] [stdout] test src/lib.rs - (line 97) ... FAILED [INFO] [stdout] test src/lib.rs - (line 503) ... FAILED [INFO] [stdout] test src/lib.rs - (line 22) ... FAILED [INFO] [stdout] test src/lib.rs - (line 420) - compile fail ... ok [INFO] [stdout] test src/lib.rs - (line 387) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps<&'_mutT>::cloned (line 1592) ... FAILED [INFO] [stdout] test src/lib.rs - (line 459) ... FAILED [INFO] [stdout] test src/lib.rs - (line 318) ... FAILED [INFO] [stdout] test src/lib.rs - (line 81) ... FAILED [INFO] [stdout] test src/lib.rs - (line 57) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps<&'aT>::from (line 1723) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps<&'amutT>::from (line 1741) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::and_then (line 1178) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps<&'_mutT>::copied (line 1569) ... FAILED [INFO] [stdout] test src/lib.rs - (line 442) ... FAILED [INFO] [stdout] test src/lib.rs - (line 401) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::as_mut (line 671) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::expect (line 700) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::as_ref (line 652) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps<(T,U)>::unzip (line 1497) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::as_deref_mut (line 1098) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps>::flatten (line 1777) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::and (line 1134) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::and_then (line 1166) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps>::transpose (line 1620) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps>::flatten (line 1764) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::as_deref (line 1073) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::default (line 1685) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::is_certain_and (line 598) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::map_or (line 946) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::get_or_insert (line 1365) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::from (line 1700) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::map_or_else (line 970) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::ok_or (line 1024) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::or_else (line 1276) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::is_dubious (line 621) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::insert (line 1338) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::unwrap (line 755) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::take (line 1427) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::or (line 1246) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::map_or_else (line 989) - compile ... ok [INFO] [stdout] test src/lib.rs - Perhaps::unwrap (line 760) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::ok_or_else (line 1048) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::filter (line 1212) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::expect (line 705) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::unwrap_or_else (line 799) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::unwrap_or (line 783) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::get_or_insert_with (line 1393) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::zip (line 1473) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::expect (line 715) ... ok [INFO] [stdout] test src/lib.rs - Perhaps::map (line 888) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::xor (line 1299) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::unwrap_unchecked (line 857) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::unwrap_unchecked (line 862) - compile ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::unwrap_or_default (line 824) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::is_certain (line 581) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::replace (line 1450) ... FAILED [INFO] [stdout] test src/lib.rs - Perhaps::inspect (line 914) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] 3 | 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] 2 + 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] 3 | 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] 2 + 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] 4 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:352:9 [INFO] [stdout] | [INFO] [stdout] 4 | 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 - 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] 4 | 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] 2 + 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] 5 | 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] 2 + 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] 7 | 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] 2 + 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 517) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:532:34 [INFO] [stdout] | [INFO] [stdout] 17 | 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] 2 + 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] 24 | 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] 2 + 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] 31 | 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] 2 + 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<&'_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] 4 | 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] 2 + 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] 5 | 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] 2 + 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] 7 | 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] 2 + 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 97) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:100:46 [INFO] [stdout] | [INFO] [stdout] 5 | 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] 4 + 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] 6 | 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] 4 + 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: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 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] 3 | 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] 2 + 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] 6 | 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] 2 + 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 22) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:23:48 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 5 | Dubious [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 2 + 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] 7 | Certain(numerator / denominator) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 2 + 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] 17 | 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] 2 + 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: E0412, E0425, E0531. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 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] 3 | 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] 2 + 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] 4 | let nope = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 2 + 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<&'_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] 4 | 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] 2 + 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] 5 | 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] 2 + 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] 7 | 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] 2 + 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 459) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:460:10 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 3 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:461:10 [INFO] [stdout] | [INFO] [stdout] 4 | 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] 2 + 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] 5 | 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] 2 + 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] 6 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:464:10 [INFO] [stdout] | [INFO] [stdout] 7 | 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] 2 + 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] 8 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:460:19 [INFO] [stdout] | [INFO] [stdout] 3 | 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]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:460:37 [INFO] [stdout] | [INFO] [stdout] 3 | 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]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:463:10 [INFO] [stdout] | [INFO] [stdout] 6 | 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]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:463:28 [INFO] [stdout] | [INFO] [stdout] 6 | 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: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/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] 17 | .or(Certain(&"error!")) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 2 + 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 81) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 5 | 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] 4 + 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] 10 | (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] 4 + 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] 11 | _ => Dubious, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 4 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 10 | (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]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:89:28 [INFO] [stdout] | [INFO] [stdout] 10 | (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: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/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] 3 | let optional = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 2 + 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] 6 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:64:29 [INFO] [stdout] | [INFO] [stdout] 9 | 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] 2 + 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] 11 | 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] 2 + 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: E0412, E0425, E0531. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps<&'aT>::from (line 1723) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1724:8 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 3 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1725:8 [INFO] [stdout] | [INFO] [stdout] 4 | 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] 2 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Perhaps` [INFO] [stdout] --> src/lib.rs:1725:25 [INFO] [stdout] | [INFO] [stdout] 4 | 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] 2 + 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] 8 | 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] 2 + 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: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/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] 3 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1743:8 [INFO] [stdout] | [INFO] [stdout] 4 | 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] 2 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Perhaps` [INFO] [stdout] --> src/lib.rs:1743:31 [INFO] [stdout] | [INFO] [stdout] 4 | 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] 2 + 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] 7 | 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] 2 + 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] 11 | 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] 2 + 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: E0412, E0425, E0433, E0531. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - 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] 6 | 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] 2 + 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] 9 | 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] 2 + 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<&'_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] 4 | 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] 2 + 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] 5 | 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] 2 + 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] 7 | 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] 2 + 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 442) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `Dubious` in this scope [INFO] [stdout] --> src/lib.rs:443:46 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 3 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:444:10 [INFO] [stdout] | [INFO] [stdout] 4 | 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] 2 + 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] 5 | 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] 2 + 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] 6 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:447:10 [INFO] [stdout] | [INFO] [stdout] 7 | 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] 2 + 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] 8 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:443:10 [INFO] [stdout] | [INFO] [stdout] 3 | 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]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:443:28 [INFO] [stdout] | [INFO] [stdout] 3 | 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]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:446:10 [INFO] [stdout] | [INFO] [stdout] 6 | 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]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:446:28 [INFO] [stdout] | [INFO] [stdout] 6 | 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: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/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] 6 | 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] 2 + 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] 7 | 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] 2 + 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_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] 3 | 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] 2 + 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] 5 | 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] 2 + 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] 8 | 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] 2 + 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::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] 3 | 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] 2 + 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::as_ref (line 652) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:653:11 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 3 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:656:18 [INFO] [stdout] | [INFO] [stdout] 6 | 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] 2 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - 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] 3 | 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] 2 + 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] 4 | 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] 2 + 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] 6 | 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] 2 + 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] 7 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:1501:24 [INFO] [stdout] | [INFO] [stdout] 6 | 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]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:1502:24 [INFO] [stdout] | [INFO] [stdout] 7 | 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::as_deref_mut (line 1098) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1099:12 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 3 | 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] 2 + 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] 7 | }), 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] 2 + 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: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps>::flatten (line 1777) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1778:8 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1778:16 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1778:24 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 3 | 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] 2 + 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] 4 | 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] 2 + 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] 5 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:1778:41 [INFO] [stdout] | [INFO] [stdout] 3 | 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]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:1778:55 [INFO] [stdout] | [INFO] [stdout] 3 | 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]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:1779:12 [INFO] [stdout] | [INFO] [stdout] 4 | 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: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/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] 3 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1136:8 [INFO] [stdout] | [INFO] [stdout] 4 | 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] 2 + 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] 4 | 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] 2 + 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] 5 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1139:8 [INFO] [stdout] | [INFO] [stdout] 7 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + 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] 7 | 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] 2 + 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] 8 | 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] 2 + 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] 9 | 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] 2 + 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] 11 | 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] 2 + 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] 12 | 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] 2 + 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] 13 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1147:8 [INFO] [stdout] | [INFO] [stdout] 15 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + 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] 15 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1148:8 [INFO] [stdout] | [INFO] [stdout] 16 | 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] 2 + 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] 16 | 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] 2 + 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] 17 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::and_then (line 1166) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1167:33 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 7 | 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] 2 + 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] 8 | 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] 2 + 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] 8 | 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] 2 + 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] 9 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:1171:12 [INFO] [stdout] | [INFO] [stdout] 7 | 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]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:1173:12 [INFO] [stdout] | [INFO] [stdout] 9 | 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: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps>::transpose (line 1620) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1624:15 [INFO] [stdout] | [INFO] [stdout] 6 | 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] 2 + 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] 6 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1625:8 [INFO] [stdout] | [INFO] [stdout] 7 | 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] 2 + 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] 7 | 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] 2 + 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: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps>::flatten (line 1764) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1765:8 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1765:16 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 3 | 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] 2 + 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] 4 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1768:8 [INFO] [stdout] | [INFO] [stdout] 6 | 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] 2 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1768:16 [INFO] [stdout] | [INFO] [stdout] 6 | 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] 2 + 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] 6 | 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] 2 + 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] 6 | 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] 2 + 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] 7 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1771:8 [INFO] [stdout] | [INFO] [stdout] 9 | let x: Perhaps> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1771:16 [INFO] [stdout] | [INFO] [stdout] 9 | let x: Perhaps> = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + 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] 9 | 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] 2 + 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] 10 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:1765:32 [INFO] [stdout] | [INFO] [stdout] 3 | 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: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::as_deref (line 1073) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1074:8 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 3 | 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] 2 + 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] 4 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1077:8 [INFO] [stdout] | [INFO] [stdout] 6 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + 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] 6 | 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] 2 + 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] 7 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::default (line 1685) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1686:10 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Perhaps` [INFO] [stdout] --> src/lib.rs:1686:25 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::is_certain_and (line 598) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:599:8 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] [stdout] 3 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:602:8 [INFO] [stdout] | [INFO] [stdout] 6 | 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] 2 + 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] 6 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:605:8 [INFO] [stdout] | [INFO] [stdout] 9 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + 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] 9 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - 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] 3 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:950:8 [INFO] [stdout] | [INFO] [stdout] 6 | 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] 2 + 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] 6 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - 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] 3 | 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] 2 + 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] 12 | 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] 2 + 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::from (line 1700) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1701:8 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + use perhaps::Perhaps; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Perhaps` [INFO] [stdout] --> src/lib.rs:1701:22 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 5 | 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] 2 + 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: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/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] 5 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:976:8 [INFO] [stdout] | [INFO] [stdout] 8 | 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] 2 + 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] 8 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - 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] 3 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1028:8 [INFO] [stdout] | [INFO] [stdout] 6 | 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] 2 + 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] 6 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::or_else (line 1276) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1277:16 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 3 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1278:17 [INFO] [stdout] | [INFO] [stdout] 4 | 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] 2 + 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] 4 | 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] 2 + 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] 6 | 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] 2 + 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] 7 | 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] 2 + 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] 7 | 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] 2 + 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] 8 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:1280:12 [INFO] [stdout] | [INFO] [stdout] 6 | 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]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:1282:12 [INFO] [stdout] | [INFO] [stdout] 8 | 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: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::is_dubious (line 621) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:622:8 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 3 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:625:8 [INFO] [stdout] | [INFO] [stdout] 6 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + 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] 6 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - 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] 3 | 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] 2 + 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::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] 3 | 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] 2 + 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::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] 3 | 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] 2 + 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] 5 | 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] 2 + 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] 6 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1433:12 [INFO] [stdout] | [INFO] [stdout] 8 | 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] 2 + 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] 8 | 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] 2 + 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] 10 | 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] 2 + 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] 11 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - 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] 3 | 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] 2 + 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] 4 | let y = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 2 + 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] 5 | assert_eq!(x.or(y), Certain(2)); [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 2 + 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] 7 | let x = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 2 + 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] 8 | 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] 2 + 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] 9 | 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] 2 + 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] 11 | 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] 2 + 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] 12 | 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] 2 + 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] 13 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1259:8 [INFO] [stdout] | [INFO] [stdout] 15 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + 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] 15 | 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] 2 + 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] 16 | let y = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 2 + 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] 17 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::unwrap (line 760) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:761:8 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 3 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - 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] 3 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1052:8 [INFO] [stdout] | [INFO] [stdout] 6 | 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] 2 + 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] 6 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - 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] 7 | 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] 2 + 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] 8 | 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] 2 + 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] 8 | 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] 2 + 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] 9 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:1217:12 [INFO] [stdout] | [INFO] [stdout] 7 | 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]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/lib.rs:1219:12 [INFO] [stdout] | [INFO] [stdout] 9 | 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::expect (line 705) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:706:8 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 3 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - 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] 4 | 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] 2 + 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] 5 | 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] 2 + 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_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] 3 | 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] 2 + 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] 4 | 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] 2 + 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] 3 | 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] 2 + 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] 12 | 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] 2 + 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::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] 3 | 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] 2 + 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] 4 | 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] 2 + 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] 5 | let z = Dubious::; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 2 + 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] 7 | 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] 2 + 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] 8 | 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] 2 + 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::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] 3 | 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] 2 + 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] 6 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:894:8 [INFO] [stdout] | [INFO] [stdout] 8 | 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] 2 + 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] 8 | 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] 2 + 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] 9 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - 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] 3 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1301:8 [INFO] [stdout] | [INFO] [stdout] 4 | let y: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + 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] 4 | 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] 2 + 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] 5 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1304:8 [INFO] [stdout] | [INFO] [stdout] 7 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + 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] 7 | 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] 2 + 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] 8 | 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] 2 + 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] 9 | 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] 2 + 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] 11 | 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] 2 + 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] 12 | 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] 2 + 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] 13 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1312:8 [INFO] [stdout] | [INFO] [stdout] 15 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + 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] 15 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:1313:8 [INFO] [stdout] | [INFO] [stdout] 16 | let y: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + 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] 16 | 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] 2 + 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] 17 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - 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] 3 | 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] 2 + 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_unchecked (line 862) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:863:8 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 3 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::unwrap_or_default (line 824) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:825:8 [INFO] [stdout] | [INFO] [stdout] 3 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + 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] 3 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:826:8 [INFO] [stdout] | [INFO] [stdout] 4 | 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] 2 + 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] 4 | 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] 2 + 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: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Perhaps::is_certain (line 581) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:582:8 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 3 | 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] 2 + use perhaps::Perhaps::Certain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Perhaps` in this scope [INFO] [stdout] --> src/lib.rs:585:8 [INFO] [stdout] | [INFO] [stdout] 6 | let x: Perhaps = Dubious; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + 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] 6 | 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] 2 + use perhaps::Perhaps::Dubious; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - 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] 3 | 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] 2 + 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] 5 | 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] 2 + 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] 6 | 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] 2 + 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] 8 | 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] 2 + 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] 10 | 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] 2 + 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] 11 | 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] 2 + 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] [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 1.36s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "cc53d55006ba6cde9689e87664f830552edfcc763ed53e6081012bd5b32f04a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc53d55006ba6cde9689e87664f830552edfcc763ed53e6081012bd5b32f04a5", kill_on_drop: false }` [INFO] [stdout] cc53d55006ba6cde9689e87664f830552edfcc763ed53e6081012bd5b32f04a5