[INFO] cloning repository https://github.com/jfeldman325/Rust-Learning-Examples [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jfeldman325/Rust-Learning-Examples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjfeldman325%2FRust-Learning-Examples", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjfeldman325%2FRust-Learning-Examples'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b32ce13aa45e32e6b5473a7ae44a9897c30e6af0 [INFO] checking jfeldman325/Rust-Learning-Examples against master#dfd7b8d03fb93d0e03147d28b3be6d93260fa94d for pr-87050 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjfeldman325%2FRust-Learning-Examples" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jfeldman325/Rust-Learning-Examples on toolchain dfd7b8d03fb93d0e03147d28b3be6d93260fa94d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+dfd7b8d03fb93d0e03147d28b3be6d93260fa94d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jfeldman325/Rust-Learning-Examples [INFO] finished tweaking git repo https://github.com/jfeldman325/Rust-Learning-Examples [INFO] tweaked toml for git repo https://github.com/jfeldman325/Rust-Learning-Examples written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/jfeldman325/Rust-Learning-Examples already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+dfd7b8d03fb93d0e03147d28b3be6d93260fa94d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+dfd7b8d03fb93d0e03147d28b3be6d93260fa94d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 820676c9db2fecdf35e7d7ee6b6af8e643b07ae0f7e5a14fe04d80aedcaf997e [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" "820676c9db2fecdf35e7d7ee6b6af8e643b07ae0f7e5a14fe04d80aedcaf997e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "820676c9db2fecdf35e7d7ee6b6af8e643b07ae0f7e5a14fe04d80aedcaf997e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "820676c9db2fecdf35e7d7ee6b6af8e643b07ae0f7e5a14fe04d80aedcaf997e", kill_on_drop: false }` [INFO] [stdout] 820676c9db2fecdf35e7d7ee6b6af8e643b07ae0f7e5a14fe04d80aedcaf997e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+dfd7b8d03fb93d0e03147d28b3be6d93260fa94d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] dbfd68c20bb53d71b74ec99c49bc93e0519efb6b8e3676483907893bb5125bf9 [INFO] running `Command { std: "docker" "start" "-a" "dbfd68c20bb53d71b74ec99c49bc93e0519efb6b8e3676483907893bb5125bf9", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling proc-macro2 v1.0.9 [INFO] [stderr] Compiling ryu v1.0.3 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling syn v1.0.16 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking regex-syntax v0.6.17 [INFO] [stderr] Checking minigrep v0.1.0 (/opt/rustwide/workdir/minigrep) [INFO] [stderr] Checking traits v0.1.0 (/opt/rustwide/workdir/traits) [INFO] [stderr] Checking smart_pointers v0.1.0 (/opt/rustwide/workdir/smart_pointers) [INFO] [stderr] Checking functions v0.1.0 (/opt/rustwide/workdir/functions) [INFO] [stderr] Checking collections v0.1.0 (/opt/rustwide/workdir/collections) [INFO] [stdout] warning: unused variable: `tweet` [INFO] [stdout] --> traits/src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let tweet = Tweet { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tweet` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> traits/src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | &self.summarize()[0..4] [INFO] [stdout] | ^----------------^^^^^^ [INFO] [stdout] | || [INFO] [stdout] | |temporary value created here [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `traits` [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] warning: type `Rc_List` should have an upper camel case name [INFO] [stdout] --> smart_pointers/src/main.rs:68:6 [INFO] [stdout] | [INFO] [stdout] 68 | enum Rc_List { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `RcList` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Rc_Cons` should have an upper camel case name [INFO] [stdout] --> smart_pointers/src/main.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | Rc_Cons(RefCell, Rc), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `RcCons` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Rc_Nil` should have an upper camel case name [INFO] [stdout] --> smart_pointers/src/main.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | Rc_Nil, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `RcNil` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> smart_pointers/src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let list = Cons(1, Box::new(Cons(2, Box::new(Cons(3, Box::new(Nil)))))); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> smart_pointers/src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> smart_pointers/src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let b = Cons(3, Box::new(a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b_rc` [INFO] [stdout] --> smart_pointers/src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let b_rc = Rc_Cons(RefCell::new(3), Rc::clone(&a_rc)); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_b_rc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c_rc` [INFO] [stdout] --> smart_pointers/src/main.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let c_rc = Rc_Cons(RefCell::new(4), Rc::clone(&a_rc)); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_c_rc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> smart_pointers/src/main.rs:55:24 [INFO] [stdout] | [INFO] [stdout] 55 | Rc_Cons(value, list) => *value.borrow_mut() += 10, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> collections/src/main.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread`, `time` [INFO] [stdout] --> collections/src/main.rs:117:11 [INFO] [stdout] | [INFO] [stdout] 117 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Slayer` is named the same as one of the variants of the type `GameType` [INFO] [stdout] --> collections/src/main.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | Slayer => Lobby { [INFO] [stdout] | ^^^^^^ help: to match on the variant, qualify the path: `GameType::Slayer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `BigTeamBattles` is named the same as one of the variants of the type `GameType` [INFO] [stdout] --> collections/src/main.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | BigTeamBattles => Lobby { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `GameType::BigTeamBattles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `L33t` is named the same as one of the variants of the type `GameType` [INFO] [stdout] --> collections/src/main.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | L33t => Lobby { [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `GameType::L33t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> collections/src/main.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 85 | Slayer => Lobby { [INFO] [stdout] | ------ matches any value [INFO] [stdout] ... [INFO] [stdout] 91 | BigTeamBattles => Lobby { [INFO] [stdout] | ^^^^^^^^^^^^^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> collections/src/main.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 85 | Slayer => Lobby { [INFO] [stdout] | ------ matches any value [INFO] [stdout] ... [INFO] [stdout] 97 | L33t => Lobby { [INFO] [stdout] | ^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_team` [INFO] [stdout] --> collections/src/main.rs:132:25 [INFO] [stdout] | [INFO] [stdout] 132 | let mut new_team = Team::new(&mut new_player); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_team` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `final_copy` [INFO] [stdout] --> collections/src/main.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | let mut final_copy = &latest[0..=33]; //When the CEO want's something pithier not [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_copy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> collections/src/main.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | fn add_player(&mut self, player: &Player) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Slayer` [INFO] [stdout] --> collections/src/main.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | Slayer => Lobby { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_Slayer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `BigTeamBattles` [INFO] [stdout] --> collections/src/main.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | BigTeamBattles => Lobby { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_BigTeamBattles` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `L33t` [INFO] [stdout] --> collections/src/main.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | L33t => Lobby { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_L33t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> collections/src/main.rs:16:33 [INFO] [stdout] | [INFO] [stdout] 16 | for (index, &player) in self.players.iter().enumerate() { [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider borrowing the `Option`'s content: `self.players.iter().enumerate().as_ref()` [INFO] [stdout] | | [INFO] [stdout] | data moved here [INFO] [stdout] | move occurs because `player` has type `Option<&mut Player<'_>>`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `self.players[_]` because it is borrowed [INFO] [stdout] --> collections/src/main.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 16 | for (index, &player) in self.players.iter().enumerate() { [INFO] [stdout] | ------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrow of `self.players[_]` occurs here [INFO] [stdout] | borrow later used here [INFO] [stdout] 17 | match &player { [INFO] [stdout] 18 | None => self.players[index] = player, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ assignment to borrowed `self.players[_]` occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Option<&mut Player<'_>>: Copy` is not satisfied [INFO] [stdout] --> collections/src/main.rs:33:27 [INFO] [stdout] | [INFO] [stdout] 33 | let mut players = [None; 32]; [INFO] [stdout] | ^^^^^^^^^^ the trait `Copy` is not implemented for `Option<&mut Player<'_>>` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] as Copy> [INFO] [stdout] = note: the `Copy` trait is required because the repeated element will be copied [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `game_type` [INFO] [stdout] --> collections/src/main.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 83 | fn new(game_type: GameType) -> Lobby<'static> { [INFO] [stdout] | --------- move occurs because `game_type` has type `GameType`, which does not implement the `Copy` trait [INFO] [stdout] 84 | match game_type { [INFO] [stdout] 85 | Slayer => Lobby { [INFO] [stdout] | ------ value moved here [INFO] [stdout] 86 | game_type, [INFO] [stdout] | ^^^^^^^^^ value used here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `game_type` [INFO] [stdout] --> collections/src/main.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 83 | fn new(game_type: GameType) -> Lobby<'static> { [INFO] [stdout] | --------- move occurs because `game_type` has type `GameType`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 91 | BigTeamBattles => Lobby { [INFO] [stdout] | -------------- value moved here [INFO] [stdout] 92 | game_type, [INFO] [stdout] | ^^^^^^^^^ value used here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `game_type` [INFO] [stdout] --> collections/src/main.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 83 | fn new(game_type: GameType) -> Lobby<'static> { [INFO] [stdout] | --------- move occurs because `game_type` has type `GameType`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 97 | L33t => Lobby { [INFO] [stdout] | ---- value moved here [INFO] [stdout] 98 | game_type, [INFO] [stdout] | ^^^^^^^^^ value used here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> collections/src/main.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | let mut new_team = Team::new(&mut new_player); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*team` as mutable, as it is behind a `&` reference [INFO] [stdout] --> collections/src/main.rs:128:22 [INFO] [stdout] | [INFO] [stdout] 128 | &team.add_player(&mut new_player); [INFO] [stdout] | ^^^^ `team` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `new_player` as mutable more than once at a time [INFO] [stdout] --> collections/src/main.rs:128:38 [INFO] [stdout] | [INFO] [stdout] 128 | &team.add_player(&mut new_player); [INFO] [stdout] | ^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 132 | let mut new_team = Team::new(&mut new_player); [INFO] [stdout] | -------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `new_player` is borrowed for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `new_player` as mutable more than once at a time [INFO] [stdout] --> collections/src/main.rs:132:46 [INFO] [stdout] | [INFO] [stdout] 132 | let mut new_team = Team::new(&mut new_player); [INFO] [stdout] | ----------^^^^^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | `new_player` was mutably borrowed here in the previous iteration of the loop [INFO] [stdout] | argument requires that `new_player` is borrowed for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> collections/src/main.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | let mut final_copy = &latest[0..=33]; //When the CEO want's something pithier not [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0170, E0277, E0382, E0499, E0506, E0507, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "dbfd68c20bb53d71b74ec99c49bc93e0519efb6b8e3676483907893bb5125bf9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbfd68c20bb53d71b74ec99c49bc93e0519efb6b8e3676483907893bb5125bf9", kill_on_drop: false }` [INFO] [stdout] dbfd68c20bb53d71b74ec99c49bc93e0519efb6b8e3676483907893bb5125bf9