[INFO] cloning repository https://github.com/lolmageap/rust-basic-study [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lolmageap/rust-basic-study" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flolmageap%2Frust-basic-study", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flolmageap%2Frust-basic-study'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c766e3b59fa6b78a8ad635d7b4bcb2b15cfaebe0 [INFO] checking lolmageap/rust-basic-study against try#b32fc44666c052e7cf07ab471bfb6f9ec571902f for pr-138676 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flolmageap%2Frust-basic-study" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lolmageap/rust-basic-study on toolchain b32fc44666c052e7cf07ab471bfb6f9ec571902f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b32fc44666c052e7cf07ab471bfb6f9ec571902f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lolmageap/rust-basic-study [INFO] finished tweaking git repo https://github.com/lolmageap/rust-basic-study [INFO] tweaked toml for git repo https://github.com/lolmageap/rust-basic-study written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/lolmageap/rust-basic-study 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" "+b32fc44666c052e7cf07ab471bfb6f9ec571902f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+b32fc44666c052e7cf07ab471bfb6f9ec571902f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6c66771ffe6a22780a31fa0121b19ec43e3bb8d268f3a065849ac3e4335f62f1 [INFO] running `Command { std: "docker" "start" "-a" "6c66771ffe6a22780a31fa0121b19ec43e3bb8d268f3a065849ac3e4335f62f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6c66771ffe6a22780a31fa0121b19ec43e3bb8d268f3a065849ac3e4335f62f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c66771ffe6a22780a31fa0121b19ec43e3bb8d268f3a065849ac3e4335f62f1", kill_on_drop: false }` [INFO] [stdout] 6c66771ffe6a22780a31fa0121b19ec43e3bb8d268f3a065849ac3e4335f62f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+b32fc44666c052e7cf07ab471bfb6f9ec571902f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 40c21d5b6da00f4232cea75171bff0433857acddd07e610934db7e1fe66a5653 [INFO] running `Command { std: "docker" "start" "-a" "40c21d5b6da00f4232cea75171bff0433857acddd07e610934db7e1fe66a5653", kill_on_drop: false }` [INFO] [stderr] Checking rock-scissor-paper v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected expression, found keyword `mut` [INFO] [stdout] --> src/main.rs:268:29 [INFO] [stdout] | [INFO] [stdout] 268 | let len2 = calc_length2(mut &s); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found keyword `mut` [INFO] [stdout] --> src/main.rs:268:29 [INFO] [stdout] | [INFO] [stdout] 268 | let len2 = calc_length2(mut &s); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `fn_string_length` is defined multiple times [INFO] [stdout] --> src/main.rs:240:2 [INFO] [stdout] | [INFO] [stdout] 228 | fn fn_string_length() { [INFO] [stdout] | --------------------- previous definition of the value `fn_string_length` here [INFO] [stdout] ... [INFO] [stdout] 240 | fn fn_string_length() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ `fn_string_length` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `fn_string_length` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `fn_string_length` is defined multiple times [INFO] [stdout] --> src/main.rs:240:2 [INFO] [stdout] | [INFO] [stdout] 228 | fn fn_string_length() { [INFO] [stdout] | --------------------- previous definition of the value `fn_string_length` here [INFO] [stdout] ... [INFO] [stdout] 240 | fn fn_string_length() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ `fn_string_length` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `fn_string_length` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:130:14 [INFO] [stdout] | [INFO] [stdout] 130 | println!(y); // 5 [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 130 | println!("{}", y); // 5 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:151:14 [INFO] [stdout] | [INFO] [stdout] 151 | println!(y); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 151 | println!("{}", y); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:170:14 [INFO] [stdout] | [INFO] [stdout] 170 | println!(result); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 170 | println!("{}", result); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:207:15 [INFO] [stdout] | [INFO] [stdout] 207 | println!(x); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 207 | println!("{}", x); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:208:15 [INFO] [stdout] | [INFO] [stdout] 208 | println!(y); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 208 | println!("{}", y); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:215:15 [INFO] [stdout] | [INFO] [stdout] 215 | println!(s2); // 정상 출력 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 215 | println!("{}", s2); // 정상 출력 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:216:15 [INFO] [stdout] | [INFO] [stdout] 216 | println!(s1); // 컴파일 에러 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 216 | println!("{}", s1); // 컴파일 에러 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:224:15 [INFO] [stdout] | [INFO] [stdout] 224 | println!(s2); // 정상 출력 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 224 | println!("{}", s2); // 정상 출력 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:225:15 [INFO] [stdout] | [INFO] [stdout] 225 | println!(s1); // 정상 출력 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 225 | println!("{}", s1); // 정상 출력 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:130:14 [INFO] [stdout] | [INFO] [stdout] 130 | println!(y); // 5 [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 130 | println!("{}", y); // 5 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:231:14 [INFO] [stdout] | [INFO] [stdout] 231 | println!(s1); // 컴파일 에러 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 231 | println!("{}", s1); // 컴파일 에러 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:151:14 [INFO] [stdout] | [INFO] [stdout] 151 | println!(y); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 151 | println!("{}", y); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:232:15 [INFO] [stdout] | [INFO] [stdout] 232 | println!(s2); // 정상 출력 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 232 | println!("{}", s2); // 정상 출력 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:170:14 [INFO] [stdout] | [INFO] [stdout] 170 | println!(result); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 170 | println!("{}", result); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:236:14 [INFO] [stdout] | [INFO] [stdout] 236 | println!(s.length); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 236 | println!("{}", s.length); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:207:15 [INFO] [stdout] | [INFO] [stdout] 207 | println!(x); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 207 | println!("{}", x); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:248:14 [INFO] [stdout] | [INFO] [stdout] 248 | println!(s.length); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 248 | println!("{}", s.length); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:253:14 [INFO] [stdout] | [INFO] [stdout] 253 | println!(s.length); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 253 | println!("{}", s.length); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:208:15 [INFO] [stdout] | [INFO] [stdout] 208 | println!(y); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 208 | println!("{}", y); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:270:14 [INFO] [stdout] | [INFO] [stdout] 270 | println!(s); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 270 | println!("{}", s); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:215:15 [INFO] [stdout] | [INFO] [stdout] 215 | println!(s2); // 정상 출력 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 215 | println!("{}", s2); // 정상 출력 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:271:14 [INFO] [stdout] | [INFO] [stdout] 271 | println!(len); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 271 | println!("{}", len); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:216:15 [INFO] [stdout] | [INFO] [stdout] 216 | println!(s1); // 컴파일 에러 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 216 | println!("{}", s1); // 컴파일 에러 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:224:15 [INFO] [stdout] | [INFO] [stdout] 224 | println!(s2); // 정상 출력 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 224 | println!("{}", s2); // 정상 출력 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:225:15 [INFO] [stdout] | [INFO] [stdout] 225 | println!(s1); // 정상 출력 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 225 | println!("{}", s1); // 정상 출력 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:231:14 [INFO] [stdout] | [INFO] [stdout] 231 | println!(s1); // 컴파일 에러 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 231 | println!("{}", s1); // 컴파일 에러 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:232:15 [INFO] [stdout] | [INFO] [stdout] 232 | println!(s2); // 정상 출력 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 232 | println!("{}", s2); // 정상 출력 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:236:14 [INFO] [stdout] | [INFO] [stdout] 236 | println!(s.length); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 236 | println!("{}", s.length); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:248:14 [INFO] [stdout] | [INFO] [stdout] 248 | println!(s.length); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 248 | println!("{}", s.length); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:253:14 [INFO] [stdout] | [INFO] [stdout] 253 | println!(s.length); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 253 | println!("{}", s.length); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:270:14 [INFO] [stdout] | [INFO] [stdout] 270 | println!(s); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 270 | println!("{}", s); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:271:14 [INFO] [stdout] | [INFO] [stdout] 271 | println!(len); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 271 | println!("{}", len); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `value` in this scope [INFO] [stdout] --> src/main.rs:192:32 [INFO] [stdout] | [INFO] [stdout] 192 | println!("value = {}", value); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `value` in this scope [INFO] [stdout] --> src/main.rs:198:32 [INFO] [stdout] | [INFO] [stdout] 198 | println!("value = {}", value); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `string` [INFO] [stdout] --> src/main.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io, string}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:172:11 [INFO] [stdout] | [INFO] [stdout] 172 | while (counter < 5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 172 - while (counter < 5) { [INFO] [stdout] 172 + while counter < 5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/main.rs:191:14 [INFO] [stdout] | [INFO] [stdout] 191 | for i in (0..5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 191 - for i in (0..5) { [INFO] [stdout] 191 + for i in 0..5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `value` in this scope [INFO] [stdout] --> src/main.rs:192:32 [INFO] [stdout] | [INFO] [stdout] 192 | println!("value = {}", value); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `value` in this scope [INFO] [stdout] --> src/main.rs:198:32 [INFO] [stdout] | [INFO] [stdout] 198 | println!("value = {}", value); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `string` [INFO] [stdout] --> src/main.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io, string}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:172:11 [INFO] [stdout] | [INFO] [stdout] 172 | while (counter < 5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 172 - while (counter < 5) { [INFO] [stdout] 172 + while counter < 5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/main.rs:191:14 [INFO] [stdout] | [INFO] [stdout] 191 | for i in (0..5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 191 - for i in (0..5) { [INFO] [stdout] 191 + for i in 0..5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:106:28 [INFO] [stdout] | [INFO] [stdout] 106 | let hellos = ["hello", 10]; [INFO] [stdout] | ^^ expected `&str`, found integer [INFO] [stdout] | [INFO] [stdout] help: replace the comma with a semicolon to create an array [INFO] [stdout] | [INFO] [stdout] 106 - let hellos = ["hello", 10]; [INFO] [stdout] 106 + let hellos = ["hello"; 10]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 156 | / loop { [INFO] [stdout] 157 | | println!("반복"); [INFO] [stdout] 158 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 159 | [INFO] [stdout] 160 | let mut counter = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:106:28 [INFO] [stdout] | [INFO] [stdout] 106 | let hellos = ["hello", 10]; [INFO] [stdout] | ^^ expected `&str`, found integer [INFO] [stdout] | [INFO] [stdout] help: replace the comma with a semicolon to create an array [INFO] [stdout] | [INFO] [stdout] 106 - let hellos = ["hello", 10]; [INFO] [stdout] 106 + let hellos = ["hello"; 10]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 156 | / loop { [INFO] [stdout] 157 | | println!("반복"); [INFO] [stdout] 158 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 159 | [INFO] [stdout] 160 | let mut counter = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | let (len, s1) = string_length1(s1); // 튜플로 반환을 한다면 소유권을 다시 가져오고 값도 가져올 수 있다. [INFO] [stdout] | ^^^^^^^^^ ------------------ this expression has type `usize` [INFO] [stdout] | | [INFO] [stdout] | expected `usize`, found `(_, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected type `usize` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | let (len, s1) = string_length1(s1); // 튜플로 반환을 한다면 소유권을 다시 가져오고 값도 가져올 수 있다. [INFO] [stdout] | ^^^^^^^^^ ------------------ this expression has type `usize` [INFO] [stdout] | | [INFO] [stdout] | expected `usize`, found `(_, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected type `usize` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `add` [INFO] [stdout] --> src/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let add = 3 + 8; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_add` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sub` [INFO] [stdout] --> src/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let sub = 26.5 - 2.1; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mul` [INFO] [stdout] --> src/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mul = 7 * 20; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_mul` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quotient` [INFO] [stdout] --> src/main.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let quotient = 12.0 / 3.14; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quotient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `truncate` [INFO] [stdout] --> src/main.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let truncate = 7 / 5; // 결과는 1 [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_truncate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remainder` [INFO] [stdout] --> src/main.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let remainder = 46 % 5; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remainder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let t = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let f: bool = false; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let c = 'A'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let z: char = '가'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unicorn` [INFO] [stdout] --> src/main.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let unicorn = '🦄'; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unicorn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let e = tuple.0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let f = tuple.1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/main.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let g = tuple.2; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/main.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let h = tuple.3; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `add` [INFO] [stdout] --> src/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let add = 3 + 8; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_add` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sub` [INFO] [stdout] --> src/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let sub = 26.5 - 2.1; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mul` [INFO] [stdout] --> src/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mul = 7 * 20; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_mul` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quotient` [INFO] [stdout] --> src/main.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let quotient = 12.0 / 3.14; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quotient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `truncate` [INFO] [stdout] --> src/main.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let truncate = 7 / 5; // 결과는 1 [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_truncate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remainder` [INFO] [stdout] --> src/main.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let remainder = 46 % 5; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remainder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let t = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let f: bool = false; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let c = 'A'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let z: char = '가'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unicorn` [INFO] [stdout] --> src/main.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let unicorn = '🦄'; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unicorn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let e = tuple.0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let f = tuple.1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/main.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let g = tuple.2; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/main.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let h = tuple.3; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0428. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0428. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rock-scissor-paper` (bin "rock-scissor-paper" test) due to 22 previous errors; 19 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rock-scissor-paper` (bin "rock-scissor-paper") due to 22 previous errors; 19 warnings emitted [INFO] running `Command { std: "docker" "inspect" "40c21d5b6da00f4232cea75171bff0433857acddd07e610934db7e1fe66a5653", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40c21d5b6da00f4232cea75171bff0433857acddd07e610934db7e1fe66a5653", kill_on_drop: false }` [INFO] [stdout] 40c21d5b6da00f4232cea75171bff0433857acddd07e610934db7e1fe66a5653