[INFO] cloning repository https://github.com/jagpreetschawla/rust-practice-excercises [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jagpreetschawla/rust-practice-excercises" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjagpreetschawla%2Frust-practice-excercises", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjagpreetschawla%2Frust-practice-excercises'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 811e2978378ab7a40b1b1a57808ca0689cdd0bee [INFO] checking jagpreetschawla/rust-practice-excercises against master#40daf23eeb711dadf140b2536e67e3ff4c999196 for pr-142287 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjagpreetschawla%2Frust-practice-excercises" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jagpreetschawla/rust-practice-excercises on toolchain 40daf23eeb711dadf140b2536e67e3ff4c999196 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jagpreetschawla/rust-practice-excercises [INFO] finished tweaking git repo https://github.com/jagpreetschawla/rust-practice-excercises [INFO] tweaked toml for git repo https://github.com/jagpreetschawla/rust-practice-excercises written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jagpreetschawla/rust-practice-excercises 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" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5ed1a516138fb66e827c5d3031e1a2c542237312e76f6139d139b8b0a2f28017 [INFO] running `Command { std: "docker" "start" "-a" "5ed1a516138fb66e827c5d3031e1a2c542237312e76f6139d139b8b0a2f28017", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ed1a516138fb66e827c5d3031e1a2c542237312e76f6139d139b8b0a2f28017", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ed1a516138fb66e827c5d3031e1a2c542237312e76f6139d139b8b0a2f28017", kill_on_drop: false }` [INFO] [stdout] 5ed1a516138fb66e827c5d3031e1a2c542237312e76f6139d139b8b0a2f28017 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+40daf23eeb711dadf140b2536e67e3ff4c999196" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] febee1e5de59d55a6dd96d12d91018435b4617dab07b066a1834d24303e1dedc [INFO] running `Command { std: "docker" "start" "-a" "febee1e5de59d55a6dd96d12d91018435b4617dab07b066a1834d24303e1dedc", kill_on_drop: false }` [INFO] [stderr] Checking rust_practice_exercises v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `pattern` [INFO] [stdout] --> src/bin/pattern/pattern.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn new(pattern: &str) -> Self { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pattern` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inp` [INFO] [stdout] --> src/bin/pattern/pattern.rs:8:43 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn find_matches<'s, 'i>(&'s self, inp: &'i str) -> Vec<&'i str> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_inp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `token_iterator::FilesToIterateBuilder<'_, _>: Default` is not satisfied [INFO] [stdout] --> src/bin/token_iterator/token_iterator.rs:56:49 [INFO] [stdout] | [INFO] [stdout] 56 | let builder: FilesToIterateBuilder<_> = Default::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `token_iterator::FilesToIterateBuilder<'_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `into_iter` exists for struct `FilesToIterate<'_, char>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/bin/token_iterator/token_iterator.rs:92:35 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct FilesToIterate<'a, D> { [INFO] [stdout] | -------------------------------- method `into_iter` not found for this struct because it doesn't satisfy `FilesToIterate<'_, char>: IntoIterator` or `FilesToIterate<'_, char>: Iterator` [INFO] [stdout] ... [INFO] [stdout] 92 | assert_eq!(filesToIterate.into_iter().count(), 153); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `FilesToIterate<'_, char>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FilesToIterate<'_, char>: Iterator` [INFO] [stdout] which is required by `FilesToIterate<'_, char>: IntoIterator` [INFO] [stdout] `&FilesToIterate<'_, char>: Iterator` [INFO] [stdout] which is required by `&FilesToIterate<'_, char>: IntoIterator` [INFO] [stdout] `&mut FilesToIterate<'_, char>: Iterator` [INFO] [stdout] which is required by `&mut FilesToIterate<'_, char>: IntoIterator` [INFO] [stdout] note: the trait `Iterator` must be implemented [INFO] [stdout] --> /rustc/40daf23eeb711dadf140b2536e67e3ff4c999196/library/core/src/iter/traits/iterator.rs:39:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `into_iter`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `IntoIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `into_iter` exists for struct `FilesToIterate<'_, [char; 4]>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/bin/token_iterator/token_iterator.rs:101:35 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct FilesToIterate<'a, D> { [INFO] [stdout] | -------------------------------- method `into_iter` not found for this struct because it doesn't satisfy `FilesToIterate<'_, [char; 4]>: IntoIterator` or `FilesToIterate<'_, [char; 4]>: Iterator` [INFO] [stdout] ... [INFO] [stdout] 101 | assert_eq!(filesToIterate.into_iter().count(), 222); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `FilesToIterate<'_, [char; 4]>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FilesToIterate<'_, [char; 4]>: Iterator` [INFO] [stdout] which is required by `FilesToIterate<'_, [char; 4]>: IntoIterator` [INFO] [stdout] `&FilesToIterate<'_, [char; 4]>: Iterator` [INFO] [stdout] which is required by `&FilesToIterate<'_, [char; 4]>: IntoIterator` [INFO] [stdout] `&mut FilesToIterate<'_, [char; 4]>: Iterator` [INFO] [stdout] which is required by `&mut FilesToIterate<'_, [char; 4]>: IntoIterator` [INFO] [stdout] note: the trait `Iterator` must be implemented [INFO] [stdout] --> /rustc/40daf23eeb711dadf140b2536e67e3ff4c999196/library/core/src/iter/traits/iterator.rs:39:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `into_iter`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `IntoIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pattern` [INFO] [stdout] --> src/bin/pattern/pattern.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn new(pattern: &str) -> Self { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pattern` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inp` [INFO] [stdout] --> src/bin/pattern/pattern.rs:8:43 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn find_matches<'s, 'i>(&'s self, inp: &'i str) -> Vec<&'i str> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_inp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `into_iter` exists for struct `FilesToIterate<'_, &[char; 4]>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/bin/token_iterator/token_iterator.rs:111:35 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct FilesToIterate<'a, D> { [INFO] [stdout] | -------------------------------- method `into_iter` not found for this struct because it doesn't satisfy `FilesToIterate<'_, &[char; 4]>: IntoIterator` or `FilesToIterate<'_, &[char; 4]>: Iterator` [INFO] [stdout] ... [INFO] [stdout] 111 | assert_eq!(filesToIterate.into_iter().count(), 190); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `FilesToIterate<'_, &[char; 4]>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FilesToIterate<'_, &[char; 4]>: Iterator` [INFO] [stdout] which is required by `FilesToIterate<'_, &[char; 4]>: IntoIterator` [INFO] [stdout] `&FilesToIterate<'_, &[char; 4]>: Iterator` [INFO] [stdout] which is required by `&FilesToIterate<'_, &[char; 4]>: IntoIterator` [INFO] [stdout] `&mut FilesToIterate<'_, &[char; 4]>: Iterator` [INFO] [stdout] which is required by `&mut FilesToIterate<'_, &[char; 4]>: IntoIterator` [INFO] [stdout] note: the trait `Iterator` must be implemented [INFO] [stdout] --> /rustc/40daf23eeb711dadf140b2536e67e3ff4c999196/library/core/src/iter/traits/iterator.rs:39:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `into_iter`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `IntoIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `into_iter` exists for struct `FilesToIterate<'_, {closure@src/bin/token_iterator/token_iterator.rs:116:57: 116:66}>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/bin/token_iterator/token_iterator.rs:120:35 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct FilesToIterate<'a, D> { [INFO] [stdout] | -------------------------------- method `into_iter` not found for this struct because it doesn't satisfy `_: IntoIterator` or `_: Iterator` [INFO] [stdout] ... [INFO] [stdout] 120 | assert_eq!(filesToIterate.into_iter().count(), 154); [INFO] [stdout] | ^^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FilesToIterate<'_, {closure@src/bin/token_iterator/token_iterator.rs:116:57: 116:66}>: Iterator` [INFO] [stdout] which is required by `FilesToIterate<'_, {closure@src/bin/token_iterator/token_iterator.rs:116:57: 116:66}>: IntoIterator` [INFO] [stdout] `&FilesToIterate<'_, {closure@src/bin/token_iterator/token_iterator.rs:116:57: 116:66}>: Iterator` [INFO] [stdout] which is required by `&FilesToIterate<'_, {closure@src/bin/token_iterator/token_iterator.rs:116:57: 116:66}>: IntoIterator` [INFO] [stdout] `&mut FilesToIterate<'_, {closure@src/bin/token_iterator/token_iterator.rs:116:57: 116:66}>: Iterator` [INFO] [stdout] which is required by `&mut FilesToIterate<'_, {closure@src/bin/token_iterator/token_iterator.rs:116:57: 116:66}>: IntoIterator` [INFO] [stdout] note: the trait `Iterator` must be implemented [INFO] [stdout] --> /rustc/40daf23eeb711dadf140b2536e67e3ff4c999196/library/core/src/iter/traits/iterator.rs:39:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `into_iter`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `IntoIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `into_iter` exists for struct `FilesToIterate<'_, char>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/bin/token_iterator/token_iterator.rs:131:28 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct FilesToIterate<'a, D> { [INFO] [stdout] | -------------------------------- method `into_iter` not found for this struct because it doesn't satisfy `FilesToIterate<'_, char>: IntoIterator` or `FilesToIterate<'_, char>: Iterator` [INFO] [stdout] ... [INFO] [stdout] 131 | filesToIterate.into_iter().filter(|r| r.is_ok()).count(), [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `FilesToIterate<'_, char>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FilesToIterate<'_, char>: Iterator` [INFO] [stdout] which is required by `FilesToIterate<'_, char>: IntoIterator` [INFO] [stdout] `&FilesToIterate<'_, char>: Iterator` [INFO] [stdout] which is required by `&FilesToIterate<'_, char>: IntoIterator` [INFO] [stdout] `&mut FilesToIterate<'_, char>: Iterator` [INFO] [stdout] which is required by `&mut FilesToIterate<'_, char>: IntoIterator` [INFO] [stdout] note: the trait `Iterator` must be implemented [INFO] [stdout] --> /rustc/40daf23eeb711dadf140b2536e67e3ff4c999196/library/core/src/iter/traits/iterator.rs:39:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `into_iter`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `IntoIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `into_iter` exists for struct `FilesToIterate<'_, char>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/bin/token_iterator/token_iterator.rs:144:28 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct FilesToIterate<'a, D> { [INFO] [stdout] | -------------------------------- method `into_iter` not found for this struct because it doesn't satisfy `FilesToIterate<'_, char>: IntoIterator` or `FilesToIterate<'_, char>: Iterator` [INFO] [stdout] ... [INFO] [stdout] 144 | filesToIterate.into_iter().filter(|r| r.is_ok()).count(), [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `FilesToIterate<'_, char>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FilesToIterate<'_, char>: Iterator` [INFO] [stdout] which is required by `FilesToIterate<'_, char>: IntoIterator` [INFO] [stdout] `&FilesToIterate<'_, char>: Iterator` [INFO] [stdout] which is required by `&FilesToIterate<'_, char>: IntoIterator` [INFO] [stdout] `&mut FilesToIterate<'_, char>: Iterator` [INFO] [stdout] which is required by `&mut FilesToIterate<'_, char>: IntoIterator` [INFO] [stdout] note: the trait `Iterator` must be implemented [INFO] [stdout] --> /rustc/40daf23eeb711dadf140b2536e67e3ff4c999196/library/core/src/iter/traits/iterator.rs:39:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `into_iter`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `IntoIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `into_iter` exists for struct `FilesToIterate<'_, char>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/bin/token_iterator/token_iterator.rs:155:35 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct FilesToIterate<'a, D> { [INFO] [stdout] | -------------------------------- method `into_iter` not found for this struct because it doesn't satisfy `FilesToIterate<'_, char>: IntoIterator` or `FilesToIterate<'_, char>: Iterator` [INFO] [stdout] ... [INFO] [stdout] 155 | assert_eq!(filesToIterate.into_iter().filter(|r| r.is_ok()).count(), 11); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `FilesToIterate<'_, char>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FilesToIterate<'_, char>: Iterator` [INFO] [stdout] which is required by `FilesToIterate<'_, char>: IntoIterator` [INFO] [stdout] `&FilesToIterate<'_, char>: Iterator` [INFO] [stdout] which is required by `&FilesToIterate<'_, char>: IntoIterator` [INFO] [stdout] `&mut FilesToIterate<'_, char>: Iterator` [INFO] [stdout] which is required by `&mut FilesToIterate<'_, char>: IntoIterator` [INFO] [stdout] note: the trait `Iterator` must be implemented [INFO] [stdout] --> /rustc/40daf23eeb711dadf140b2536e67e3ff4c999196/library/core/src/iter/traits/iterator.rs:39:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `into_iter`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `IntoIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `into_iter` exists for struct `FilesToIterate<'_, char>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/bin/token_iterator/token_iterator.rs:166:28 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct FilesToIterate<'a, D> { [INFO] [stdout] | -------------------------------- method `into_iter` not found for this struct because it doesn't satisfy `FilesToIterate<'_, char>: IntoIterator` or `FilesToIterate<'_, char>: Iterator` [INFO] [stdout] ... [INFO] [stdout] 166 | filesToIterate.into_iter().filter(|r| r.is_ok()).count(), [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `FilesToIterate<'_, char>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `FilesToIterate<'_, char>: Iterator` [INFO] [stdout] which is required by `FilesToIterate<'_, char>: IntoIterator` [INFO] [stdout] `&FilesToIterate<'_, char>: Iterator` [INFO] [stdout] which is required by `&FilesToIterate<'_, char>: IntoIterator` [INFO] [stdout] `&mut FilesToIterate<'_, char>: Iterator` [INFO] [stdout] which is required by `&mut FilesToIterate<'_, char>: IntoIterator` [INFO] [stdout] note: the trait `Iterator` must be implemented [INFO] [stdout] --> /rustc/40daf23eeb711dadf140b2536e67e3ff4c999196/library/core/src/iter/traits/iterator.rs:39:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `into_iter`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `IntoIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `path` [INFO] [stdout] --> src/bin/token_iterator/token_iterator.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | path.as_path() [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `path` is borrowed here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `path` [INFO] [stdout] --> src/bin/token_iterator/token_iterator.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | path.as_path() [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `path` is borrowed here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `path` [INFO] [stdout] --> src/bin/token_iterator/token_iterator.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | path.as_path() [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `path` is borrowed here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0515, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_practice_exercises` (bin "token_iterator" test) due to 12 previous errors [INFO] running `Command { std: "docker" "inspect" "febee1e5de59d55a6dd96d12d91018435b4617dab07b066a1834d24303e1dedc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "febee1e5de59d55a6dd96d12d91018435b4617dab07b066a1834d24303e1dedc", kill_on_drop: false }` [INFO] [stdout] febee1e5de59d55a6dd96d12d91018435b4617dab07b066a1834d24303e1dedc