[INFO] cloning repository https://github.com/DerFetzer/in-code-we-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DerFetzer/in-code-we-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDerFetzer%2Fin-code-we-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDerFetzer%2Fin-code-we-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f7b67a86f4eae9010f73a979648f5c52e5aec5fb [INFO] checking DerFetzer/in-code-we-rust/f7b67a86f4eae9010f73a979648f5c52e5aec5fb against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDerFetzer%2Fin-code-we-rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/DerFetzer/in-code-we-rust on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-7-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/DerFetzer/in-code-we-rust [INFO] finished tweaking git repo https://github.com/DerFetzer/in-code-we-rust [INFO] tweaked toml for git repo https://github.com/DerFetzer/in-code-we-rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/DerFetzer/in-code-we-rust 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded arboard v3.3.2 [INFO] [stderr] Downloaded egui_extras v0.24.2 [INFO] [stderr] Downloaded console-subscriber v0.2.0 [INFO] [stderr] Downloaded event-listener v5.2.0 [INFO] [stderr] Downloaded console-api v0.6.0 [INFO] [stderr] Downloaded clipboard-win v5.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4282406095dfaa4f4bfc99138f09d37709781fd7f86cf5d5e4fcd74be5d1ff35 [INFO] running `Command { std: "docker" "start" "-a" "4282406095dfaa4f4bfc99138f09d37709781fd7f86cf5d5e4fcd74be5d1ff35", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4282406095dfaa4f4bfc99138f09d37709781fd7f86cf5d5e4fcd74be5d1ff35", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4282406095dfaa4f4bfc99138f09d37709781fd7f86cf5d5e4fcd74be5d1ff35", kill_on_drop: false }` [INFO] [stdout] 4282406095dfaa4f4bfc99138f09d37709781fd7f86cf5d5e4fcd74be5d1ff35 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 61223cb9e11af92e720f756d2b43c461a868228522fb926e7b86194b2acad89f [INFO] running `Command { std: "docker" "start" "-a" "61223cb9e11af92e720f756d2b43c461a868228522fb926e7b86194b2acad89f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking bitflags v2.4.2 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Compiling async-trait v0.1.77 [INFO] [stderr] Checking concurrent-queue v2.4.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling openssl-sys v0.9.101 [INFO] [stderr] Checking indexmap v2.2.5 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling toml_datetime v0.6.5 [INFO] [stderr] Checking event-listener v4.0.3 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking event-listener-strategy v0.4.0 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking event-listener v5.2.0 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking fastrand v2.0.1 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Checking event-listener-strategy v0.5.0 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Checking async-lock v3.3.0 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking futures-lite v2.2.0 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Checking async-task v4.7.0 [INFO] [stderr] Checking waker-fn v1.1.1 [INFO] [stderr] Checking piper v0.2.1 [INFO] [stderr] Checking futures-lite v1.13.0 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Checking async-channel v2.2.0 [INFO] [stderr] Checking io-lifetimes v1.0.11 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling async-fs v1.6.0 [INFO] [stderr] Compiling zvariant_utils v1.0.1 [INFO] [stderr] Checking rustix v0.37.27 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking nix v0.26.4 [INFO] [stderr] Checking async-executor v1.8.0 [INFO] [stderr] Checking async-broadcast v0.5.1 [INFO] [stderr] Checking nix v0.25.1 [INFO] [stderr] Checking xdg-home v1.1.0 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling bytemuck_derive v1.6.0 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling enumflags2_derive v0.7.9 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking bytemuck v1.15.0 [INFO] [stderr] Compiling zvariant_derive v3.15.2 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Checking blocking v1.5.1 [INFO] [stderr] Compiling regex v1.10.3 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling async-recursion v1.0.5 [INFO] [stderr] Compiling zbus_macros v3.15.2 [INFO] [stderr] Checking thiserror v1.0.58 [INFO] [stderr] Compiling serde_repr v0.1.18 [INFO] [stderr] Compiling enumn v0.1.13 [INFO] [stderr] Checking ordered-stream v0.2.0 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Checking calloop v0.10.6 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Checking rayon v1.9.0 [INFO] [stderr] Compiling anyhow v1.0.81 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Checking tiny-skia-path v0.8.4 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking h2 v0.3.24 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Checking strsim v0.11.0 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking tiny-skia v0.8.4 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Compiling clap_derive v4.5.0 [INFO] [stderr] Compiling prost-derive v0.12.3 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking enumflags2 v0.7.9 [INFO] [stderr] Checking zvariant v3.15.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking accesskit v0.12.3 [INFO] [stderr] Checking ecolor v0.24.1 [INFO] [stderr] Checking emath v0.24.1 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking indexmap v1.9.3 [INFO] [stderr] Checking zbus_names v2.6.1 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Compiling winit v0.28.7 [INFO] [stderr] Compiling rustix v0.38.31 [INFO] [stderr] Checking zbus v3.15.2 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking clap v4.5.2 [INFO] [stderr] Checking epaint v0.24.1 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking prost v0.12.3 [INFO] [stderr] Checking tokio-io-timeout v1.2.0 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling glutin_glx_sys v0.4.0 [INFO] [stderr] Compiling glutin_egl_sys v0.5.1 [INFO] [stderr] Compiling wayland-sys v0.30.1 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Compiling assert_cmd v2.0.14 [INFO] [stderr] Checking smithay-client-toolkit v0.16.1 [INFO] [stderr] Checking egui v0.24.1 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Checking predicates v3.1.0 [INFO] [stderr] Checking reqwest v0.11.26 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking accesskit_consumer v0.16.1 [INFO] [stderr] Checking tokio-stream v0.1.14 [INFO] [stderr] Compiling glutin v0.30.10 [INFO] [stderr] Checking bstr v1.9.1 [INFO] [stderr] Compiling backtrace v0.3.69 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking sctk-adwaita v0.5.4 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Checking async-once-cell v0.5.3 [INFO] [stderr] Checking x11rb-protocol v0.13.0 [INFO] [stderr] Checking addr2line v0.21.0 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling mime_guess2 v2.0.5 [INFO] [stderr] Checking atspi-common v0.3.0 [INFO] [stderr] Checking tracing-error v0.2.0 [INFO] [stderr] Checking prost-types v0.12.3 [INFO] [stderr] Compiling glutin-winit v0.3.0 [INFO] [stderr] Checking object v0.32.2 [INFO] [stderr] Checking owo-colors v3.5.0 [INFO] [stderr] Checking home v0.5.9 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Checking exercise-02 v0.1.0 (/opt/rustwide/workdir/crates/exercise-02) [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Checking webbrowser v0.8.13 [INFO] [stderr] Checking hdrhistogram v7.5.4 [INFO] [stderr] Checking tonic v0.10.2 [INFO] [stderr] Checking smithay-clipboard v0.6.6 [INFO] [stderr] Checking color-spantrace v0.2.1 [INFO] [stderr] Compiling enum-map-derive v0.17.0 [INFO] [stderr] Checking crossbeam-channel v0.5.12 [INFO] [stderr] Checking web-time v0.2.4 [INFO] [stderr] Checking egui_glow v0.24.1 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Checking enum-map v2.7.3 [INFO] [stderr] Checking exercise-04 v0.1.0 (/opt/rustwide/workdir/crates/exercise-04) [INFO] [stderr] Checking x11rb v0.13.0 [INFO] [stderr] Checking exercise-03 v0.1.0 (/opt/rustwide/workdir/crates/exercise-03) [INFO] [stdout] warning: unused variable: `book` [INFO] [stdout] --> crates/exercise-03/src/lib.rs:28:34 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn fill_stock(&mut self, book: Book, amount: u32) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_book` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> crates/exercise-03/src/lib.rs:28:46 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn fill_stock(&mut self, book: Book, amount: u32) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `book` [INFO] [stdout] --> crates/exercise-03/src/lib.rs:33:28 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn lend(&mut self, book: &Book) -> Result<(), LibraryError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `book` [INFO] [stdout] --> crates/exercise-03/src/lib.rs:38:33 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn take_back(&mut self, book: &Book) -> Result<(), LibraryError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `book` [INFO] [stdout] --> crates/exercise-03/src/lib.rs:43:38 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn get_overall_amount(&self, book: &Book) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `book` [INFO] [stdout] --> crates/exercise-03/src/lib.rs:48:35 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn get_lent_amount(&self, book: &Book) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_book` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking exercise-01 v0.1.0 (/opt/rustwide/workdir/crates/exercise-01) [INFO] [stdout] warning: fields `overall` and `lent` are never read [INFO] [stdout] --> crates/exercise-03/src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct Stock { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 12 | overall: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | lent: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stock` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stock` is never read [INFO] [stdout] --> crates/exercise-03/src/lib.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Library { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 23 | stock: HashMap, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking egui_extras v0.24.2 [INFO] [stderr] Checking console-api v0.6.0 [INFO] [stdout] error[E0505]: cannot move out of `decorated_cake` because it is borrowed [INFO] [stdout] --> crates/exercise-02/src/bin/b04.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 16 | let decorated_cake = baked_cake [INFO] [stdout] | -------------- binding `decorated_cake` declared here [INFO] [stdout] ... [INFO] [stdout] 22 | let first_ingredient = decorated_cake.get_ingredients().first().unwrap(); [INFO] [stdout] | -------------- borrow of `decorated_cake` occurs here [INFO] [stdout] 23 | [INFO] [stdout] 24 | decorated_cake.eat(); [INFO] [stdout] | ^^^^^^^^^^^^^^ move out of `decorated_cake` occurs here [INFO] [stdout] 25 | [INFO] [stdout] 26 | println!("The first ingredient was: {first_ingredient}"); [INFO] [stdout] | ------------------ borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercise-02` (bin "b04" test) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0382]: borrow of moved value: `flour` [INFO] [stdout] --> crates/exercise-02/src/bin/b02.rs:15:40 [INFO] [stdout] | [INFO] [stdout] 6 | let flour = "Flour".to_string(); [INFO] [stdout] | ----- move occurs because `flour` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 11 | .add_ingredient(flour) [INFO] [stdout] | ----- value moved here [INFO] [stdout] ... [INFO] [stdout] 15 | println!("Ingredients in the cake: {flour} {eggs} {sugar}"); [INFO] [stdout] | ^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 11 | .add_ingredient(flour.clone()) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `eggs` [INFO] [stdout] --> crates/exercise-02/src/bin/b02.rs:15:48 [INFO] [stdout] | [INFO] [stdout] 7 | let eggs = "Eggs".to_string(); [INFO] [stdout] | ---- move occurs because `eggs` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 12 | .add_ingredient(eggs) [INFO] [stdout] | ---- value moved here [INFO] [stdout] ... [INFO] [stdout] 15 | println!("Ingredients in the cake: {flour} {eggs} {sugar}"); [INFO] [stdout] | ^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 12 | .add_ingredient(eggs.clone()) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `sugar` [INFO] [stdout] --> crates/exercise-02/src/bin/b02.rs:15:55 [INFO] [stdout] | [INFO] [stdout] 8 | let sugar = "Sugar".to_string(); [INFO] [stdout] | ----- move occurs because `sugar` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 13 | .add_ingredient(sugar); [INFO] [stdout] | ----- value moved here [INFO] [stdout] 14 | [INFO] [stdout] 15 | println!("Ingredients in the cake: {flour} {eggs} {sugar}"); [INFO] [stdout] | ^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 13 | .add_ingredient(sugar.clone()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercise-02` (bin "b02" test) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "61223cb9e11af92e720f756d2b43c461a868228522fb926e7b86194b2acad89f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61223cb9e11af92e720f756d2b43c461a868228522fb926e7b86194b2acad89f", kill_on_drop: false }` [INFO] [stdout] 61223cb9e11af92e720f756d2b43c461a868228522fb926e7b86194b2acad89f