[INFO] cloning repository https://github.com/khanra17/Rustlings
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/khanra17/Rustlings" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhanra17%2FRustlings", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhanra17%2FRustlings'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f491fd67ef52f360ceb3801a16ade543d28f962f
[INFO] testing khanra17/Rustlings against beta-2026-04-21 for beta-1.96-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhanra17%2FRustlings" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-4-tc2/source/.cargo/config.toml
[INFO] started tweaking git repo https://github.com/khanra17/Rustlings
[INFO] finished tweaking git repo https://github.com/khanra17/Rustlings
[INFO] tweaked toml for git repo https://github.com/khanra17/Rustlings written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/khanra17/Rustlings on toolchain beta-2026-04-21
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2026-04-21" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/khanra17/Rustlings 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" "+beta-2026-04-21" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
[INFO] [stderr]   |
[INFO] [stderr]   = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
[INFO] [stderr]   = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
[INFO] [stderr]   = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-04-21" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3c2b657d31f97f9479278b5ac711e36e6a809a15d48854657542dc1a727f64d3
[INFO] running `Command { std: "docker" "start" "-a" "3c2b657d31f97f9479278b5ac711e36e6a809a15d48854657542dc1a727f64d3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3c2b657d31f97f9479278b5ac711e36e6a809a15d48854657542dc1a727f64d3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3c2b657d31f97f9479278b5ac711e36e6a809a15d48854657542dc1a727f64d3", kill_on_drop: false }`
[INFO] [stdout] 3c2b657d31f97f9479278b5ac711e36e6a809a15d48854657542dc1a727f64d3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-04-21" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6d0ff9ec16110516ec97d2b6d1695182174c64ed6f126050b771b0ec3f5a2894
[INFO] running `Command { std: "docker" "start" "-a" "6d0ff9ec16110516ec97d2b6d1695182174c64ed6f126050b771b0ec3f5a2894", kill_on_drop: false }`
[INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
[INFO] [stderr]   |
[INFO] [stderr]   = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
[INFO] [stderr]   = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
[INFO] [stderr]   = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
[INFO] [stderr]    Compiling proc-macro2 v1.0.49
[INFO] [stderr]    Compiling quote v1.0.23
[INFO] [stderr]    Compiling unicode-ident v1.0.6
[INFO] [stderr]    Compiling syn v1.0.107
[INFO] [stderr]    Compiling serde_derive v1.0.151
[INFO] [stderr]    Compiling serde v1.0.151
[INFO] [stderr]    Compiling serde_json v1.0.91
[INFO] [stderr]    Compiling log v0.4.17
[INFO] [stderr]    Compiling itoa v1.0.5
[INFO] [stderr]    Compiling ryu v1.0.12
[INFO] [stderr]    Compiling escargot v0.5.7
[INFO] [stderr]    Compiling once_cell v1.16.0
[INFO] [stderr]    Compiling libc v0.2.139
[INFO] [stderr]    Compiling hello_macro v0.1.0 (/opt/rustwide/workdir/Macros/Procedural Macros/hello_macro)
[INFO] [stderr]    Compiling add_conditions v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Conditions/Add Conditions)
[INFO] [stderr]    Compiling try_from_into v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/Try From Into)
[INFO] [stderr]    Compiling using_as v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/Using As)
[INFO] [stdout] warning: unused import: `TryInto`
[INFO] [stdout]  --> Standard Library Types/Type Conversions/Try From Into/src/lib.rs:1:29
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::convert::{TryFrom, TryInto};
[INFO] [stdout]   |                             ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling loop_over_a_vector v0.1.0 (/opt/rustwide/workdir/Common Collections/Vectors/Loop Over a Vector)
[INFO] [stderr]    Compiling capitalize_first v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Iterators/Capitalize first)
[INFO] [stderr]    Compiling string_trait v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/String Trait)
[INFO] [stderr]    Compiling errors6 v0.1.0 (/opt/rustwide/workdir/Error Handling/Errors Primer/Custom Errors)
[INFO] [stderr]    Compiling build_team_scores_table v0.1.0 (/opt/rustwide/workdir/Common Collections/Hashmaps/Build Scores Table)
[INFO] [stderr]    Compiling license_it v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/License It)
[INFO] [stderr]    Compiling count_progress v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Iterators/Count Progress)
[INFO] [stderr]    Compiling string_transformer v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/String Transformer)
[INFO] [stderr]    Compiling loop_over_vector_with_iterators v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Iterators/Loop Over Vector With Iterators)
[INFO] [stderr]    Compiling home_alone v0.1.0 (/opt/rustwide/workdir/Modules/Modules/Home Alone at Day X)
[INFO] [stderr]    Compiling use_cow v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Use Cow)
[INFO] [stderr]    Compiling lamp_with_switchers v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Switch the Lamp)
[INFO] [stderr]    Compiling box_task v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Box Task)
[INFO] [stderr]    Compiling trim_a_string v0.1.0 (/opt/rustwide/workdir/Understanding Ownership/The Slice Type/Trim a String)
[INFO] [stderr]    Compiling advanced_errors v0.1.0 (/opt/rustwide/workdir/Error Handling/Errors Primer/Advanced Errors)
[INFO] [stderr]    Compiling asref_and_asmut v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/AsRef and AsMut)
[INFO] [stderr]    Compiling errors5 v0.1.0 (/opt/rustwide/workdir/Error Handling/Errors Primer/Multiple Errors)
[INFO] [stderr]    Compiling from_into v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/From Into)
[INFO] [stderr]    Compiling fromstr v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/FromStr)
[INFO] [stderr]    Compiling combine_traits v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Combine Traits)
[INFO] [stderr]    Compiling vec_trait v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Vec Trait)
[INFO] [stderr]    Compiling count_typed_cells v0.1.0 (/opt/rustwide/workdir/Common Collections/Vectors/Count Typed Cells)
[INFO] [stderr]    Compiling compare_licenses v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Compare Licenses)
[INFO] [stderr]    Compiling declaring_a_vector v0.1.0 (/opt/rustwide/workdir/Common Collections/Vectors/Create a Vector on Your Own)
[INFO] [stderr]    Compiling workers_in_the_engine v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Workers in the Engine)
[INFO] [stderr]    Compiling modifying_a_hashmap v0.1.0 (/opt/rustwide/workdir/Common Collections/Hashmaps/More Fruits)
[INFO] [stdout] warning: unused import: `ParseInt`
[INFO] [stdout]  --> Standard Library Types/Type Conversions/FromStr/src/lib.rs:4:54
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::ParsePersonError::{BadLen, Empty, NoName, ParseInt};
[INFO] [stdout]   |                                                      ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling declaring_a_hashmap v0.1.0 (/opt/rustwide/workdir/Common Collections/Hashmaps/Fruits Delivery)
[INFO] [stderr]    Compiling trait_bound_syntax v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Trait Bound Syntax)
[INFO] [stderr]    Compiling process_some_strings v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/Process Some Strings)
[INFO] [stderr]    Compiling advanced_errors_2 v0.1.0 (/opt/rustwide/workdir/Error Handling/Errors Primer/Advanced Errors 2)
[INFO] [stderr]    Compiling generics_in_structs v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Generic Data Types/Generics in Structs)
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> Error Handling/Errors Primer/Advanced Errors 2/src/lib.rs:49:13
[INFO] [stdout]    |
[INFO] [stdout] 49 |             _ => write!(f, "unhandled error!"),
[INFO] [stdout]    |             ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]   --> Error Handling/Errors Primer/Advanced Errors 2/src/lib.rs:49:13
[INFO] [stdout]    |
[INFO] [stdout] 44 |             NoCity => write!(f, "no city name"),
[INFO] [stdout]    |             ------ matches some of the same values
[INFO] [stdout] 45 |             Empty => write!(f, "empty input"),
[INFO] [stdout]    |             ----- matches some of the same values
[INFO] [stdout] 46 |             BadLen => write!(f, "incorrect number of fields"),
[INFO] [stdout]    |             ------ matches some of the same values
[INFO] [stdout] 47 |             ParseFloat(e) => write!(f, "error parsing temperature: {}", e),
[INFO] [stdout]    |             ------------- matches some of the same values
[INFO] [stdout] 48 |             ParseInt(e) => write!(f, "error parsing year: {}", e),
[INFO] [stdout] 49 |             _ => write!(f, "unhandled error!"),
[INFO] [stdout]    |             ^ ...and 1 other patterns collectively make this unreachable
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::num::ParseIntError`
[INFO] [stdout]  --> Error Handling/Errors Primer/Multiple Errors/src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::num::ParseIntError;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling variables6 v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/Constant Type)
[INFO] [stderr]    Compiling summary_strings v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/Summary)
[INFO] [stderr]    Compiling getrandom v0.2.8
[INFO] [stderr]    Compiling intro v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/Intro)
[INFO] [stderr]    Compiling the_option_enum v0.1.0 (/opt/rustwide/workdir/Structs, Methods, Enums, and Pattern Matching/Enums/The Option Enum)
[INFO] [stderr]    Compiling if_let v0.1.0 (/opt/rustwide/workdir/Structs, Methods, Enums, and Pattern Matching/Pattern Matching/If Let)
[INFO] [stderr]    Compiling indexing_into_strings v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/Indexing into Strings)
[INFO] [stderr]    Compiling sharing_a_mutex_between_multiple_threads v0.1.0 (/opt/rustwide/workdir/Fearless Concurrency/Shared-State Concurrency/Sharing a Mutex Between Multiple Threads)
[INFO] [stderr]    Compiling summary_match v0.1.0 (/opt/rustwide/workdir/Structs, Methods, Enums, and Pattern Matching/Pattern Matching/Summary)
[INFO] [stderr]    Compiling matching_result v0.1.0 (/opt/rustwide/workdir/Error Handling/Error Handling/Matching Result)
[INFO] [stderr]    Compiling returning_a_string v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/Return a String)
[INFO] [stderr]    Compiling borrowing_values_with_references v0.1.0 (/opt/rustwide/workdir/Understanding Ownership/References and Borrowing/Borrowing Values with References)
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> Structs, Methods, Enums, and Pattern Matching/Enums/The Option Enum/src/main.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let x: i8 = 5;
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]   --> Structs, Methods, Enums, and Pattern Matching/Enums/The Option Enum/src/main.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let y: Option<i8> = Some(5);
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `count` is assigned to, but never used
[INFO] [stdout]   --> Structs, Methods, Enums, and Pattern Matching/Pattern Matching/If Let/src/main.rs:21:9
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let mut count = 0;
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: consider using `_count` instead
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `count` is never read
[INFO] [stdout]   --> Structs, Methods, Enums, and Pattern Matching/Pattern Matching/If Let/src/main.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |         count += 1;
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Alabama` and `Alaska` are never constructed
[INFO] [stdout]  --> Structs, Methods, Enums, and Pattern Matching/Pattern Matching/If Let/src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | enum UsState {
[INFO] [stdout]   |      ------- variants in this enum
[INFO] [stdout] 3 |     Alabama,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 4 |     Alaska,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Quarter` are never constructed
[INFO] [stdout]   --> Structs, Methods, Enums, and Pattern Matching/Pattern Matching/If Let/src/main.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout]  8 | enum Coin {
[INFO] [stdout]    |      ---- variants in this enum
[INFO] [stdout]  9 |     Penny,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 10 |     Nickel,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 11 |     Dime,
[INFO] [stdout] 12 |     Quarter(UsState),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `{integer}`
[INFO] [stdout]  --> Common Collections/Strings/Indexing into Strings/src/main.rs:4:16
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let h = s1[0];
[INFO] [stdout]   |                ^ string indices are ranges of `usize`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `SliceIndex<str>` is not implemented for `{integer}`
[INFO] [stdout]   = note: you can use `.chars().nth()` or `.bytes().nth()`
[INFO] [stdout]           for more information, see chapter 8 in The Book: <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings>
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]  --> /rustc/8489f1adbe1c8f8921cf18b9962cf565237a5489/library/core/src/slice/index.rs:214:0
[INFO] [stdout]   |
[INFO] [stdout]   = note: `SliceIndex<[T]>`
[INFO] [stdout]  --> /rustc/8489f1adbe1c8f8921cf18b9962cf565237a5489/library/core/src/bstr/traits.rs:197:0
[INFO] [stdout]   |
[INFO] [stdout]   = note: `SliceIndex<ByteStr>`
[INFO] [stdout]   = note: required for `String` to implement `Index<{integer}>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `indexing_into_strings` (bin "indexing_into_strings") due to 1 previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0382]: borrow of moved value: `counter`
[INFO] [stdout]   --> Fearless Concurrency/Shared-State Concurrency/Sharing a Mutex Between Multiple Threads/src/main.rs:22:29
[INFO] [stdout]    |
[INFO] [stdout]  5 |     let counter = Mutex::new(0);
[INFO] [stdout]    |         ------- move occurs because `counter` has type `std::sync::Mutex<i32>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout]  8 |     for _ in 0..10 {
[INFO] [stdout]    |     -------------- inside of this loop
[INFO] [stdout]  9 |         // !!! ERROR: we shouldn't move mutex to the closure
[INFO] [stdout] 10 |         let handle = thread::spawn(move || {
[INFO] [stdout]    |                                    ------- value moved into closure here, in previous iteration of loop
[INFO] [stdout] ...
[INFO] [stdout] 22 |     println!("Result: {}", *counter.lock().unwrap());
[INFO] [stdout]    |                             ^^^^^^^ value borrowed here after move
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `sharing_a_mutex_between_multiple_threads` (bin "sharing_a_mutex_between_multiple_threads") due to 1 previous error
[INFO] running `Command { std: "docker" "inspect" "6d0ff9ec16110516ec97d2b6d1695182174c64ed6f126050b771b0ec3f5a2894", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6d0ff9ec16110516ec97d2b6d1695182174c64ed6f126050b771b0ec3f5a2894", kill_on_drop: false }`
[INFO] [stdout] 6d0ff9ec16110516ec97d2b6d1695182174c64ed6f126050b771b0ec3f5a2894
