[INFO] cloning repository https://github.com/iftakharhusan/learn-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iftakharhusan/learn-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiftakharhusan%2Flearn-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiftakharhusan%2Flearn-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a63178d2c240b11fb3961bd11de088d52d58d9ff [INFO] checking iftakharhusan/learn-rust against master#249595384b4589c71a00d622c4253f62c7f5ddbd for pr-127054 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiftakharhusan%2Flearn-rust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/iftakharhusan/learn-rust on toolchain 249595384b4589c71a00d622c4253f62c7f5ddbd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+249595384b4589c71a00d622c4253f62c7f5ddbd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/iftakharhusan/learn-rust [INFO] finished tweaking git repo https://github.com/iftakharhusan/learn-rust [INFO] tweaked toml for git repo https://github.com/iftakharhusan/learn-rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/iftakharhusan/learn-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+249595384b4589c71a00d622c4253f62c7f5ddbd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking iftakharhusan/learn-rust against try#3a8bed575a08bd69d7fd880c6a28c07854726e3b for pr-127054 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiftakharhusan%2Flearn-rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/iftakharhusan/learn-rust on toolchain 3a8bed575a08bd69d7fd880c6a28c07854726e3b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3a8bed575a08bd69d7fd880c6a28c07854726e3b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/iftakharhusan/learn-rust [INFO] finished tweaking git repo https://github.com/iftakharhusan/learn-rust [INFO] tweaked toml for git repo https://github.com/iftakharhusan/learn-rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/iftakharhusan/learn-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3a8bed575a08bd69d7fd880c6a28c07854726e3b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+3a8bed575a08bd69d7fd880c6a28c07854726e3b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0ba981fd2921e41baff801732e6e3a870d8ef3610abd88f0d0066f73699470e9 [INFO] running `Command { std: "docker" "start" "-a" "0ba981fd2921e41baff801732e6e3a870d8ef3610abd88f0d0066f73699470e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0ba981fd2921e41baff801732e6e3a870d8ef3610abd88f0d0066f73699470e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ba981fd2921e41baff801732e6e3a870d8ef3610abd88f0d0066f73699470e9", kill_on_drop: false }` [INFO] [stdout] 0ba981fd2921e41baff801732e6e3a870d8ef3610abd88f0d0066f73699470e9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+3a8bed575a08bd69d7fd880c6a28c07854726e3b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef86918a0cede7f625f795fabaa3d55afbc229dfb6e35508c1b401e3a330f6f0 [INFO] running `Command { std: "docker" "start" "-a" "ef86918a0cede7f625f795fabaa3d55afbc229dfb6e35508c1b401e3a330f6f0", kill_on_drop: false }` [INFO] [stderr] Checking activities v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `thiserror` [INFO] [stdout] --> src/bin/a27.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use thiserror::Error; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `thiserror` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TreasureItem` is never used [INFO] [stdout] --> src/bin/a35.rs:25:6 [INFO] [stdout] | [INFO] [stdout] 25 | enum TreasureItem { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/bin/a24.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let data = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TreasureChest` is never constructed [INFO] [stdout] --> src/bin/a35.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct TreasureChest { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pressure` is never constructed [INFO] [stdout] --> src/bin/a35.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | struct Pressure(u16); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/bin/a24.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let data = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BrickStyle` is never used [INFO] [stdout] --> src/bin/a35.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 40 | enum BrickStyle { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Tile` is never used [INFO] [stdout] --> src/bin/a35.rs:47:6 [INFO] [stdout] | [INFO] [stdout] 47 | enum Tile { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/bin/a27.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | #[error("menu item not found")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/bin/a27.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | #[error("divide by zero error")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crossbeam_channel` [INFO] [stdout] --> src/bin/a39.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use crossbeam_channel::{unbounded, Receiver}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `crossbeam_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crossbeam_channel` [INFO] [stdout] --> src/bin/a39.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | use crossbeam_channel::unbounded; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `crossbeam_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/bin/a39.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | use std::thread::{self, JoinHandle}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clamp` is never used [INFO] [stdout] --> src/bin/a22.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn clamp(n: i32, lower: i32, upper: i32) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `div` is never used [INFO] [stdout] --> src/bin/a22.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn div(a: i32, b: i32) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `concat` is never used [INFO] [stdout] --> src/bin/a22.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn concat(first: &str, second: &str) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rgb` is never constructed [INFO] [stdout] --> src/bin/a37.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct Rgb(u8, u8, u8); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `ProgramError` [INFO] [stdout] --> src/bin/a27.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 45 | fn run(step: i32) -> Result<(), ProgramError> { [INFO] [stdout] | ------------------------ expected `ProgramError` because of this [INFO] [stdout] 46 | if step == 1 { [INFO] [stdout] 47 | pick_menu("4")?; [INFO] [stdout] | --------------^ the trait `From` is not implemented for `ProgramError`, which is required by `Result<(), ProgramError>: FromResidual>` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, MenuError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] `Result` implements `FromResidual>` [INFO] [stdout] `Result` implements `FromResidual>` [INFO] [stdout] = note: required for `Result<(), ProgramError>` to implement `FromResidual>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `ProgramError` [INFO] [stdout] --> src/bin/a27.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 45 | fn run(step: i32) -> Result<(), ProgramError> { [INFO] [stdout] | ------------------------ expected `ProgramError` because of this [INFO] [stdout] ... [INFO] [stdout] 49 | divide(1, 0)?; [INFO] [stdout] | ------------^ the trait `From` is not implemented for `ProgramError`, which is required by `Result<(), ProgramError>: FromResidual>` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, MathError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] `Result` implements `FromResidual>` [INFO] [stdout] `Result` implements `FromResidual>` [INFO] [stdout] = note: required for `Result<(), ProgramError>` to implement `FromResidual>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `ProgramError` doesn't implement `Debug` [INFO] [stdout] --> src/bin/a27.rs:55:22 [INFO] [stdout] | [INFO] [stdout] 55 | println!("{:?}", run(1)); [INFO] [stdout] | ^^^^^^ `ProgramError` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `ProgramError`, which is required by `Result<(), ProgramError>: Debug` [INFO] [stdout] = note: add `#[derive(Debug)]` to `ProgramError` or manually `impl Debug for ProgramError` [INFO] [stdout] = help: the trait `Debug` is implemented for `Result` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `ProgramError` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 14 + #[derive(Debug)] [INFO] [stdout] 15 | enum ProgramError {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `ProgramError` doesn't implement `Debug` [INFO] [stdout] --> src/bin/a27.rs:56:22 [INFO] [stdout] | [INFO] [stdout] 56 | println!("{:?}", run(2)); [INFO] [stdout] | ^^^^^^ `ProgramError` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `ProgramError`, which is required by `Result<(), ProgramError>: Debug` [INFO] [stdout] = note: add `#[derive(Debug)]` to `ProgramError` or manually `impl Debug for ProgramError` [INFO] [stdout] = help: the trait `Debug` is implemented for `Result` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `ProgramError` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 14 + #[derive(Debug)] [INFO] [stdout] 15 | enum ProgramError {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Rgb: TryFrom<&str>` is not satisfied [INFO] [stdout] --> src/bin/a37.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | let actual = Rgb::try_from("#00cc66"); [INFO] [stdout] | ^^^ the trait `From<&str>` is not implemented for `Rgb`, which is required by `Rgb: TryFrom<_>` [INFO] [stdout] | [INFO] [stdout] = note: required for `&str` to implement `Into` [INFO] [stdout] = note: required for `Rgb` to implement `TryFrom<&str>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/a39.rs:38:56 [INFO] [stdout] | [INFO] [stdout] 38 | fn spawn_light_thread(receiver: Receiver) -> JoinHandle { [INFO] [stdout] | ------------------ ^^^^^^^^^^^^^^^^^^^^^^^ expected `JoinHandle`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected struct `JoinHandle` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Rgb: From<&str>` is not satisfied [INFO] [stdout] --> src/bin/a37.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | let actual = Rgb::try_from("#00cc66"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<&str>` is not implemented for `Rgb`, which is required by `Rgb: TryFrom<&str>` [INFO] [stdout] | [INFO] [stdout] = note: required for `&str` to implement `Into` [INFO] [stdout] = note: required for `Rgb` to implement `TryFrom<&str>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Rgb: TryFrom<&str>` is not satisfied [INFO] [stdout] --> src/bin/a37.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | Rgb::try_from("#0011yy").is_err(), [INFO] [stdout] | ^^^ the trait `From<&str>` is not implemented for `Rgb`, which is required by `Rgb: TryFrom<_>` [INFO] [stdout] | [INFO] [stdout] = note: required for `&str` to implement `Into` [INFO] [stdout] = note: required for `Rgb` to implement `TryFrom<&str>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Rgb: From<&str>` is not satisfied [INFO] [stdout] --> src/bin/a37.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | Rgb::try_from("#0011yy").is_err(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<&str>` is not implemented for `Rgb`, which is required by `Rgb: TryFrom<&str>` [INFO] [stdout] | [INFO] [stdout] = note: required for `&str` to implement `Into` [INFO] [stdout] = note: required for `Rgb` to implement `TryFrom<&str>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Rgb: TryFrom<&str>` is not satisfied [INFO] [stdout] --> src/bin/a37.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | Rgb::try_from("001100").is_err(), [INFO] [stdout] | ^^^ the trait `From<&str>` is not implemented for `Rgb`, which is required by `Rgb: TryFrom<_>` [INFO] [stdout] | [INFO] [stdout] = note: required for `&str` to implement `Into` [INFO] [stdout] = note: required for `Rgb` to implement `TryFrom<&str>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Rgb: From<&str>` is not satisfied [INFO] [stdout] --> src/bin/a37.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | Rgb::try_from("001100").is_err(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<&str>` is not implemented for `Rgb`, which is required by `Rgb: TryFrom<&str>` [INFO] [stdout] | [INFO] [stdout] = note: required for `&str` to implement `Into` [INFO] [stdout] = note: required for `Rgb` to implement `TryFrom<&str>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Rgb: TryFrom<&str>` is not satisfied [INFO] [stdout] --> src/bin/a37.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | Rgb::try_from("#0011f").is_err(), [INFO] [stdout] | ^^^ the trait `From<&str>` is not implemented for `Rgb`, which is required by `Rgb: TryFrom<_>` [INFO] [stdout] | [INFO] [stdout] = note: required for `&str` to implement `Into` [INFO] [stdout] = note: required for `Rgb` to implement `TryFrom<&str>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Rgb: From<&str>` is not satisfied [INFO] [stdout] --> src/bin/a37.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | Rgb::try_from("#0011f").is_err(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<&str>` is not implemented for `Rgb`, which is required by `Rgb: TryFrom<&str>` [INFO] [stdout] | [INFO] [stdout] = note: required for `&str` to implement `Into` [INFO] [stdout] = note: required for `Rgb` to implement `TryFrom<&str>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Rgb: TryFrom<&str>` is not satisfied [INFO] [stdout] --> src/bin/a37.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | Rgb::try_from("#0011ffa").is_err(), [INFO] [stdout] | ^^^ the trait `From<&str>` is not implemented for `Rgb`, which is required by `Rgb: TryFrom<_>` [INFO] [stdout] | [INFO] [stdout] = note: required for `&str` to implement `Into` [INFO] [stdout] = note: required for `Rgb` to implement `TryFrom<&str>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Rgb: From<&str>` is not satisfied [INFO] [stdout] --> src/bin/a37.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | Rgb::try_from("#0011ffa").is_err(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<&str>` is not implemented for `Rgb`, which is required by `Rgb: TryFrom<&str>` [INFO] [stdout] | [INFO] [stdout] = note: required for `&str` to implement `Into` [INFO] [stdout] = note: required for `Rgb` to implement `TryFrom<&str>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432. [INFO] [stdout] [INFO] [stderr] error: could not compile `activities` (bin "a27" test) due to 8 previous errors [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] warning: struct `Corporate` is never constructed [INFO] [stdout] --> src/bin/a40.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct Corporate; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `activities` (bin "a39" test) due to 4 previous errors; 1 warning emitted [INFO] [stdout] warning: struct `StoreFront` is never constructed [INFO] [stdout] --> src/bin/a40.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct StoreFront; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `activities` (bin "a37" test) due to 11 previous errors [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `longest` in this scope [INFO] [stdout] --> src/bin/a33.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | println!("{}", longest(short, long)) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `activities` (bin "a33" test) due to 2 previous errors [INFO] [stdout] error[E0432]: unresolved import `thiserror` [INFO] [stdout] --> src/bin/a27.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use thiserror::Error; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `thiserror` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOCK_DATA` is never used [INFO] [stdout] --> src/bin/a32.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const MOCK_DATA: &'static str = include_str!("mock-data.csv"); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/bin/a36.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut stream = data().chunks(2); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/a36.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut stream = data().chunks(2); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Red` and `Blue` are never constructed [INFO] [stdout] --> src/bin/a12.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | enum Color{ [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 20 | Red, [INFO] [stdout] | ^^^ [INFO] [stdout] 21 | Green, [INFO] [stdout] 22 | Blue [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Color` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/bin/a27.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | #[error("menu item not found")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/bin/a27.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | #[error("divide by zero error")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `ProgramError` [INFO] [stdout] --> src/bin/a27.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 45 | fn run(step: i32) -> Result<(), ProgramError> { [INFO] [stdout] | ------------------------ expected `ProgramError` because of this [INFO] [stdout] 46 | if step == 1 { [INFO] [stdout] 47 | pick_menu("4")?; [INFO] [stdout] | --------------^ the trait `From` is not implemented for `ProgramError`, which is required by `Result<(), ProgramError>: FromResidual>` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, MenuError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] `Result` implements `FromResidual>` [INFO] [stdout] `Result` implements `FromResidual>` [INFO] [stdout] = note: required for `Result<(), ProgramError>` to implement `FromResidual>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `ProgramError` [INFO] [stdout] --> src/bin/a27.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 45 | fn run(step: i32) -> Result<(), ProgramError> { [INFO] [stdout] | ------------------------ expected `ProgramError` because of this [INFO] [stdout] ... [INFO] [stdout] 49 | divide(1, 0)?; [INFO] [stdout] | ------------^ the trait `From` is not implemented for `ProgramError`, which is required by `Result<(), ProgramError>: FromResidual>` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, MathError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `FromResidual`: [INFO] [stdout] `Result` implements `FromResidual>` [INFO] [stdout] `Result` implements `FromResidual>` [INFO] [stdout] = note: required for `Result<(), ProgramError>` to implement `FromResidual>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `ProgramError` doesn't implement `Debug` [INFO] [stdout] --> src/bin/a27.rs:55:22 [INFO] [stdout] | [INFO] [stdout] 55 | println!("{:?}", run(1)); [INFO] [stdout] | ^^^^^^ `ProgramError` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `ProgramError`, which is required by `Result<(), ProgramError>: Debug` [INFO] [stdout] = note: add `#[derive(Debug)]` to `ProgramError` or manually `impl Debug for ProgramError` [INFO] [stdout] = help: the trait `Debug` is implemented for `Result` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `ProgramError` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 14 + #[derive(Debug)] [INFO] [stdout] 15 | enum ProgramError {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `ProgramError` doesn't implement `Debug` [INFO] [stdout] --> src/bin/a27.rs:56:22 [INFO] [stdout] | [INFO] [stdout] 56 | println!("{:?}", run(2)); [INFO] [stdout] | ^^^^^^ `ProgramError` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `ProgramError`, which is required by `Result<(), ProgramError>: Debug` [INFO] [stdout] = note: add `#[derive(Debug)]` to `ProgramError` or manually `impl Debug for ProgramError` [INFO] [stdout] = help: the trait `Debug` is implemented for `Result` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `ProgramError` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 14 + #[derive(Debug)] [INFO] [stdout] 15 | enum ProgramError {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `activities` (bin "a27") due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "ef86918a0cede7f625f795fabaa3d55afbc229dfb6e35508c1b401e3a330f6f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef86918a0cede7f625f795fabaa3d55afbc229dfb6e35508c1b401e3a330f6f0", kill_on_drop: false }` [INFO] [stdout] ef86918a0cede7f625f795fabaa3d55afbc229dfb6e35508c1b401e3a330f6f0