[INFO] cloning repository https://github.com/lucasknutr/guessing-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucasknutr/guessing-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 1) [INFO] cloning repository https://github.com/lucasknutr/guessing-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucasknutr/guessing-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 2) [INFO] cloning repository https://github.com/lucasknutr/guessing-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucasknutr/guessing-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game'... [INFO] [stderr] error: copy-fd: write returned: No space left on device [INFO] [stderr] fatal: cannot copy '/usr/share/git-core/templates/hooks/pre-commit.sample' to '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game/hooks/pre-commit.sample': No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 3) [INFO] cloning repository https://github.com/lucasknutr/guessing-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucasknutr/guessing-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game/hooks/: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 4) [INFO] cloning repository https://github.com/lucasknutr/guessing-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucasknutr/guessing-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 5) [INFO] cloning repository https://github.com/lucasknutr/guessing-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucasknutr/guessing-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 6) [INFO] cloning repository https://github.com/lucasknutr/guessing-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucasknutr/guessing-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game'... [INFO] [stderr] error: failed to write new configuration file /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game/config.lock [INFO] [stderr] fatal: could not set 'core.bare' to 'true' [WARN] Retrying crate fetch in 3 seconds (attempt 7) [INFO] cloning repository https://github.com/lucasknutr/guessing-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucasknutr/guessing-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game'... [INFO] [stderr] error: failed to write new configuration file /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game/config.lock [INFO] [stderr] fatal: could not set 'core.filemode' to 'true' [WARN] Retrying crate fetch in 3 seconds (attempt 8) [INFO] cloning repository https://github.com/lucasknutr/guessing-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucasknutr/guessing-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game'... [INFO] [stderr] error: copy-fd: write returned: No space left on device [INFO] [stderr] fatal: cannot copy '/usr/share/git-core/templates/hooks/push-to-checkout.sample' to '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game/hooks/push-to-checkout.sample': No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 9) [INFO] cloning repository https://github.com/lucasknutr/guessing-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucasknutr/guessing-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 10) [INFO] cloning repository https://github.com/lucasknutr/guessing-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucasknutr/guessing-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 11) [INFO] cloning repository https://github.com/lucasknutr/guessing-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucasknutr/guessing-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 12) [INFO] cloning repository https://github.com/lucasknutr/guessing-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucasknutr/guessing-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 13) [INFO] cloning repository https://github.com/lucasknutr/guessing-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucasknutr/guessing-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 14) [INFO] cloning repository https://github.com/lucasknutr/guessing-game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucasknutr/guessing-game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 095e229aa1c72dba2189a5ed642755de567753e5 [INFO] checking lucasknutr/guessing-game against master#cb06d12710575a0d7ff71d6fe108f3bcff4f9195 for pr-128425-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasknutr%2Fguessing-game" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lucasknutr/guessing-game on toolchain cb06d12710575a0d7ff71d6fe108f3bcff4f9195 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cb06d12710575a0d7ff71d6fe108f3bcff4f9195" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lucasknutr/guessing-game [INFO] finished tweaking git repo https://github.com/lucasknutr/guessing-game [INFO] tweaked toml for git repo https://github.com/lucasknutr/guessing-game written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/lucasknutr/guessing-game 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" "+cb06d12710575a0d7ff71d6fe108f3bcff4f9195" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+cb06d12710575a0d7ff71d6fe108f3bcff4f9195" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 43ff1849daa9270f13982b0ee08fcaee285d6b2b836e0203b4508ac35d043733 [INFO] running `Command { std: "docker" "start" "-a" "43ff1849daa9270f13982b0ee08fcaee285d6b2b836e0203b4508ac35d043733", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "43ff1849daa9270f13982b0ee08fcaee285d6b2b836e0203b4508ac35d043733", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43ff1849daa9270f13982b0ee08fcaee285d6b2b836e0203b4508ac35d043733", kill_on_drop: false }` [INFO] [stdout] 43ff1849daa9270f13982b0ee08fcaee285d6b2b836e0203b4508ac35d043733 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+cb06d12710575a0d7ff71d6fe108f3bcff4f9195" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4dfcdfeb40d450fea0ba483251f97c5497ea3e625931612d21bdc91b8e04ef86 [INFO] running `Command { std: "docker" "start" "-a" "4dfcdfeb40d450fea0ba483251f97c5497ea3e625931612d21bdc91b8e04ef86", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking guessing-game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 40 | fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/main.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 40 | fn main() { [INFO] [stdout] | ^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering` [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | Ordering::Less => println!("Muito pequeno!"), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 1 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering` [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | Ordering::Greater => println!("Muito grande!"), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 1 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering` [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | Ordering::Less => println!("Muito pequeno!"), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 1 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | Ordering::Equal => println!("VocĂȘ ganhou!"), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 1 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering` [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | Ordering::Greater => println!("Muito grande!"), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 1 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | Ordering::Equal => println!("VocĂȘ ganhou!"), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 1 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | match guess.cmp(&numero_secreto) { [INFO] [stdout] | --- ^^^^^^^^^^^^^^^ expected `&String`, found `&{integer}` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&String` [INFO] [stdout] found reference `&{integer}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/cb06d12710575a0d7ff71d6fe108f3bcff4f9195/library/core/src/cmp.rs:964:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | match guess.cmp(&numero_secreto) { [INFO] [stdout] | --- ^^^^^^^^^^^^^^^ expected `&String`, found `&{integer}` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&String` [INFO] [stdout] found reference `&{integer}` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/cb06d12710575a0d7ff71d6fe108f3bcff4f9195/library/core/src/cmp.rs:964:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 33 | fn generate_stars(random_number: i32) -> String { [INFO] [stdout] | ------ expected `String` because of return type [INFO] [stdout] 34 | let mut star = String::new(); [INFO] [stdout] 35 | / for _ in 0..random_number { [INFO] [stdout] 36 | | star.push_str(" * "); [INFO] [stdout] 37 | | } [INFO] [stdout] | |_____^ expected `String`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: `for` loops evaluate to unit type `()` [INFO] [stdout] help: consider returning a value here [INFO] [stdout] | [INFO] [stdout] 37 ~ } [INFO] [stdout] 38 + /* `String` value */ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 33 | fn generate_stars(random_number: i32) -> String { [INFO] [stdout] | ------ expected `String` because of return type [INFO] [stdout] 34 | let mut star = String::new(); [INFO] [stdout] 35 | / for _ in 0..random_number { [INFO] [stdout] 36 | | star.push_str(" * "); [INFO] [stdout] 37 | | } [INFO] [stdout] | |_____^ expected `String`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: `for` loops evaluate to unit type `()` [INFO] [stdout] help: consider returning a value here [INFO] [stdout] | [INFO] [stdout] 37 ~ } [INFO] [stdout] 38 + /* `String` value */ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `random_number` [INFO] [stdout] --> src/main.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let random_number = rand::thread_rng().gen_range(1..=66); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_random_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `random_number` [INFO] [stdout] --> src/main.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let random_number = rand::thread_rng().gen_range(1..=66); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_random_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0428, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0428, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `guessing-game` (bin "guessing-game") due to 6 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `guessing-game` (bin "guessing-game" test) due to 6 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "4dfcdfeb40d450fea0ba483251f97c5497ea3e625931612d21bdc91b8e04ef86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4dfcdfeb40d450fea0ba483251f97c5497ea3e625931612d21bdc91b8e04ef86", kill_on_drop: false }` [INFO] [stdout] 4dfcdfeb40d450fea0ba483251f97c5497ea3e625931612d21bdc91b8e04ef86