[INFO] cloning repository https://github.com/markulox/rust-for-odders [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/markulox/rust-for-odders" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarkulox%2Frust-for-odders", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarkulox%2Frust-for-odders'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ce5c688f9586f4b1ef70ffd452d9b5886557bfd2 [INFO] checking markulox/rust-for-odders against try#26ad8a85dc4eed299af809e52f278da81e284602 for pr-138458 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarkulox%2Frust-for-odders" "/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/markulox/rust-for-odders on toolchain 26ad8a85dc4eed299af809e52f278da81e284602 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+26ad8a85dc4eed299af809e52f278da81e284602" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/markulox/rust-for-odders [INFO] finished tweaking git repo https://github.com/markulox/rust-for-odders [INFO] tweaked toml for git repo https://github.com/markulox/rust-for-odders written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/markulox/rust-for-odders 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" "+26ad8a85dc4eed299af809e52f278da81e284602" "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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+26ad8a85dc4eed299af809e52f278da81e284602" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a70900f92766576c65f02e3c3792f6e16bbeb20af984267e8f561a84a9e474e5 [INFO] running `Command { std: "docker" "start" "-a" "a70900f92766576c65f02e3c3792f6e16bbeb20af984267e8f561a84a9e474e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a70900f92766576c65f02e3c3792f6e16bbeb20af984267e8f561a84a9e474e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a70900f92766576c65f02e3c3792f6e16bbeb20af984267e8f561a84a9e474e5", kill_on_drop: false }` [INFO] [stdout] a70900f92766576c65f02e3c3792f6e16bbeb20af984267e8f561a84a9e474e5 [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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+26ad8a85dc4eed299af809e52f278da81e284602" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0e68dbdcbc3816526a2348d09fecd2a85096a91b22fd4681f7c3ee78e4586bbe [INFO] running `Command { std: "docker" "start" "-a" "0e68dbdcbc3816526a2348d09fecd2a85096a91b22fd4681f7c3ee78e4586bbe", kill_on_drop: false }` [INFO] [stderr] Checking rust-for-odders v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `num1` [INFO] [stdout] --> exercises/ex01a/main.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | fn adder(num1: i8, num2: i16) -> i16 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_num1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num2` [INFO] [stdout] --> exercises/ex01a/main.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | fn adder(num1: i8, num2: i16) -> i16 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_num2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `adder_result` [INFO] [stdout] --> exercises/ex01a/main.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let adder_result = adder(3,6); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_adder_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `taco_box` [INFO] [stdout] --> exercises/ex05a/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let taco_box: Vec> = vec![ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_taco_box` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `another_number` [INFO] [stdout] --> exercises/ex01a/main.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | fn adder2(another_number: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_another_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `adder` is never used [INFO] [stdout] --> exercises/ex01a/main.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn adder(num1: i8, num2: i16) -> i16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `adder2` is never used [INFO] [stdout] --> exercises/ex01a/main.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn adder2(another_number: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Success` is never constructed [INFO] [stdout] --> exercises/ex06a/main.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Success(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NothingLeft` is never constructed [INFO] [stdout] --> exercises/ex06a/main.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct NothingLeft(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ContainEadible` is never used [INFO] [stdout] --> exercises/ex06a/main.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait ContainEadible { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FoodBag` is never constructed [INFO] [stdout] --> exercises/ex06a/main.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct FoodBag { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `=` [INFO] [stdout] --> exercises/ex01ea/main.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | /*REPLACE ME*/ = len_is_odd(/*REPLACE ME*/); [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `execute_me1` is never used [INFO] [stdout] --> exercises/ex05a/main.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn execute_me1() -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `equipment_bag` [INFO] [stdout] --> exercises/ex03a/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let equipment_bag: [Equipment; 7] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_equipment_bag` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total_damage` [INFO] [stdout] --> exercises/ex03a/main.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut total_damage:i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_total_damage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total_crit_rate` [INFO] [stdout] --> exercises/ex03a/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut total_crit_rate:f32 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_total_crit_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total_crit_damage` [INFO] [stdout] --> exercises/ex03a/main.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut total_crit_damage:f32 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_total_crit_damage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total_stamina` [INFO] [stdout] --> exercises/ex03a/main.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut total_stamina:i16 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_total_stamina` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: macros that expand to items must be delimited with braces or followed by a semicolon [INFO] [stdout] --> exercises/ex04a/main.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | todo!() [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: change the delimiters to curly braces [INFO] [stdout] | [INFO] [stdout] 19 - todo!() [INFO] [stdout] 19 + todo!{} [INFO] [stdout] | [INFO] [stdout] help: add a semicolon [INFO] [stdout] | [INFO] [stdout] 19 | todo!(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> exercises/ex03a/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut total_damage:i32 = 0; [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: variable does not need to be mutable [INFO] [stdout] --> exercises/ex03a/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut total_crit_rate:f32 = 0.0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> exercises/ex03a/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut total_crit_damage:f32 = 0.0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> exercises/ex03a/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut total_stamina:i16 = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!` or `::`, found `(` [INFO] [stdout] --> exercises/ex04a/main.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | todo!() [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `!` or `::` [INFO] [stdout] | in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> exercises/ex03a/main.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | Weapon(Dmg), [INFO] [stdout] | ------ ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 7 - Weapon(Dmg), [INFO] [stdout] 7 + Weapon(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> exercises/ex03a/main.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | Locket(CritRate, Stamina), [INFO] [stdout] | ------ ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 8 - Locket(CritRate, Stamina), [INFO] [stdout] 8 + Locket((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> exercises/ex03a/main.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | Braclet(CritDmg, Dmg), [INFO] [stdout] | ------- ^^^^^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 9 - Braclet(CritDmg, Dmg), [INFO] [stdout] 9 + Braclet((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> exercises/ex03a/main.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | Boots(Stamina) [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] 10 - Boots(Stamina) [INFO] [stdout] 10 + Boots(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-for-odders` (bin "ex01ea" test) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0425]: cannot find function `keep_pushing` in this scope [INFO] [stdout] --> exercises/ex01eb/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | keep_pushing(/*REPLACE ME*/); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::filter_out` [INFO] [stdout] --> exercises/ex01d/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::filter_out; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `filter_out` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::Agent` [INFO] [stdout] --> exercises/ex02c/test.rs:6:36 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{dont_mess_my_work, Agent}; [INFO] [stdout] | ^^^^^ no `Agent` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keep_pushing` in this scope [INFO] [stdout] --> exercises/ex01eb/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | keep_pushing(/*REPLACE ME*/); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keep_pushing` in this scope [INFO] [stdout] --> exercises/ex01eb/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | keep_pushing(/*REPLACE ME*/); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::Agent` [INFO] [stdout] --> exercises/ex02b/test.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Agent; [INFO] [stdout] | ^^^^^^^^^^^^ no `Agent` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `each_char` [INFO] [stdout] --> exercises/ex01aa/main.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | for each_char in sentence.chars(){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_each_char` [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] --> exercises/ex01aa/main.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let mut vowel_count = 0; [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: function `count_vowel` is never used [INFO] [stdout] --> exercises/ex01aa/main.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn count_vowel(sentence: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-for-odders` (bin "ex01eb") due to 3 previous errors [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keep_pushing` in this scope [INFO] [stdout] --> exercises/ex01eb/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | keep_pushing(/*REPLACE ME*/); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keep_pushing` in this scope [INFO] [stdout] --> exercises/ex01eb/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | keep_pushing(/*REPLACE ME*/); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `keep_pushing` in this scope [INFO] [stdout] --> exercises/ex01eb/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | keep_pushing(/*REPLACE ME*/); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `=` [INFO] [stdout] --> exercises/ex01e/main.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | /* REPLACE ME */ = take_and_give(s1); [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `=` [INFO] [stdout] --> exercises/ex01e/main.rs:33:22 [INFO] [stdout] | [INFO] [stdout] 33 | /* REPLACE ME */ = give(); [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Agent` [INFO] [stdout] --> exercises/ex02c/main.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | let noob = Agent::new("Noob".into(), 12, 3, 25, 1.1, 4000.23, false); [INFO] [stdout] | ^^^^^ use of undeclared type `Agent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Agent` [INFO] [stdout] --> exercises/ex02c/main.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | let anby = Agent::new("Anby".into(), 89, 2400, 1200, 92.45, 50.25, false); [INFO] [stdout] | ^^^^^ use of undeclared type `Agent` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-for-odders` (bin "ex01d" test) due to 1 previous error [INFO] [stderr] error: could not compile `rust-for-odders` (bin "ex04a") due to 2 previous errors [INFO] [stderr] error: could not compile `rust-for-odders` (bin "ex01eb" test) due to 3 previous errors [INFO] [stdout] warning: unused import: `std::num::ParseFloatError` [INFO] [stdout] --> exercises/ex05b/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::num::ParseFloatError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-for-odders` (bin "ex02b" test) due to 1 previous error [INFO] [stderr] error: could not compile `rust-for-odders` (bin "ex02c" test) due to 3 previous errors [INFO] [stdout] error[E0432]: unresolved import `crate::NumberCollection` [INFO] [stdout] --> exercises/ex06a/test.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::NumberCollection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `NumberCollection` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Student` in this scope [INFO] [stdout] --> exercises/exE03/main.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | let s = Student{ grades: vec![] }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Student` in this scope [INFO] [stdout] --> exercises/exE03/main.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let s = Student{ grades: vec![0] }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Student` in this scope [INFO] [stdout] --> exercises/exE03/main.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let s = Student{ grades: vec![1,2,9] }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Student` in this scope [INFO] [stdout] --> exercises/exE03/main.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | let s = Student{ grades: vec![12,10,11,9] }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Classroom` in this scope [INFO] [stdout] --> exercises/exE03/main.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let c = Classroom { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Student` in this scope [INFO] [stdout] --> exercises/exE03/main.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | Student{ grades : vec![1,2,9]}, // 4 [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Student` in this scope [INFO] [stdout] --> exercises/exE03/main.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | Student{ grades : vec![12,11,10,9]}, // 10.5 [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Student` in this scope [INFO] [stdout] --> exercises/exE03/main.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | Student{ grades : vec![15,11,9]} // 11.66666666667 [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Classroom` in this scope [INFO] [stdout] --> exercises/exE03/main.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let c = Classroom { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Student` in this scope [INFO] [stdout] --> exercises/exE03/main.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | Student{ grades : vec![1,2,9]}, // 4 [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Student` in this scope [INFO] [stdout] --> exercises/exE03/main.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | Student{ grades : vec![12,11,10,9]}, // 10.5 [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Student` in this scope [INFO] [stdout] --> exercises/exE03/main.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | Student{ grades : vec![]} // 11.66666666667 [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Classroom` in this scope [INFO] [stdout] --> exercises/exE03/main.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | let c = Classroom { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Student` in this scope [INFO] [stdout] --> exercises/exE03/main.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | Student{ grades: vec![] }, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Classroom` in this scope [INFO] [stdout] --> exercises/exE03/main.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | let c = Classroom { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> exercises/exE03/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `s1` [INFO] [stdout] --> exercises/ex01e/main.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 15 | let s1 = String::from("Ai Yaahh!!"); [INFO] [stdout] | -- move occurs because `s1` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] 16 | // Please fix the error in the code below [INFO] [stdout] 17 | taker(s1); [INFO] [stdout] | -- value moved here [INFO] [stdout] 18 | let s2 = s1.clone(); [INFO] [stdout] | ^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `taker` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> exercises/ex01e/main.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | fn taker(sentence: String) { [INFO] [stdout] | ----- ^^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 17 | taker(s1.clone()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-for-odders` (bin "ex06a" test) due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-for-odders` (bin "exE03" test) due to 15 previous errors; 1 warning emitted [INFO] [stderr] error: could not compile `rust-for-odders` (bin "ex01e" test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "0e68dbdcbc3816526a2348d09fecd2a85096a91b22fd4681f7c3ee78e4586bbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e68dbdcbc3816526a2348d09fecd2a85096a91b22fd4681f7c3ee78e4586bbe", kill_on_drop: false }` [INFO] [stdout] 0e68dbdcbc3816526a2348d09fecd2a85096a91b22fd4681f7c3ee78e4586bbe