[INFO] cloning repository https://github.com/eda3/rust_by_example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eda3/rust_by_example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feda3%2Frust_by_example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feda3%2Frust_by_example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6a6ce944bf302d0525297dbb34073341a008778a [INFO] checking eda3/rust_by_example against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feda3%2Frust_by_example" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eda3/rust_by_example on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/eda3/rust_by_example [INFO] finished tweaking git repo https://github.com/eda3/rust_by_example [INFO] tweaked toml for git repo https://github.com/eda3/rust_by_example written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/eda3/rust_by_example 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6e2ac4294ab46b42458e1b14d12136d171bc9cb019ef2e0563a82d0951db00e2 [INFO] running `Command { std: "docker" "start" "-a" "6e2ac4294ab46b42458e1b14d12136d171bc9cb019ef2e0563a82d0951db00e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6e2ac4294ab46b42458e1b14d12136d171bc9cb019ef2e0563a82d0951db00e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e2ac4294ab46b42458e1b14d12136d171bc9cb019ef2e0563a82d0951db00e2", kill_on_drop: false }` [INFO] [stdout] 6e2ac4294ab46b42458e1b14d12136d171bc9cb019ef2e0563a82d0951db00e2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9c737da4a9fdbb83d4705bca97e2d9fc5571d0bc471b82e79852ceb81c20d27 [INFO] running `Command { std: "docker" "start" "-a" "e9c737da4a9fdbb83d4705bca97e2d9fc5571d0bc471b82e79852ceb81c20d27", kill_on_drop: false }` [INFO] [stderr] Checking rust_by_example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: path statement with no effect [INFO] [stdout] --> src/bin/07-0_expression.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | x; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(path_statements)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> src/bin/07-0_expression.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | x + 1; [INFO] [stdout] | ^^^^^ the arithmetic operation produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 7 | let _ = x + 1; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> src/bin/07-0_expression.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | 2 * x; [INFO] [stdout] | ^^^^^ the arithmetic operation produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 22 | let _ = 2 * x; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `age` are never read [INFO] [stdout] --> src/bin/03-1-0_structs.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 2 | struct Person<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 3 | // 'a はライフタイムの設定 [INFO] [stdout] 4 | name: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` 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] warning: function `printer` is never used [INFO] [stdout] --> src/bin/14-4-0_bounds.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn printer(t: T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `length` and `height` are never read [INFO] [stdout] --> src/bin/14-4-0_bounds.rs:30:3 [INFO] [stdout] | [INFO] [stdout] 29 | struct Triangle { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 30 | length: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 31 | height: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Triangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/15-4-4_struct.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | struct Borrowed<'a>(&'a i32); [INFO] [stdout] | -------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = note: `Borrowed` 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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 | struct Borrowed<'a>(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/bin/15-4-4_struct.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 9 | struct NamedBorrowed<'a> { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 10 | x: &'a i32, [INFO] [stdout] | ^ [INFO] [stdout] 11 | y: &'a i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `NamedBorrowed` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/15-4-4_struct.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | Num(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 | Num(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/15-4-4_struct.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | Ref(&'a i32), [INFO] [stdout] | --- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 | Ref(()), [INFO] [stdout] | ~~ [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] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `From` is imported redundantly [INFO] [stdout] --> src/bin/06-1-0_from_into.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::convert::From; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `From` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/03-2-0_enum.rs:64:7 [INFO] [stdout] | [INFO] [stdout] 64 | let x = Operations::Add; [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] warning: variant `Subtract` is never constructed [INFO] [stdout] --> src/bin/03-2-0_enum.rs:29:3 [INFO] [stdout] | [INFO] [stdout] 27 | enum VeriVerboseEnumOfThingsToDoWithNumbers { [INFO] [stdout] | -------------------------------------- variant in this enum [INFO] [stdout] 28 | Add, [INFO] [stdout] 29 | Subtract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `run` is never used [INFO] [stdout] --> src/bin/03-2-0_enum.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 35 | impl Operations { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 36 | fn run(&self, x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/15-4-4_struct.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | struct Borrowed<'a>(&'a i32); [INFO] [stdout] | -------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = note: `Borrowed` 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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 | struct Borrowed<'a>(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/bin/15-4-4_struct.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 9 | struct NamedBorrowed<'a> { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 10 | x: &'a i32, [INFO] [stdout] | ^ [INFO] [stdout] 11 | y: &'a i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `NamedBorrowed` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/15-4-4_struct.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | Num(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 | Num(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/15-4-4_struct.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | Ref(&'a i32), [INFO] [stdout] | --- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 | Ref(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/bin/06-1-0_from_into.rs:24:3 [INFO] [stdout] | [INFO] [stdout] 23 | struct Number { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 24 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Number` 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] warning: function `printer` is never used [INFO] [stdout] --> src/bin/14-4-0_bounds.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn printer(t: T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `length` and `height` are never read [INFO] [stdout] --> src/bin/14-4-0_bounds.rs:30:3 [INFO] [stdout] | [INFO] [stdout] 29 | struct Triangle { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 30 | length: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 31 | height: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Triangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/bin/02-2-0_tuples.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | struct Matrix(f32, f32, f32, f32); [INFO] [stdout] | ------ ^^^ ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = note: `Matrix` 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] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 10 | struct Matrix((), (), (), ()); [INFO] [stdout] | ~~ ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `contains` has an incompatible type for trait [INFO] [stdout] --> src/bin/14-8-2-types.rs:21:32 [INFO] [stdout] | [INFO] [stdout] 21 | fn contains(&self, number_1: &i32, number_2: &i32) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `i32`, found `&i32` [INFO] [stdout] | help: change the parameter type to match the trait: `i32` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> src/bin/14-8-2-types.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | fn contains(&self, _: Self::A, _: &Self::B) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: expected signature `fn(&Container, _, &_) -> _` [INFO] [stdout] found signature `fn(&Container, &_, &_) -> _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `integer` in this scope [INFO] [stdout] --> src/bin/02-0_primitives.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | let default = integer = 7; // i32 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 13 | let default = let integer = 7; // i32 [INFO] [stdout] | +++ [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] [stdout] warning: path statement with no effect [INFO] [stdout] --> src/bin/07-0_expression.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | x; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(path_statements)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> src/bin/07-0_expression.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | x + 1; [INFO] [stdout] | ^^^^^ the arithmetic operation produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 7 | let _ = x + 1; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> src/bin/07-0_expression.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | 2 * x; [INFO] [stdout] | ^^^^^ the arithmetic operation produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 22 | let _ = 2 * x; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/14-8-2-types.rs:50:24 [INFO] [stdout] | [INFO] [stdout] 50 | container.contains(&number_1, &number_2) [INFO] [stdout] | -------- ^^^^^^^^^ expected `i32`, found `&i32` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/bin/14-8-2-types.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | fn contains(&self, _: Self::A, _: &Self::B) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 50 - container.contains(&number_1, &number_2) [INFO] [stdout] 50 + container.contains(number_1, &number_2) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_by_example` (bin "02-0_primitives") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: fields `red`, `green`, and `blue` are never read [INFO] [stdout] --> src/bin/01-2-3-0_fmt.rs:30:3 [INFO] [stdout] | [INFO] [stdout] 29 | struct Color { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 30 | red: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 31 | green: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | blue: u8, [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: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_by_example` (bin "14-8-2-types") due to 3 previous errors [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/03-2-0_enum.rs:64:7 [INFO] [stdout] | [INFO] [stdout] 64 | let x = Operations::Add; [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] warning: variant `Subtract` is never constructed [INFO] [stdout] --> src/bin/03-2-0_enum.rs:29:3 [INFO] [stdout] | [INFO] [stdout] 27 | enum VeriVerboseEnumOfThingsToDoWithNumbers { [INFO] [stdout] | -------------------------------------- variant in this enum [INFO] [stdout] 28 | Add, [INFO] [stdout] 29 | Subtract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `run` is never used [INFO] [stdout] --> src/bin/03-2-0_enum.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 35 | impl Operations { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 36 | fn run(&self, x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e9c737da4a9fdbb83d4705bca97e2d9fc5571d0bc471b82e79852ceb81c20d27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9c737da4a9fdbb83d4705bca97e2d9fc5571d0bc471b82e79852ceb81c20d27", kill_on_drop: false }` [INFO] [stdout] e9c737da4a9fdbb83d4705bca97e2d9fc5571d0bc471b82e79852ceb81c20d27