[INFO] cloning repository https://github.com/goodwillcoding/rust-exercises [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/goodwillcoding/rust-exercises" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgoodwillcoding%2Frust-exercises", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgoodwillcoding%2Frust-exercises'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 202233db71f749b11d215b21682268c414167758 [INFO] checking goodwillcoding/rust-exercises against try#a0cd57eba5d417638d3351ba13fc414ad1a24bec for pr-134688 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgoodwillcoding%2Frust-exercises" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/goodwillcoding/rust-exercises on toolchain a0cd57eba5d417638d3351ba13fc414ad1a24bec [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a0cd57eba5d417638d3351ba13fc414ad1a24bec" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-5-tc2/source/rust-toolchain [INFO] started tweaking git repo https://github.com/goodwillcoding/rust-exercises [INFO] finished tweaking git repo https://github.com/goodwillcoding/rust-exercises [INFO] tweaked toml for git repo https://github.com/goodwillcoding/rust-exercises written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/goodwillcoding/rust-exercises 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" "+a0cd57eba5d417638d3351ba13fc414ad1a24bec" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded test_bin v0.2.0 [INFO] [stderr] Downloaded simple-error v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+a0cd57eba5d417638d3351ba13fc414ad1a24bec" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 138be9b319c2eb269aea4d86ca7428e0463a2511a37bc51e5f0cf69004d7a8a7 [INFO] running `Command { std: "docker" "start" "-a" "138be9b319c2eb269aea4d86ca7428e0463a2511a37bc51e5f0cf69004d7a8a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "138be9b319c2eb269aea4d86ca7428e0463a2511a37bc51e5f0cf69004d7a8a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "138be9b319c2eb269aea4d86ca7428e0463a2511a37bc51e5f0cf69004d7a8a7", kill_on_drop: false }` [INFO] [stdout] 138be9b319c2eb269aea4d86ca7428e0463a2511a37bc51e5f0cf69004d7a8a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+a0cd57eba5d417638d3351ba13fc414ad1a24bec" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 79951ac85e421d690184315eeba90faa7d2bae37bb45e48055d4b7762e25fd06 [INFO] running `Command { std: "docker" "start" "-a" "79951ac85e421d690184315eeba90faa7d2bae37bb45e48055d4b7762e25fd06", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling getrandom v0.1.10 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Checking ppv-lite86 v0.2.5 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Checking simple-error v0.2.0 [INFO] [stderr] Checking test_bin v0.2.0 [INFO] [stderr] Checking problem2 v0.1.0 (/opt/rustwide/workdir/problems/problem2) [INFO] [stderr] Checking problem5 v0.1.0 (/opt/rustwide/workdir/problems/problem5) [INFO] [stderr] Checking problem1 v0.1.0 (/opt/rustwide/workdir/problems/problem1) [INFO] [stderr] Checking problem4 v0.1.0 (/opt/rustwide/workdir/problems/problem4) [INFO] [stderr] Checking exercises v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking problem7 v0.1.0 (/opt/rustwide/workdir/problems/problem7) [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> problems/problem5/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> problems/problem4/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> problems/problem4/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elems` [INFO] [stdout] --> problems/problem4/src/lib.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn make_flower_box(elems: Vec<&str>) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_elems` [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] --> problems/problem4/src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut flower_box = String::new(); [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: unused variable: `s` [INFO] [stdout] --> problems/problem4/src/lib.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn format_line(s: &str, max_length: usize) -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_length` [INFO] [stdout] --> problems/problem4/src/lib.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn format_line(s: &str, max_length: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem4/src/lib.rs:46:22 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn format_border(s: &str, length: usize) -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> problems/problem4/src/lib.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn format_border(s: &str, length: usize) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elems` [INFO] [stdout] --> problems/problem4/src/lib.rs:58:28 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn get_max_line_length(elems: &Vec<&str>) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_elems` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elems` [INFO] [stdout] --> problems/problem4/src/lib.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn make_flower_box(elems: Vec<&str>) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_elems` [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] --> problems/problem4/src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut flower_box = String::new(); [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: unused variable: `s` [INFO] [stdout] --> problems/problem4/src/lib.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn format_line(s: &str, max_length: usize) -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_length` [INFO] [stdout] --> problems/problem4/src/lib.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn format_line(s: &str, max_length: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem4/src/lib.rs:46:22 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn format_border(s: &str, length: usize) -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> problems/problem4/src/lib.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn format_border(s: &str, length: usize) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elems` [INFO] [stdout] --> problems/problem4/src/lib.rs:58:28 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn get_max_line_length(elems: &Vec<&str>) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_elems` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> problems/problem5/src/lib.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new () -> Self {} [INFO] [stdout] | --- ^^^^ expected `Mortgage`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `months` [INFO] [stdout] --> problems/problem5/src/lib.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | fn principal_remaining(&self, months: i32, monthly_payment: i64) -> i64 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_months` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `monthly_payment` [INFO] [stdout] --> problems/problem5/src/lib.rs:32:48 [INFO] [stdout] | [INFO] [stdout] 32 | fn principal_remaining(&self, months: i32, monthly_payment: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_monthly_payment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `months` [INFO] [stdout] --> problems/problem5/src/lib.rs:45:28 [INFO] [stdout] | [INFO] [stdout] 45 | fn total_payout(&self, months: i32, monthly_payment: i64) -> i64 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_months` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `monthly_payment` [INFO] [stdout] --> problems/problem5/src/lib.rs:45:41 [INFO] [stdout] | [INFO] [stdout] 45 | fn total_payout(&self, months: i32, monthly_payment: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_monthly_payment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `monthly_payment` [INFO] [stdout] --> problems/problem5/src/lib.rs:50:35 [INFO] [stdout] | [INFO] [stdout] 50 | fn months_until_payoff(&self, monthly_payment: i64) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_monthly_payment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `problem5` (lib) due to 1 previous error; 6 warnings emitted [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> problems/problem7/src/lib.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn singleton(x: i64) -> Set { [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] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem7/src/lib.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn contains(s: &Set, x: i64) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> problems/problem7/src/lib.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn union(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> problems/problem7/src/lib.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn union(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> problems/problem7/src/lib.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn intersect(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> problems/problem7/src/lib.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn intersect(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> problems/problem7/src/lib.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn diff(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> problems/problem7/src/lib.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn diff(s1: Set, s2: Set) -> Set { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem7/src/lib.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn filter(s: Set, p: fn(i64) -> bool) -> Set { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> problems/problem7/src/lib.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn filter(s: Set, p: fn(i64) -> bool) -> Set { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> problems/problem5/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem7/src/lib.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn forall(s: Set, p: Box bool>) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> problems/problem7/src/lib.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn forall(s: Set, p: Box bool>) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem7/src/lib.rs:43:15 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn exists(s: Set, p: Box bool>) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> problems/problem7/src/lib.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn exists(s: Set, p: Box bool>) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> problems/problem7/src/lib.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn map(s: Set, f: fn(i64) -> i64) -> Set { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> problems/problem7/src/lib.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn map(s: Set, f: fn(i64) -> i64) -> Set { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> problems/problem5/src/lib.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new () -> Self {} [INFO] [stdout] | --- ^^^^ expected `Mortgage`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `months` [INFO] [stdout] --> problems/problem5/src/lib.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | fn principal_remaining(&self, months: i32, monthly_payment: i64) -> i64 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_months` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `monthly_payment` [INFO] [stdout] --> problems/problem5/src/lib.rs:32:48 [INFO] [stdout] | [INFO] [stdout] 32 | fn principal_remaining(&self, months: i32, monthly_payment: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_monthly_payment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `months` [INFO] [stdout] --> problems/problem5/src/lib.rs:45:28 [INFO] [stdout] | [INFO] [stdout] 45 | fn total_payout(&self, months: i32, monthly_payment: i64) -> i64 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_months` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `monthly_payment` [INFO] [stdout] --> problems/problem5/src/lib.rs:45:41 [INFO] [stdout] | [INFO] [stdout] 45 | fn total_payout(&self, months: i32, monthly_payment: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_monthly_payment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `monthly_payment` [INFO] [stdout] --> problems/problem5/src/lib.rs:50:35 [INFO] [stdout] | [INFO] [stdout] 50 | fn months_until_payoff(&self, monthly_payment: i64) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_monthly_payment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `monthly_payment` [INFO] [stdout] --> problems/problem5/src/lib.rs:88:7 [INFO] [stdout] | [INFO] [stdout] 88 | let monthly_payment = 10000; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_monthly_payment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `problem5` (lib test) due to 1 previous error; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "79951ac85e421d690184315eeba90faa7d2bae37bb45e48055d4b7762e25fd06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79951ac85e421d690184315eeba90faa7d2bae37bb45e48055d4b7762e25fd06", kill_on_drop: false }` [INFO] [stdout] 79951ac85e421d690184315eeba90faa7d2bae37bb45e48055d4b7762e25fd06