[INFO] cloning repository https://github.com/esau1116/rust_new [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/esau1116/rust_new" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fesau1116%2Frust_new", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fesau1116%2Frust_new'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f5e94017ce163f2dcef31f3f39384847697ebd43 [INFO] testing esau1116/rust_new against 1.59.0 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fesau1116%2Frust_new" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 51% (20/39) Updating files: 53% (21/39) Updating files: 56% (22/39) Updating files: 58% (23/39) Updating files: 61% (24/39) Updating files: 64% (25/39) Updating files: 66% (26/39) Updating files: 69% (27/39) Updating files: 71% (28/39) Updating files: 74% (29/39) Updating files: 76% (30/39) Updating files: 79% (31/39) Updating files: 82% (32/39) Updating files: 84% (33/39) Updating files: 87% (34/39) Updating files: 89% (35/39) Updating files: 92% (36/39) Updating files: 94% (37/39) Updating files: 97% (38/39) Updating files: 100% (39/39) Updating files: 100% (39/39), done. [INFO] validating manifest of git repo https://github.com/esau1116/rust_new on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/esau1116/rust_new [INFO] finished tweaking git repo https://github.com/esau1116/rust_new [INFO] tweaked toml for git repo https://github.com/esau1116/rust_new written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/esau1116/rust_new already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "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-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4a9b0d340855a37d261c40ed336b6b0fc58d3d30b33519633a18309ab45be2ab [INFO] running `Command { std: "docker" "start" "-a" "4a9b0d340855a37d261c40ed336b6b0fc58d3d30b33519633a18309ab45be2ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4a9b0d340855a37d261c40ed336b6b0fc58d3d30b33519633a18309ab45be2ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a9b0d340855a37d261c40ed336b6b0fc58d3d30b33519633a18309ab45be2ab", kill_on_drop: false }` [INFO] [stdout] 4a9b0d340855a37d261c40ed336b6b0fc58d3d30b33519633a18309ab45be2ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ed06ff1daaef1bfa88fc43dfeb002f814e508fc3069434197870b07dbafc2ae7 [INFO] running `Command { std: "docker" "start" "-a" "ed06ff1daaef1bfa88fc43dfeb002f814e508fc3069434197870b07dbafc2ae7", kill_on_drop: false }` [INFO] [stderr] Compiling activities v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `orange` should have an upper camel case name [INFO] [stdout] --> src/bin/a8.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | orange, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Orange` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `lemon` should have an upper camel case name [INFO] [stdout] --> src/bin/a8.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | lemon, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Lemon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `banana` should have an upper camel case name [INFO] [stdout] --> src/bin/a8.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | banana [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Banana` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `:`, found `,` [INFO] [stdout] --> src/bin/a11.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | apple, [INFO] [stdout] | ^ expected `:` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `banana` [INFO] [stdout] --> src/bin/a8.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | banana [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this file contains an unclosed delimiter [INFO] [stdout] --> src/bin/p1.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 24 | impl Bill_text{ [INFO] [stdout] | - unclosed delimiter [INFO] [stdout] 25 | fn Bills(bills:) -> u32{ [INFO] [stdout] | - this delimiter might not be properly closed... [INFO] [stdout] ... [INFO] [stdout] 28 | } [INFO] [stdout] | - ...as it matches this but it has different indentation [INFO] [stdout] 29 | fn main() {} [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [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] error: cannot determine resolution for the derive macro `Error` [INFO] [stdout] --> src/bin/a27.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Debug, Error)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected type, found `)` [INFO] [stdout] --> src/bin/p1.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | fn Bills(bills:) -> u32{ [INFO] [stdout] | ^ expected type [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 determine resolution for the derive macro `Error` [INFO] [stdout] --> src/bin/a27.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Debug, Error)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [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` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required because of the requirements on the impl of `FromResidual>` for `Result<(), ProgramError>` [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` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required because of the requirements on the impl of `FromResidual>` for `Result<(), ProgramError>` [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` [INFO] [stdout] = note: add `#[derive(Debug)]` to `ProgramError` or manually `impl Debug for ProgramError` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [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` [INFO] [stdout] = note: add `#[derive(Debug)]` to `ProgramError` or manually `impl Debug for ProgramError` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `:`, found `;` [INFO] [stdout] --> src/bin/a12.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | color; Color, [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected `:` [INFO] [stdout] | help: field names and their types are separated with `:` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected type, found `{` [INFO] [stdout] --> src/bin/a12.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | impl{ [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `activities` due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field is never read: `user_id` [INFO] [stdout] --> src/bin/a21.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | user_id: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/bin/a21.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_user` [INFO] [stdout] --> src/bin/a21.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn find_user(name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bill_text` should have an upper camel case name [INFO] [stdout] --> src/bin/p1.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct Bill_text{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `BillText` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/p1.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | fn Bills(bills:) -> u32{ [INFO] [stdout] | ----- ^^^ expected `u32`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `structopt` [INFO] [stdout] --> src/bin/p2-example.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use structopt::StructOpt; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `structopt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `thiserror` [INFO] [stdout] --> src/bin/p2-example.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use thiserror::Error; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `thiserror` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Error` [INFO] [stdout] --> src/bin/p2-example.rs:123:10 [INFO] [stdout] | [INFO] [stdout] 123 | #[derive(Error, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/bin/p2-example.rs:125:7 [INFO] [stdout] | [INFO] [stdout] 125 | #[error("id must be a number: {0}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `from` in this scope [INFO] [stdout] --> src/bin/p2-example.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | InvalidId(#[from] std::num::ParseIntError), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/bin/p2-example.rs:127:7 [INFO] [stdout] | [INFO] [stdout] 127 | #[error("empty record")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/bin/p2-example.rs:129:7 [INFO] [stdout] | [INFO] [stdout] 129 | #[error("missing field: {0}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `StructOpt` [INFO] [stdout] --> src/bin/p2-example.rs:258:10 [INFO] [stdout] | [INFO] [stdout] 258 | #[derive(StructOpt, Debug)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> src/bin/p2-example.rs:259:3 [INFO] [stdout] | [INFO] [stdout] 259 | #[structopt(about = "project 2: contact manager")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> src/bin/p2-example.rs:261:7 [INFO] [stdout] | [INFO] [stdout] 261 | #[structopt(short, parse(from_os_str), default_value = "p2_data.csv")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> src/bin/p2-example.rs:263:7 [INFO] [stdout] | [INFO] [stdout] 263 | #[structopt(subcommand)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> src/bin/p2-example.rs:265:7 [INFO] [stdout] | [INFO] [stdout] 265 | #[structopt(short, help = "verbose")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `StructOpt` [INFO] [stdout] --> src/bin/p2-example.rs:269:10 [INFO] [stdout] | [INFO] [stdout] 269 | #[derive(StructOpt, Debug)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> src/bin/p2-example.rs:273:11 [INFO] [stdout] | [INFO] [stdout] 273 | #[structopt(short)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> src/bin/p2-example.rs:279:11 [INFO] [stdout] | [INFO] [stdout] 279 | #[structopt(short)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `:`, found `,` [INFO] [stdout] --> src/bin/a18b.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | Acitive, [INFO] [stdout] | ^ expected `:` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `err` in this scope [INFO] [stdout] --> src/bin/a18b.rs:41:38 [INFO] [stdout] | [INFO] [stdout] 41 | Status::Terminated => return err("cant access".to_owned()) [INFO] [stdout] | ^^^ help: a tuple variant with a similar name exists: `Err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `ParseError` [INFO] [stdout] --> src/bin/p2-example.rs:149:48 [INFO] [stdout] | [INFO] [stdout] 134 | fn parse_record(record: &str) -> Result { [INFO] [stdout] | -------------------------- expected `ParseError` because of this [INFO] [stdout] ... [INFO] [stdout] 149 | Some(id) => i64::from_str_radix(id, 10)?, [INFO] [stdout] | ^ the trait `From` is not implemented for `ParseError` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required because of the requirements on the impl of `FromResidual>` for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Terminated` found for struct `Status` in the current scope [INFO] [stdout] --> src/bin/a18b.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 28 | struct Status{ [INFO] [stdout] | ------------- associated item `Terminated` not found for this [INFO] [stdout] ... [INFO] [stdout] 41 | Status::Terminated => return err("cant access".to_owned()) [INFO] [stdout] | ^^^^^^^^^^ associated item not found in `Status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0277]: `ParseError` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/bin/p2-example.rs:196:29 [INFO] [stdout] | [INFO] [stdout] 196 | ... e, [INFO] [stdout] | ^ `ParseError` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `ParseError` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_args` found for struct `Opt` in the current scope [INFO] [stdout] --> src/bin/p2-example.rs:340:20 [INFO] [stdout] | [INFO] [stdout] 260 | struct Opt { [INFO] [stdout] | ---------- function or associated item `from_args` not found for this [INFO] [stdout] ... [INFO] [stdout] 340 | let opt = Opt::from_args(); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `Opt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Black` [INFO] [stdout] --> src/bin/a7.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Black, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Blue` [INFO] [stdout] --> src/bin/a7.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | Blue, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Yellow` [INFO] [stdout] --> src/bin/a7.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Yellow, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `a4b` [INFO] [stdout] --> src/bin/a4b.rs:29:31 [INFO] [stdout] | [INFO] [stdout] 29 | // println!("{:?}", nick); [INFO] [stdout] | ^ consider adding a `main` function to `src/bin/a4b.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/a9.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | let (x, y) = coordinate(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/a23.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 11 | fn part_1() -> bool { [INFO] [stdout] | ---- expected `bool` because of return type [INFO] [stdout] ... [INFO] [stdout] 16 | maybe_access("admin") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected type `bool` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Color` [INFO] [stdout] --> src/bin/a28.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | enum Color { [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: function is never used: `clamp` [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 is never used: `div` [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 is never used: `concat` [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] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/a23.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 26 | fn part_3() -> Access { [INFO] [stdout] | ------ expected `Access` because of return type [INFO] [stdout] ... [INFO] [stdout] 29 | maybe_access("Alice") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected enum `Access`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Access` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "ed06ff1daaef1bfa88fc43dfeb002f814e508fc3069434197870b07dbafc2ae7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed06ff1daaef1bfa88fc43dfeb002f814e508fc3069434197870b07dbafc2ae7", kill_on_drop: false }` [INFO] [stdout] ed06ff1daaef1bfa88fc43dfeb002f814e508fc3069434197870b07dbafc2ae7