[INFO] cloning repository https://github.com/mnaircckel/Rust-Console-Adventure [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mnaircckel/Rust-Console-Adventure" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmnaircckel%2FRust-Console-Adventure", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmnaircckel%2FRust-Console-Adventure'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c143a3de6cf1bc5929cb3ca4c8eb69c4b5da383b [INFO] checking mnaircckel/Rust-Console-Adventure against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmnaircckel%2FRust-Console-Adventure" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mnaircckel/Rust-Console-Adventure on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mnaircckel/Rust-Console-Adventure [INFO] finished tweaking git repo https://github.com/mnaircckel/Rust-Console-Adventure [INFO] tweaked toml for git repo https://github.com/mnaircckel/Rust-Console-Adventure written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/mnaircckel/Rust-Console-Adventure already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 70051eba87ecb6335dd0da85e05d8b2d4fd44ca79b05cd4bab66a9d823cbfa8a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "70051eba87ecb6335dd0da85e05d8b2d4fd44ca79b05cd4bab66a9d823cbfa8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "70051eba87ecb6335dd0da85e05d8b2d4fd44ca79b05cd4bab66a9d823cbfa8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70051eba87ecb6335dd0da85e05d8b2d4fd44ca79b05cd4bab66a9d823cbfa8a", kill_on_drop: false }` [INFO] [stdout] 70051eba87ecb6335dd0da85e05d8b2d4fd44ca79b05cd4bab66a9d823cbfa8a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d53f77ff8a0351368c16b0fcf87dac2b3ce361edfbaef07b26ee67af72ef5482 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d53f77ff8a0351368c16b0fcf87dac2b3ce361edfbaef07b26ee67af72ef5482", kill_on_drop: false }` [INFO] [stderr] Checking project v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/game.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::rand; [INFO] [stdout] | ^^^^^^^^^ no `rand` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stdout] --> src/game.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::BufferedReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::File` [INFO] [stdout] --> src/game.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::File; [INFO] [stdout] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::rand` [INFO] [stdout] --> src/game.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::rand; [INFO] [stdout] | ^^^^^^^^^ no `rand` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stdout] --> src/game.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::BufferedReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::File` [INFO] [stdout] --> src/game.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::File; [INFO] [stdout] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | pub level: int, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:16:72 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(running: bool, player: Character, enemy: Character, level: int, monsters: Vec) -> GameState { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | level: int, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | health: int, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | level : int, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 40 | max_health: int, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | current_health: int, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:46:34 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn new(name: String, level: int, max_health: int, current_health: int, alive: bool) -> Character { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:46:51 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn new(name: String, level: int, max_health: int, current_health: int, alive: bool) -> Character { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:46:72 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn new(name: String, level: int, max_health: int, current_health: int, alive: bool) -> Character { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:60:22 [INFO] [stdout] | [INFO] [stdout] 60 | fn attack(&self) -> int{ [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:61:52 [INFO] [stdout] | [INFO] [stdout] 61 | self.level * ( (rand::random::() * 4f64) as int) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:64:31 [INFO] [stdout] | [INFO] [stdout] 64 | fn defend(&mut self, damage: int){ [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | self.current_health -= damage as int; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/game.rs:89:27 [INFO] [stdout] | [INFO] [stdout] 88 | fn new_enemy(actionHandler: &mut GameState) -> Character { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 89 | let num = rand::random::() % 13; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | pub level: int, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:16:72 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(running: bool, player: Character, enemy: Character, level: int, monsters: Vec) -> GameState { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | level: int, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | health: int, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | level : int, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 40 | max_health: int, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | current_health: int, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:46:34 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn new(name: String, level: int, max_health: int, current_health: int, alive: bool) -> Character { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:46:51 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn new(name: String, level: int, max_health: int, current_health: int, alive: bool) -> Character { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:46:72 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn new(name: String, level: int, max_health: int, current_health: int, alive: bool) -> Character { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:60:22 [INFO] [stdout] | [INFO] [stdout] 60 | fn attack(&self) -> int{ [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:61:52 [INFO] [stdout] | [INFO] [stdout] 61 | self.level * ( (rand::random::() * 4f64) as int) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:64:31 [INFO] [stdout] | [INFO] [stdout] 64 | fn defend(&mut self, damage: int){ [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/game.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | self.current_health -= damage as int; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/game.rs:89:27 [INFO] [stdout] | [INFO] [stdout] 88 | fn new_enemy(actionHandler: &mut GameState) -> Character { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 89 | let num = rand::random::() % 13; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/game.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | let name = io::stdin().read_line().ok().expect("Failed to read name."); [INFO] [stdout] | ^^^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/game.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | let name = io::stdin().read_line().ok().expect("Failed to read name."); [INFO] [stdout] | ^^^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for type `usize` in the current scope [INFO] [stdout] --> src/game.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | Character::new(name.as_slice().trim().to_string(),1,100,100,true) [INFO] [stdout] | ^^^^^^^^ method not found in `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/game.rs:109:27 [INFO] [stdout] | [INFO] [stdout] 109 | let input = io::stdin().read_line().ok().expect("Failed to read option."); [INFO] [stdout] | ^^^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `trim` found for type `usize` in the current scope [INFO] [stdout] --> src/game.rs:110:15 [INFO] [stdout] | [INFO] [stdout] 110 | match input.trim().as_slice() { [INFO] [stdout] | ^^^^ method not found in `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/game.rs:135:26 [INFO] [stdout] | [INFO] [stdout] 135 | let input = io::stdin().read_line().ok().expect("Failed to read option."); [INFO] [stdout] | ^^^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `trim` found for type `usize` in the current scope [INFO] [stdout] --> src/game.rs:136:14 [INFO] [stdout] | [INFO] [stdout] 136 | match input.trim().as_slice() { [INFO] [stdout] | ^^^^ method not found in `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/game.rs:157:27 [INFO] [stdout] | [INFO] [stdout] 157 | let input = io::stdin().read_line().ok().expect("Failed to read option."); [INFO] [stdout] | ^^^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `trim` found for type `usize` in the current scope [INFO] [stdout] --> src/game.rs:158:15 [INFO] [stdout] | [INFO] [stdout] 158 | match input.trim().as_slice() { [INFO] [stdout] | ^^^^ method not found in `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 26 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0412, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `project` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `as_slice` found for type `usize` in the current scope [INFO] [stdout] --> src/game.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | Character::new(name.as_slice().trim().to_string(),1,100,100,true) [INFO] [stdout] | ^^^^^^^^ method not found in `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/game.rs:109:27 [INFO] [stdout] | [INFO] [stdout] 109 | let input = io::stdin().read_line().ok().expect("Failed to read option."); [INFO] [stdout] | ^^^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `trim` found for type `usize` in the current scope [INFO] [stdout] --> src/game.rs:110:15 [INFO] [stdout] | [INFO] [stdout] 110 | match input.trim().as_slice() { [INFO] [stdout] | ^^^^ method not found in `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/game.rs:135:26 [INFO] [stdout] | [INFO] [stdout] 135 | let input = io::stdin().read_line().ok().expect("Failed to read option."); [INFO] [stdout] | ^^^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `trim` found for type `usize` in the current scope [INFO] [stdout] --> src/game.rs:136:14 [INFO] [stdout] | [INFO] [stdout] 136 | match input.trim().as_slice() { [INFO] [stdout] | ^^^^ method not found in `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/game.rs:157:27 [INFO] [stdout] | [INFO] [stdout] 157 | let input = io::stdin().read_line().ok().expect("Failed to read option."); [INFO] [stdout] | ^^^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `trim` found for type `usize` in the current scope [INFO] [stdout] --> src/game.rs:158:15 [INFO] [stdout] | [INFO] [stdout] 158 | match input.trim().as_slice() { [INFO] [stdout] | ^^^^ method not found in `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 26 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0412, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "d53f77ff8a0351368c16b0fcf87dac2b3ce361edfbaef07b26ee67af72ef5482", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d53f77ff8a0351368c16b0fcf87dac2b3ce361edfbaef07b26ee67af72ef5482", kill_on_drop: false }` [INFO] [stdout] d53f77ff8a0351368c16b0fcf87dac2b3ce361edfbaef07b26ee67af72ef5482