[INFO] cloning repository https://github.com/TaeKyungg2/Rust_learn_codelab [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TaeKyungg2/Rust_learn_codelab" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTaeKyungg2%2FRust_learn_codelab", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTaeKyungg2%2FRust_learn_codelab'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1ac13b3e7442555f0f1dab3953e7f2a7c7eb4442 [INFO] testing TaeKyungg2/Rust_learn_codelab against try#028592fec99e54cc92def5a2a849c673b066dd93 for pr-146098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTaeKyungg2%2FRust_learn_codelab" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 57% (9563/16557) Updating files: 58% (9604/16557) Updating files: 59% (9769/16557) Updating files: 60% (9935/16557) Updating files: 61% (10100/16557) Updating files: 62% (10266/16557) Updating files: 63% (10431/16557) Updating files: 64% (10597/16557) Updating files: 65% (10763/16557) Updating files: 66% (10928/16557) Updating files: 67% (11094/16557) Updating files: 68% (11259/16557) Updating files: 69% (11425/16557) Updating files: 70% (11590/16557) Updating files: 71% (11756/16557) Updating files: 72% (11922/16557) Updating files: 73% (12087/16557) Updating files: 74% (12253/16557) Updating files: 75% (12418/16557) Updating files: 76% (12584/16557) Updating files: 77% (12749/16557) Updating files: 78% (12915/16557) Updating files: 79% (13081/16557) Updating files: 80% (13246/16557) Updating files: 81% (13412/16557) Updating files: 82% (13577/16557) Updating files: 83% (13743/16557) Updating files: 84% (13908/16557) Updating files: 85% (14074/16557) Updating files: 86% (14240/16557) Updating files: 87% (14405/16557) Updating files: 88% (14571/16557) Updating files: 89% (14736/16557) Updating files: 90% (14902/16557) Updating files: 91% (15067/16557) Updating files: 92% (15233/16557) Updating files: 93% (15399/16557) Updating files: 94% (15564/16557) Updating files: 95% (15730/16557) Updating files: 96% (15895/16557) Updating files: 97% (16061/16557) Updating files: 98% (16226/16557) Updating files: 99% (16392/16557) Updating files: 99% (16547/16557) Updating files: 100% (16557/16557) Updating files: 100% (16557/16557), done. [INFO] removed /workspace/builds/worker-3-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/TaeKyungg2/Rust_learn_codelab [INFO] finished tweaking git repo https://github.com/TaeKyungg2/Rust_learn_codelab [INFO] tweaked toml for git repo https://github.com/TaeKyungg2/Rust_learn_codelab written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/TaeKyungg2/Rust_learn_codelab on toolchain 028592fec99e54cc92def5a2a849c673b066dd93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/TaeKyungg2/Rust_learn_codelab 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" "+028592fec99e54cc92def5a2a849c673b066dd93" "fetch" "--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 [ERROR] error running command: no output for 300 seconds [INFO] testing TaeKyungg2/Rust_learn_codelab against try#028592fec99e54cc92def5a2a849c673b066dd93 for pr-146098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTaeKyungg2%2FRust_learn_codelab" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 56% (9312/16557) Updating files: 57% (9438/16557) Updating files: 58% (9604/16557) Updating files: 59% (9769/16557) Updating files: 60% (9935/16557) Updating files: 61% (10100/16557) Updating files: 62% (10266/16557) Updating files: 63% (10431/16557) Updating files: 64% (10597/16557) Updating files: 65% (10763/16557) Updating files: 66% (10928/16557) Updating files: 67% (11094/16557) Updating files: 68% (11259/16557) Updating files: 69% (11425/16557) Updating files: 70% (11590/16557) Updating files: 71% (11756/16557) Updating files: 72% (11922/16557) Updating files: 73% (12087/16557) Updating files: 74% (12253/16557) Updating files: 75% (12418/16557) Updating files: 76% (12584/16557) Updating files: 77% (12749/16557) Updating files: 78% (12915/16557) Updating files: 79% (13081/16557) Updating files: 80% (13246/16557) Updating files: 81% (13412/16557) Updating files: 82% (13577/16557) Updating files: 83% (13743/16557) Updating files: 84% (13908/16557) Updating files: 85% (14074/16557) Updating files: 86% (14240/16557) Updating files: 87% (14405/16557) Updating files: 88% (14571/16557) Updating files: 89% (14736/16557) Updating files: 90% (14902/16557) Updating files: 91% (15067/16557) Updating files: 92% (15233/16557) Updating files: 93% (15399/16557) Updating files: 94% (15564/16557) Updating files: 95% (15730/16557) Updating files: 96% (15895/16557) Updating files: 97% (16061/16557) Updating files: 97% (16211/16557) Updating files: 98% (16226/16557) Updating files: 99% (16392/16557) Updating files: 100% (16557/16557) Updating files: 100% (16557/16557), done. [INFO] removed /workspace/builds/worker-3-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/TaeKyungg2/Rust_learn_codelab [INFO] finished tweaking git repo https://github.com/TaeKyungg2/Rust_learn_codelab [INFO] tweaked toml for git repo https://github.com/TaeKyungg2/Rust_learn_codelab written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/TaeKyungg2/Rust_learn_codelab on toolchain 028592fec99e54cc92def5a2a849c673b066dd93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/TaeKyungg2/Rust_learn_codelab 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" "+028592fec99e54cc92def5a2a849c673b066dd93" "fetch" "--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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded escargot v0.5.15 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 270f296ce4d970ba88daa307523ffa342abcce9be322e4c2b6677527a9beaf58 [INFO] running `Command { std: "docker" "start" "-a" "270f296ce4d970ba88daa307523ffa342abcce9be322e4c2b6677527a9beaf58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "270f296ce4d970ba88daa307523ffa342abcce9be322e4c2b6677527a9beaf58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "270f296ce4d970ba88daa307523ffa342abcce9be322e4c2b6677527a9beaf58", kill_on_drop: false }` [INFO] [stdout] 270f296ce4d970ba88daa307523ffa342abcce9be322e4c2b6677527a9beaf58 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8fc247df4f0c046710a6a5e33a09b5778157d3b256fbde83da36159d94fd9157 [INFO] running `Command { std: "docker" "start" "-a" "8fc247df4f0c046710a6a5e33a09b5778157d3b256fbde83da36159d94fd9157", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling escargot v0.5.15 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling hello_macro v0.1.0 (/opt/rustwide/workdir/Macros/Procedural Macros/hello_macro) [INFO] [stderr] Compiling string_transformer v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/String Transformer) [INFO] [stderr] Compiling advanced_errors_2 v0.1.0 (/opt/rustwide/workdir/Error Handling/Errors Primer/Advanced Errors 2) [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 asref_and_asmut v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/AsRef and AsMut) [INFO] [stderr] Compiling use_cow v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Use Cow) [INFO] [stderr] Compiling generics_in_structs v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Generic Data Types/Generics in Structs) [INFO] [stderr] Compiling box_task v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Box Task) [INFO] [stderr] Compiling build_team_scores_table v0.1.0 (/opt/rustwide/workdir/Common Collections/Hashmaps/Build Scores Table) [INFO] [stderr] Compiling count_progress v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Iterators/Count Progress) [INFO] [stderr] Compiling string_trait v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/String Trait) [INFO] [stderr] Compiling add_conditions v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Conditions/Add Conditions) [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `()` [INFO] [stdout] --> Standard Library Types/Iterators/Loop Over Vector With Iterators/src/lib.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | }).collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromIterator<()>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] = help: for that trait implementation, expected `i32`, found `()` [INFO] [stdout] note: the method call chain might not have had the expected associated types [INFO] [stdout] --> Standard Library Types/Iterators/Loop Over Vector With Iterators/src/lib.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | v.iter().map(|num| { [INFO] [stdout] | _____-_------_^ [INFO] [stdout] | | | | [INFO] [stdout] | | | `Iterator::Item` is `&i32` here [INFO] [stdout] | | this expression has type `&Vec` [INFO] [stdout] 3 | | // TODO: Complete the function to multiply all the elements in the given vector [INFO] [stdout] 4 | | }).collect() [INFO] [stdout] | |______^ `Iterator::Item` changed to `()` here [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/core/src/iter/traits/iterator.rs:2015:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0072]: recursive type `List` has infinite size [INFO] [stdout] --> Standard Library Types/Smart Pointers/Box Task/src/lib.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum List { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 3 | Cons(i32, List), [INFO] [stdout] | ---- recursive without indirection [INFO] [stdout] | [INFO] [stdout] help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle [INFO] [stdout] | [INFO] [stdout] 3 | Cons(i32, Box), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `loop_over_vector_with_iterators` (lib) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0391]: cycle detected when computing drop-check constraints for `List` [INFO] [stdout] --> Standard Library Types/Smart Pointers/Box Task/src/lib.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum List { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: ...which immediately requires computing drop-check constraints for `List` again [INFO] [stdout] = note: cycle used when computing dropck types for `List` [INFO] [stdout] = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0072, E0391. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0072`. [INFO] [stdout] [INFO] [stderr] error: could not compile `box_task` (lib) due to 2 previous errors [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `append_bar` [INFO] [stdout] --> Generic Types, Traits, and Lifetime/Traits/String Trait/src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 2 | fn append_bar(self) -> Self; [INFO] [stdout] | ---------------------------- `append_bar` from trait [INFO] [stdout] ... [INFO] [stdout] 5 | impl AppendBar for String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ missing `append_bar` in implementation [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `string_trait` (lib) due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team_1_name` [INFO] [stdout] --> Common Collections/Hashmaps/Build Scores Table/src/lib.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let team_1_name = v[0].to_string(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_1_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team_1_score` [INFO] [stdout] --> Common Collections/Hashmaps/Build Scores Table/src/lib.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let team_1_score: u8 = v[2].parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_1_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team_2_name` [INFO] [stdout] --> Common Collections/Hashmaps/Build Scores Table/src/lib.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let team_2_name = v[1].to_string(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_2_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> Error Handling/Errors Primer/Advanced Errors 2/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `team_2_score` [INFO] [stdout] --> Common Collections/Hashmaps/Build Scores Table/src/lib.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let team_2_score: u8 = v[3].parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_2_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> Common Collections/Hashmaps/Build Scores Table/src/lib.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut scores: HashMap = HashMap::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `count_progress` (lib) due to 2 previous errors [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> Standard Library Types/Iterators/Count Progress/src/lib.rs:20:67 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn count(map: &HashMap, value: Progress) -> usize { [INFO] [stdout] | ----- ^^^^^ expected `usize`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> Standard Library Types/Iterators/Count Progress/src/lib.rs:36:77 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn count_stack(stack: &[HashMap], value: Progress) -> usize { [INFO] [stdout] | ----------- ^^^^^ expected `usize`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> Error Handling/Errors Primer/Advanced Errors 2/src/lib.rs:28:36 [INFO] [stdout] | [INFO] [stdout] 28 | fn from(e: ParseFloatError) -> Self { [INFO] [stdout] | ---- ^^^^ expected `ParseClimateError`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> Common Collections/Strings/String Transformer/src/lib.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | for j in 0..*n as i32{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advanced_errors_2` (lib) due to 1 previous error; 1 warning emitted [INFO] [stdout] error[E0599]: no method named `as_ref` found for type parameter `T` in the current scope [INFO] [stdout] --> Standard Library Types/Type Conversions/AsRef and AsMut/src/lib.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn byte_counter(arg: T) -> usize { [INFO] [stdout] 3 | arg.as_ref().as_bytes().len() [INFO] [stdout] | ^^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `as_ref`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 1 | pub fn byte_counter/*Obtain the number of bytes (not characters) in the given argument [INFO] [stdout] | ++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for type parameter `T` in the current scope [INFO] [stdout] --> Standard Library Types/Type Conversions/AsRef and AsMut/src/lib.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn char_counter(arg: T) -> usize { [INFO] [stdout] 9 | arg.as_ref().chars().count() [INFO] [stdout] | ^^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `as_ref`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 7 | pub fn char_counter/* Obtain the number of characters (not bytes) in the given argument [INFO] [stdout] | ++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `asref_and_asmut` (lib) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "8fc247df4f0c046710a6a5e33a09b5778157d3b256fbde83da36159d94fd9157", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fc247df4f0c046710a6a5e33a09b5778157d3b256fbde83da36159d94fd9157", kill_on_drop: false }` [INFO] [stdout] 8fc247df4f0c046710a6a5e33a09b5778157d3b256fbde83da36159d94fd9157