[INFO] cloning repository https://github.com/rustvu/homework1-template [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rustvu/homework1-template" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frustvu%2Fhomework1-template", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frustvu%2Fhomework1-template'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 784feceb47445aa7916164f507da6fec998ced39 [INFO] checking rustvu/homework1-template against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frustvu%2Fhomework1-template" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rustvu/homework1-template [INFO] finished tweaking git repo https://github.com/rustvu/homework1-template [INFO] tweaked toml for git repo https://github.com/rustvu/homework1-template written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rustvu/homework1-template on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rustvu/homework1-template 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 16402bf6f4c63c02e50d1b49fa2e6d11b533ec6f11bcf767a0a6d5ddfd0adb30 [INFO] running `Command { std: "docker" "start" "-a" "16402bf6f4c63c02e50d1b49fa2e6d11b533ec6f11bcf767a0a6d5ddfd0adb30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "16402bf6f4c63c02e50d1b49fa2e6d11b533ec6f11bcf767a0a6d5ddfd0adb30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16402bf6f4c63c02e50d1b49fa2e6d11b533ec6f11bcf767a0a6d5ddfd0adb30", kill_on_drop: false }` [INFO] [stdout] 16402bf6f4c63c02e50d1b49fa2e6d11b533ec6f11bcf767a0a6d5ddfd0adb30 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d7f10a7f58657181302c1916bf9ce2612921601ca6ad39fd288bcf5c4e4ea9af [INFO] running `Command { std: "docker" "start" "-a" "d7f10a7f58657181302c1916bf9ce2612921601ca6ad39fd288bcf5c4e4ea9af", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking homework1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/euler.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | fn euler_series(n_terms: u32) -> f64 { [INFO] [stdout] | ------------ ^^^ expected `f64`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected closing delimiter: `}` [INFO] [stdout] --> src/basic_types.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 23 | fn chars() { [INFO] [stdout] | - this delimiter might not be properly closed... [INFO] [stdout] ... [INFO] [stdout] 28 | } else { [INFO] [stdout] | - ...as it matches this but it has different indentation [INFO] [stdout] ... [INFO] [stdout] 31 | } [INFO] [stdout] | ^ unexpected closing delimiter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/euler.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | fn euler_limit(n_limit: u32) -> f64 { [INFO] [stdout] | ----------- ^^^ expected `f64`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `homework1` (bin "euler") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: unexpected closing delimiter: `}` [INFO] [stdout] --> src/basic_types.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 23 | fn chars() { [INFO] [stdout] | - this delimiter might not be properly closed... [INFO] [stdout] ... [INFO] [stdout] 28 | } else { [INFO] [stdout] | - ...as it matches this but it has different indentation [INFO] [stdout] ... [INFO] [stdout] 31 | } [INFO] [stdout] | ^ unexpected closing delimiter [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `homework1` (bin "basic_types") due to 1 previous error [INFO] [stdout] error: expected one of `:`, `@`, or `|`, found `)` [INFO] [stdout] --> src/functions.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | fn is_prime(n) { [INFO] [stdout] | ^ expected one of `:`, `@`, or `|` [INFO] [stdout] | [INFO] [stdout] = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) [INFO] [stdout] help: if this is a `self` type, give it a parameter name [INFO] [stdout] | [INFO] [stdout] 4 | fn is_prime(self: n) { [INFO] [stdout] | +++++ [INFO] [stdout] help: if this is a parameter name, give it a type [INFO] [stdout] | [INFO] [stdout] 4 | fn is_prime(n: TypeName) { [INFO] [stdout] | ++++++++++ [INFO] [stdout] help: if this is a type, explicitly ignore the parameter name [INFO] [stdout] | [INFO] [stdout] 4 | fn is_prime(_: n) { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `:`, `@`, or `|`, found `)` [INFO] [stdout] --> src/functions.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | fn factorial(n) { [INFO] [stdout] | ^ expected one of `:`, `@`, or `|` [INFO] [stdout] | [INFO] [stdout] = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) [INFO] [stdout] help: if this is a `self` type, give it a parameter name [INFO] [stdout] | [INFO] [stdout] 16 | fn factorial(self: n) { [INFO] [stdout] | +++++ [INFO] [stdout] help: if this is a parameter name, give it a type [INFO] [stdout] | [INFO] [stdout] 16 | fn factorial(n: TypeName) { [INFO] [stdout] | ++++++++++ [INFO] [stdout] help: if this is a type, explicitly ignore the parameter name [INFO] [stdout] | [INFO] [stdout] 16 | fn factorial(_: n) { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `homework1` (bin "basic_types" test) due to 1 previous error [INFO] [stdout] error: expected one of `:`, `@`, or `|`, found `)` [INFO] [stdout] --> src/functions.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | fn is_prime(n) { [INFO] [stdout] | ^ expected one of `:`, `@`, or `|` [INFO] [stdout] | [INFO] [stdout] = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) [INFO] [stdout] help: if this is a `self` type, give it a parameter name [INFO] [stdout] | [INFO] [stdout] 4 | fn is_prime(self: n) { [INFO] [stdout] | +++++ [INFO] [stdout] help: if this is a parameter name, give it a type [INFO] [stdout] | [INFO] [stdout] 4 | fn is_prime(n: TypeName) { [INFO] [stdout] | ++++++++++ [INFO] [stdout] help: if this is a type, explicitly ignore the parameter name [INFO] [stdout] | [INFO] [stdout] 4 | fn is_prime(_: n) { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `:`, `@`, or `|`, found `)` [INFO] [stdout] --> src/functions.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | fn factorial(n) { [INFO] [stdout] | ^ expected one of `:`, `@`, or `|` [INFO] [stdout] | [INFO] [stdout] = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) [INFO] [stdout] help: if this is a `self` type, give it a parameter name [INFO] [stdout] | [INFO] [stdout] 16 | fn factorial(self: n) { [INFO] [stdout] | +++++ [INFO] [stdout] help: if this is a parameter name, give it a type [INFO] [stdout] | [INFO] [stdout] 16 | fn factorial(n: TypeName) { [INFO] [stdout] | ++++++++++ [INFO] [stdout] help: if this is a type, explicitly ignore the parameter name [INFO] [stdout] | [INFO] [stdout] 16 | fn factorial(_: n) { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ownership.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut values = squares(14); [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] error[E0382]: borrow of moved value: `values` [INFO] [stdout] --> src/ownership.rs:27:42 [INFO] [stdout] | [INFO] [stdout] 22 | let mut values = squares(14); [INFO] [stdout] | ---------- move occurs because `values` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] 23 | let median_value = median(values); [INFO] [stdout] | ------ value moved here [INFO] [stdout] ... [INFO] [stdout] 27 | println!("The median of {:?} is {}", values, median_value); [INFO] [stdout] | ^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `median` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/ownership.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | fn median(values: Vec) -> f64 { [INFO] [stdout] | ------ ^^^^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [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 cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 23 | let median_value = median(values.clone()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/functions.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 4 | fn is_prime(n) { [INFO] [stdout] | - help: try adding a return type: `-> bool` [INFO] [stdout] 5 | if n < 2 { [INFO] [stdout] 6 | return false; [INFO] [stdout] | ^^^^^ expected `()`, found `bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ownership.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut values = squares(14); [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] error[E0382]: borrow of moved value: `values` [INFO] [stdout] --> src/ownership.rs:27:42 [INFO] [stdout] | [INFO] [stdout] 22 | let mut values = squares(14); [INFO] [stdout] | ---------- move occurs because `values` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] 23 | let median_value = median(values); [INFO] [stdout] | ------ value moved here [INFO] [stdout] ... [INFO] [stdout] 27 | println!("The median of {:?} is {}", values, median_value); [INFO] [stdout] | ^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `median` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/ownership.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | fn median(values: Vec) -> f64 { [INFO] [stdout] | ------ ^^^^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [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 cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 23 | let median_value = median(values.clone()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/functions.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 4 | fn is_prime(n) { [INFO] [stdout] | - help: try adding a return type: `-> bool` [INFO] [stdout] 5 | if n < 2 { [INFO] [stdout] 6 | return false; [INFO] [stdout] | ^^^^^ expected `()`, found `bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot multiply-assign `{float}` by `{integer}` [INFO] [stdout] --> src/functions.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | product *= i; [INFO] [stdout] | ^^ no implementation for `{float} *= {integer}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `MulAssign<{integer}>` is not implemented for `{float}` [INFO] [stdout] = help: the following other types implement trait `MulAssign`: [INFO] [stdout] `f128` implements `MulAssign<&f128>` [INFO] [stdout] `f128` implements `MulAssign` [INFO] [stdout] `f16` implements `MulAssign<&f16>` [INFO] [stdout] `f16` implements `MulAssign` [INFO] [stdout] `f32` implements `MulAssign<&f32>` [INFO] [stdout] `f32` implements `MulAssign` [INFO] [stdout] `f64` implements `MulAssign<&f64>` [INFO] [stdout] `f64` implements `MulAssign` [INFO] [stdout] and 24 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `()` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/functions.rs:27:35 [INFO] [stdout] | [INFO] [stdout] 27 | println!("factorial(6) = {}", factorial(6)); [INFO] [stdout] | -- ^^^^^^^^^^^^ `()` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `()` [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` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `()` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/functions.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 28 | println!("is_primt(42) = {}", is_prime(42)); [INFO] [stdout] | -- ^^^^^^^^^^^^ `()` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `()` [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` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `homework1` (bin "ownership" test) due to 1 previous error; 1 warning emitted [INFO] [stdout] error[E0277]: cannot multiply-assign `{float}` by `{integer}` [INFO] [stdout] --> src/functions.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | product *= i; [INFO] [stdout] | ^^ no implementation for `{float} *= {integer}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `MulAssign<{integer}>` is not implemented for `{float}` [INFO] [stdout] = help: the following other types implement trait `MulAssign`: [INFO] [stdout] `f128` implements `MulAssign<&f128>` [INFO] [stdout] `f128` implements `MulAssign` [INFO] [stdout] `f16` implements `MulAssign<&f16>` [INFO] [stdout] `f16` implements `MulAssign` [INFO] [stdout] `f32` implements `MulAssign<&f32>` [INFO] [stdout] `f32` implements `MulAssign` [INFO] [stdout] `f64` implements `MulAssign<&f64>` [INFO] [stdout] `f64` implements `MulAssign` [INFO] [stdout] and 24 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `x` in this scope [INFO] [stdout] --> src/variables.rs:21:43 [INFO] [stdout] | [INFO] [stdout] 21 | println!("My favorite number is: {}", x); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `homework1` (bin "functions") due to 6 previous errors [INFO] [stdout] error[E0277]: `()` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/functions.rs:27:35 [INFO] [stdout] | [INFO] [stdout] 27 | println!("factorial(6) = {}", factorial(6)); [INFO] [stdout] | -- ^^^^^^^^^^^^ `()` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `()` [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` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `()` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/functions.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 28 | println!("is_primt(42) = {}", is_prime(42)); [INFO] [stdout] | -- ^^^^^^^^^^^^ `()` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `()` [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` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): RelativeEq<_>` is not satisfied [INFO] [stdout] --> src/functions.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | assert_relative_eq!(factorial(1), 1.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `RelativeEq<_>` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `RelativeEq`: [INFO] [stdout] `&'a T` implements `RelativeEq` [INFO] [stdout] `&'a mut T` implements `RelativeEq` [INFO] [stdout] `Cell` implements `RelativeEq` [INFO] [stdout] `RefCell` implements `RelativeEq` [INFO] [stdout] `[A]` implements `RelativeEq<[B]>` [INFO] [stdout] `f32` implements `RelativeEq` [INFO] [stdout] `f64` implements `RelativeEq` [INFO] [stdout] note: required by a bound in `Relative` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/approx-0.5.1/src/lib.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 255 | pub struct Relative [INFO] [stdout] | -------- required by a bound in this struct [INFO] [stdout] 256 | where [INFO] [stdout] 257 | A: RelativeEq + ?Sized, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `Relative` [INFO] [stdout] = note: this error originates in the macro `relative_eq` which comes from the expansion of the macro `assert_relative_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `homework1` (bin "ownership") due to 1 previous error; 1 warning emitted [INFO] [stdout] error[E0277]: the trait bound `(): RelativeEq<_>` is not satisfied [INFO] [stdout] --> src/functions.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | assert_relative_eq!(factorial(1), 1.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `RelativeEq<_>` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `RelativeEq`: [INFO] [stdout] `&'a T` implements `RelativeEq` [INFO] [stdout] `&'a mut T` implements `RelativeEq` [INFO] [stdout] `Cell` implements `RelativeEq` [INFO] [stdout] `RefCell` implements `RelativeEq` [INFO] [stdout] `[A]` implements `RelativeEq<[B]>` [INFO] [stdout] `f32` implements `RelativeEq` [INFO] [stdout] `f64` implements `RelativeEq` [INFO] [stdout] note: required by a bound in `Relative::::eq` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/approx-0.5.1/src/lib.rs:282:8 [INFO] [stdout] | [INFO] [stdout] 282 | A: RelativeEq + ?Sized, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `Relative::::eq` [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn eq(self, lhs: &A, rhs: &B) -> bool { [INFO] [stdout] | -- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the macro `relative_eq` which comes from the expansion of the macro `assert_relative_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): RelativeEq<_>` is not satisfied [INFO] [stdout] --> src/functions.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | assert_relative_eq!(factorial(6), 720.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `RelativeEq<_>` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `RelativeEq`: [INFO] [stdout] `&'a T` implements `RelativeEq` [INFO] [stdout] `&'a mut T` implements `RelativeEq` [INFO] [stdout] `Cell` implements `RelativeEq` [INFO] [stdout] `RefCell` implements `RelativeEq` [INFO] [stdout] `[A]` implements `RelativeEq<[B]>` [INFO] [stdout] `f32` implements `RelativeEq` [INFO] [stdout] `f64` implements `RelativeEq` [INFO] [stdout] note: required by a bound in `Relative` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/approx-0.5.1/src/lib.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 255 | pub struct Relative [INFO] [stdout] | -------- required by a bound in this struct [INFO] [stdout] 256 | where [INFO] [stdout] 257 | A: RelativeEq + ?Sized, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `Relative` [INFO] [stdout] = note: this error originates in the macro `relative_eq` which comes from the expansion of the macro `assert_relative_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): RelativeEq<_>` is not satisfied [INFO] [stdout] --> src/functions.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | assert_relative_eq!(factorial(6), 720.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `RelativeEq<_>` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `RelativeEq`: [INFO] [stdout] `&'a T` implements `RelativeEq` [INFO] [stdout] `&'a mut T` implements `RelativeEq` [INFO] [stdout] `Cell` implements `RelativeEq` [INFO] [stdout] `RefCell` implements `RelativeEq` [INFO] [stdout] `[A]` implements `RelativeEq<[B]>` [INFO] [stdout] `f32` implements `RelativeEq` [INFO] [stdout] `f64` implements `RelativeEq` [INFO] [stdout] note: required by a bound in `Relative::::eq` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/approx-0.5.1/src/lib.rs:282:8 [INFO] [stdout] | [INFO] [stdout] 282 | A: RelativeEq + ?Sized, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `Relative::::eq` [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn eq(self, lhs: &A, rhs: &B) -> bool { [INFO] [stdout] | -- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the macro `relative_eq` which comes from the expansion of the macro `assert_relative_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): RelativeEq<_>` is not satisfied [INFO] [stdout] --> src/functions.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | assert_relative_eq!(factorial(13), 6227020800.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `RelativeEq<_>` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `RelativeEq`: [INFO] [stdout] `&'a T` implements `RelativeEq` [INFO] [stdout] `&'a mut T` implements `RelativeEq` [INFO] [stdout] `Cell` implements `RelativeEq` [INFO] [stdout] `RefCell` implements `RelativeEq` [INFO] [stdout] `[A]` implements `RelativeEq<[B]>` [INFO] [stdout] `f32` implements `RelativeEq` [INFO] [stdout] `f64` implements `RelativeEq` [INFO] [stdout] note: required by a bound in `Relative` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/approx-0.5.1/src/lib.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 255 | pub struct Relative [INFO] [stdout] | -------- required by a bound in this struct [INFO] [stdout] 256 | where [INFO] [stdout] 257 | A: RelativeEq + ?Sized, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `Relative` [INFO] [stdout] = note: this error originates in the macro `relative_eq` which comes from the expansion of the macro `assert_relative_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): RelativeEq<_>` is not satisfied [INFO] [stdout] --> src/functions.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | assert_relative_eq!(factorial(13), 6227020800.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `RelativeEq<_>` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `RelativeEq`: [INFO] [stdout] `&'a T` implements `RelativeEq` [INFO] [stdout] `&'a mut T` implements `RelativeEq` [INFO] [stdout] `Cell` implements `RelativeEq` [INFO] [stdout] `RefCell` implements `RelativeEq` [INFO] [stdout] `[A]` implements `RelativeEq<[B]>` [INFO] [stdout] `f32` implements `RelativeEq` [INFO] [stdout] `f64` implements `RelativeEq` [INFO] [stdout] note: required by a bound in `Relative::::eq` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/approx-0.5.1/src/lib.rs:282:8 [INFO] [stdout] | [INFO] [stdout] 282 | A: RelativeEq + ?Sized, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `Relative::::eq` [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn eq(self, lhs: &A, rhs: &B) -> bool { [INFO] [stdout] | -- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the macro `relative_eq` which comes from the expansion of the macro `assert_relative_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): AbsDiffEq<{float}>` is not satisfied in `Relative<(), {float}>` [INFO] [stdout] --> src/functions.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | assert_relative_eq!(factorial(1), 1.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `Relative<(), {float}>`, the trait `AbsDiffEq<{float}>` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `AbsDiffEq`: [INFO] [stdout] `&'a T` implements `AbsDiffEq` [INFO] [stdout] `&'a mut T` implements `AbsDiffEq` [INFO] [stdout] `Cell` implements `AbsDiffEq` [INFO] [stdout] `RefCell` implements `AbsDiffEq` [INFO] [stdout] `[A]` implements `AbsDiffEq<[B]>` [INFO] [stdout] `f32` implements `AbsDiffEq` [INFO] [stdout] `f64` implements `AbsDiffEq` [INFO] [stdout] `i16` implements `AbsDiffEq` [INFO] [stdout] and 9 others [INFO] [stdout] note: required because it appears within the type `Relative<(), {float}>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/approx-0.5.1/src/lib.rs:255:12 [INFO] [stdout] | [INFO] [stdout] 255 | pub struct Relative [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: the return type of a function must have a statically known size [INFO] [stdout] = note: this error originates in the macro `relative_eq` which comes from the expansion of the macro `assert_relative_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): AbsDiffEq<{float}>` is not satisfied in `Relative<(), {float}>` [INFO] [stdout] --> src/functions.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | assert_relative_eq!(factorial(6), 720.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `Relative<(), {float}>`, the trait `AbsDiffEq<{float}>` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `AbsDiffEq`: [INFO] [stdout] `&'a T` implements `AbsDiffEq` [INFO] [stdout] `&'a mut T` implements `AbsDiffEq` [INFO] [stdout] `Cell` implements `AbsDiffEq` [INFO] [stdout] `RefCell` implements `AbsDiffEq` [INFO] [stdout] `[A]` implements `AbsDiffEq<[B]>` [INFO] [stdout] `f32` implements `AbsDiffEq` [INFO] [stdout] `f64` implements `AbsDiffEq` [INFO] [stdout] `i16` implements `AbsDiffEq` [INFO] [stdout] and 9 others [INFO] [stdout] note: required because it appears within the type `Relative<(), {float}>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/approx-0.5.1/src/lib.rs:255:12 [INFO] [stdout] | [INFO] [stdout] 255 | pub struct Relative [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: the return type of a function must have a statically known size [INFO] [stdout] = note: this error originates in the macro `relative_eq` which comes from the expansion of the macro `assert_relative_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): AbsDiffEq<{float}>` is not satisfied in `Relative<(), {float}>` [INFO] [stdout] --> src/functions.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | assert_relative_eq!(factorial(13), 6227020800.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `Relative<(), {float}>`, the trait `AbsDiffEq<{float}>` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `AbsDiffEq`: [INFO] [stdout] `&'a T` implements `AbsDiffEq` [INFO] [stdout] `&'a mut T` implements `AbsDiffEq` [INFO] [stdout] `Cell` implements `AbsDiffEq` [INFO] [stdout] `RefCell` implements `AbsDiffEq` [INFO] [stdout] `[A]` implements `AbsDiffEq<[B]>` [INFO] [stdout] `f32` implements `AbsDiffEq` [INFO] [stdout] `f64` implements `AbsDiffEq` [INFO] [stdout] `i16` implements `AbsDiffEq` [INFO] [stdout] and 9 others [INFO] [stdout] note: required because it appears within the type `Relative<(), {float}>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/approx-0.5.1/src/lib.rs:255:12 [INFO] [stdout] | [INFO] [stdout] 255 | pub struct Relative [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: the return type of a function must have a statically known size [INFO] [stdout] = note: this error originates in the macro `relative_eq` which comes from the expansion of the macro `assert_relative_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `!` to type `()` [INFO] [stdout] --> src/functions.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | assert!(!is_prime(1)); [INFO] [stdout] | ^^^^^^^^^^^^ cannot apply unary operator `!` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `!` to type `()` [INFO] [stdout] --> src/functions.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | assert!(is_prime(2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot apply unary operator `!` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/euler.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | fn euler_series(n_terms: u32) -> f64 { [INFO] [stdout] | ------------ ^^^ expected `f64`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `!` to type `()` [INFO] [stdout] --> src/functions.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | assert!(is_prime(7)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot apply unary operator `!` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `!` to type `()` [INFO] [stdout] --> src/functions.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | assert!(!is_prime(14)); [INFO] [stdout] | ^^^^^^^^^^^^^ cannot apply unary operator `!` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `!` to type `()` [INFO] [stdout] --> src/functions.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | assert!(is_prime(37)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ cannot apply unary operator `!` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/euler.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | fn euler_limit(n_limit: u32) -> f64 { [INFO] [stdout] | ----------- ^^^ expected `f64`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `!` to type `()` [INFO] [stdout] --> src/functions.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | assert!(!is_prime(42)); [INFO] [stdout] | ^^^^^^^^^^^^^ cannot apply unary operator `!` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0600. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `x` in this scope [INFO] [stdout] --> src/variables.rs:21:43 [INFO] [stdout] | [INFO] [stdout] 21 | println!("My favorite number is: {}", x); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `homework1` (bin "functions" test) due to 21 previous errors [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/variables.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 4 | let x = 5; [INFO] [stdout] | - expected due to this value [INFO] [stdout] ... [INFO] [stdout] 7 | x = "seven"; [INFO] [stdout] | ^^^^^^^ expected integer, found `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0384]: cannot assign twice to immutable variable `x` [INFO] [stdout] --> src/variables.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | let x = 5; [INFO] [stdout] | - first assignment to `x` [INFO] [stdout] 14 | println!("Before change {}", x); [INFO] [stdout] 15 | x += 8; [INFO] [stdout] | ^^^^^^ cannot assign twice to immutable variable [INFO] [stdout] | [INFO] [stdout] help: consider making this binding mutable [INFO] [stdout] | [INFO] [stdout] 13 | let mut x = 5; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/variables.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 4 | let x = 5; [INFO] [stdout] | - expected due to this value [INFO] [stdout] ... [INFO] [stdout] 7 | x = "seven"; [INFO] [stdout] | ^^^^^^^ expected integer, found `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0384, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0384]: cannot assign twice to immutable variable `x` [INFO] [stdout] --> src/variables.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | let x = 5; [INFO] [stdout] | - first assignment to `x` [INFO] [stdout] 14 | println!("Before change {}", x); [INFO] [stdout] 15 | x += 8; [INFO] [stdout] | ^^^^^^ cannot assign twice to immutable variable [INFO] [stdout] | [INFO] [stdout] help: consider making this binding mutable [INFO] [stdout] | [INFO] [stdout] 13 | let mut x = 5; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `homework1` (bin "euler" test) due to 2 previous errors [INFO] [stdout] Some errors have detailed explanations: E0308, E0384, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `homework1` (bin "variables" test) due to 3 previous errors [INFO] [stderr] error: could not compile `homework1` (bin "variables") due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "d7f10a7f58657181302c1916bf9ce2612921601ca6ad39fd288bcf5c4e4ea9af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7f10a7f58657181302c1916bf9ce2612921601ca6ad39fd288bcf5c4e4ea9af", kill_on_drop: false }` [INFO] [stdout] d7f10a7f58657181302c1916bf9ce2612921601ca6ad39fd288bcf5c4e4ea9af