[INFO] cloning repository https://github.com/WanderLanz/Lender [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/WanderLanz/Lender" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWanderLanz%2FLender", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWanderLanz%2FLender'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cc3bb8911b029e1c727ee3ba15325ebb333427b8 [INFO] checking WanderLanz/Lender against try#a3dffdb3a32d0dedc198f9de7d43173f3eb6727b for pr-136303 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWanderLanz%2FLender" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/WanderLanz/Lender on toolchain a3dffdb3a32d0dedc198f9de7d43173f3eb6727b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a3dffdb3a32d0dedc198f9de7d43173f3eb6727b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/WanderLanz/Lender [INFO] finished tweaking git repo https://github.com/WanderLanz/Lender [INFO] tweaked toml for git repo https://github.com/WanderLanz/Lender written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a3dffdb3a32d0dedc198f9de7d43173f3eb6727b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 5 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a3dffdb3a32d0dedc198f9de7d43173f3eb6727b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+a3dffdb3a32d0dedc198f9de7d43173f3eb6727b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 76f7fdcc828700db6e06c2addbe3993e985ac1342acd8dcf220853c2afd4e36e [INFO] running `Command { std: "docker" "start" "-a" "76f7fdcc828700db6e06c2addbe3993e985ac1342acd8dcf220853c2afd4e36e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76f7fdcc828700db6e06c2addbe3993e985ac1342acd8dcf220853c2afd4e36e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76f7fdcc828700db6e06c2addbe3993e985ac1342acd8dcf220853c2afd4e36e", kill_on_drop: false }` [INFO] [stdout] 76f7fdcc828700db6e06c2addbe3993e985ac1342acd8dcf220853c2afd4e36e [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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+a3dffdb3a32d0dedc198f9de7d43173f3eb6727b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 52dd7a8b8cbd7f11bebbe7d75c4aab60763a5c3f1585e91553d95d97b865183c [INFO] running `Command { std: "docker" "start" "-a" "52dd7a8b8cbd7f11bebbe7d75c4aab60763a5c3f1585e91553d95d97b865183c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Checking stable_try_trait_v2 v1.75.1 (/opt/rustwide/workdir/stable_try_trait_v2) [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking syn v2.0.96 [INFO] [stderr] Checking lender-derive v0.1.2 (/opt/rustwide/workdir/lender-derive) [INFO] [stderr] Compiling lender-derive v0.1.2 [INFO] [stderr] Checking lender v0.2.9 (/opt/rustwide/workdir/lender) [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | impl Lender for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `for<'all> lender::Lending<'all>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] note: required by a bound in `lender::Lender` [INFO] [stdout] --> lender/src/traits/lender.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait Lender: for<'all /* where Self: 'all */> Lending<'all> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Lender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:49:34 [INFO] [stdout] | [INFO] [stdout] 49 | impl DoubleEndedLender for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `for<'all> lender::Lending<'all>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lender` [INFO] [stdout] --> lender/src/traits/lender.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait Lender: for<'all /* where Self: 'all */> Lending<'all> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] note: required by a bound in `double_ended::DoubleEndedLender` [INFO] [stdout] --> lender/src/traits/double_ended.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait DoubleEndedLender: Lender { [INFO] [stdout] | ^^^^^^ required by this bound in `DoubleEndedLender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | fn next_back(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:64:28 [INFO] [stdout] | [INFO] [stdout] 64 | impl FusedLender for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `for<'all> lender::Lending<'all>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lender` [INFO] [stdout] --> lender/src/traits/lender.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait Lender: for<'all /* where Self: 'all */> Lending<'all> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] note: required by a bound in `traits::marker::FusedLender` [INFO] [stdout] --> lender/src/traits/marker.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait FusedLender: Lender {} [INFO] [stdout] | ^^^^^^ required by this bound in `FusedLender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:34:27 [INFO] [stdout] | [INFO] [stdout] 34 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:54:32 [INFO] [stdout] | [INFO] [stdout] 54 | fn next_back(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | impl Lender for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `for<'all> lender::Lending<'all>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] note: required by a bound in `lender::Lender` [INFO] [stdout] --> lender/src/traits/lender.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait Lender: for<'all /* where Self: 'all */> Lending<'all> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Lender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:49:34 [INFO] [stdout] | [INFO] [stdout] 49 | impl DoubleEndedLender for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `for<'all> lender::Lending<'all>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lender` [INFO] [stdout] --> lender/src/traits/lender.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait Lender: for<'all /* where Self: 'all */> Lending<'all> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] note: required by a bound in `double_ended::DoubleEndedLender` [INFO] [stdout] --> lender/src/traits/double_ended.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait DoubleEndedLender: Lender { [INFO] [stdout] | ^^^^^^ required by this bound in `DoubleEndedLender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | fn next_back(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:64:28 [INFO] [stdout] | [INFO] [stdout] 64 | impl FusedLender for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `for<'all> lender::Lending<'all>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lender` [INFO] [stdout] --> lender/src/traits/lender.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait Lender: for<'all /* where Self: 'all */> Lending<'all> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] note: required by a bound in `traits::marker::FusedLender` [INFO] [stdout] --> lender/src/traits/marker.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait FusedLender: Lender {} [INFO] [stdout] | ^^^^^^ required by this bound in `FusedLender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:34:27 [INFO] [stdout] | [INFO] [stdout] 34 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:54:32 [INFO] [stdout] | [INFO] [stdout] 54 | fn next_back(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `>::Lend>>::B`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/map.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | type Lend = >>::B; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `FnMutHKA::B`, found `core::ops::FnOnce::Output` [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `>::Lend>>::B` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = note: an associated type was expected, but a different one was found [INFO] [stdout] note: required by a bound in `FnMutHKA` [INFO] [stdout] --> lender/src/higher_order.rs:22:40 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait FnMutHKA<'b, A>: FnMut(A) -> >::B { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `>::Lend>>::B`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/map.rs:33:27 [INFO] [stdout] | [INFO] [stdout] 33 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `FnMutHKA::B`, found `core::ops::FnOnce::Output` [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `>::Lend>>::B` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = note: an associated type was expected, but a different one was found [INFO] [stdout] note: required by a bound in `FnMutHKA` [INFO] [stdout] --> lender/src/higher_order.rs:22:40 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait FnMutHKA<'b, A>: FnMut(A) -> >::B { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `>::Lend>>::B`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/map.rs:46:32 [INFO] [stdout] | [INFO] [stdout] 46 | fn next_back(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `FnMutHKA::B`, found `core::ops::FnOnce::Output` [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `>::Lend>>::B` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = note: an associated type was expected, but a different one was found [INFO] [stdout] note: required by a bound in `FnMutHKA` [INFO] [stdout] --> lender/src/higher_order.rs:22:40 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait FnMutHKA<'b, A>: FnMut(A) -> >::B { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `P` to be a type parameter that returns `Option<_>`, but it returns `

>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/map_while.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | impl Lender for MapWhile [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `

>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `

>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `map_while::MapWhile` to implement `for<'all> lender::Lending<'all>` [INFO] [stdout] --> lender/src/adapters/map_while.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, P> Lending<'lend> for MapWhile [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | P: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] note: required by a bound in `lender::Lender` [INFO] [stdout] --> lender/src/traits/lender.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait Lender: for<'all /* where Self: 'all */> Lending<'all> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Lender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `P` to be a type parameter that returns `Option<_>`, but it returns `

>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/map_while.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `

>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `

>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `map_while::MapWhile` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/map_while.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, P> Lending<'lend> for MapWhile [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | P: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `P` to be a type parameter that returns `Option<_>`, but it returns `

>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/map_while.rs:34:27 [INFO] [stdout] | [INFO] [stdout] 34 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `

>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `

>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `map_while::MapWhile` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/map_while.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, P> Lending<'lend> for MapWhile [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | P: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `>::Lend>>::B`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/map.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | type Lend = >>::B; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `FnMutHKA::B`, found `core::ops::FnOnce::Output` [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `>::Lend>>::B` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = note: an associated type was expected, but a different one was found [INFO] [stdout] note: required by a bound in `FnMutHKA` [INFO] [stdout] --> lender/src/higher_order.rs:22:40 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait FnMutHKA<'b, A>: FnMut(A) -> >::B { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `>::Lend>>::B`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/map.rs:33:27 [INFO] [stdout] | [INFO] [stdout] 33 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `FnMutHKA::B`, found `core::ops::FnOnce::Output` [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `>::Lend>>::B` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = note: an associated type was expected, but a different one was found [INFO] [stdout] note: required by a bound in `FnMutHKA` [INFO] [stdout] --> lender/src/higher_order.rs:22:40 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait FnMutHKA<'b, A>: FnMut(A) -> >::B { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `>::Lend>>::B`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/map.rs:46:32 [INFO] [stdout] | [INFO] [stdout] 46 | fn next_back(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `FnMutHKA::B`, found `core::ops::FnOnce::Output` [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `>::Lend>>::B` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = note: an associated type was expected, but a different one was found [INFO] [stdout] note: required by a bound in `FnMutHKA` [INFO] [stdout] --> lender/src/higher_order.rs:22:40 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait FnMutHKA<'b, A>: FnMut(A) -> >::B { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `P` to be a type parameter that returns `Option<_>`, but it returns `

>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/map_while.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | impl Lender for MapWhile [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `

>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `

>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `map_while::MapWhile` to implement `for<'all> lender::Lending<'all>` [INFO] [stdout] --> lender/src/adapters/map_while.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, P> Lending<'lend> for MapWhile [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | P: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] note: required by a bound in `lender::Lender` [INFO] [stdout] --> lender/src/traits/lender.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | pub trait Lender: for<'all /* where Self: 'all */> Lending<'all> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Lender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `P` to be a type parameter that returns `Option<_>`, but it returns `

>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/map_while.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `

>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `

>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `map_while::MapWhile` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/map_while.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, P> Lending<'lend> for MapWhile [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | P: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `P` to be a type parameter that returns `Option<_>`, but it returns `

>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/map_while.rs:34:27 [INFO] [stdout] | [INFO] [stdout] 34 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `

>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `

>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `map_while::MapWhile` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/map_while.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, P> Lending<'lend> for MapWhile [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | P: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<>::Lend>>::B>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/traits/lender.rs:785:51 [INFO] [stdout] | [INFO] [stdout] 785 | fn find_map<'a, F>(&'a mut self, mut f: F) -> Option<>>::B> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<<... as FnMutHKAOpt<'_, ...>>::B>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<>::Lend>>::B>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<>::Lend>>::B>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required by a bound in `FnMutHKAOpt` [INFO] [stdout] --> lender/src/higher_order.rs:30:43 [INFO] [stdout] | [INFO] [stdout] 30 | pub trait FnMutHKAOpt<'b, A>: FnMut(A) -> Option<>::B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKAOpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<>::Lend>>::B>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/traits/lender.rs:785:51 [INFO] [stdout] | [INFO] [stdout] 785 | fn find_map<'a, F>(&'a mut self, mut f: F) -> Option<>>::B> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<<... as FnMutHKAOpt<'_, ...>>::B>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<>::Lend>>::B>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<>::Lend>>::B>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required by a bound in `FnMutHKAOpt` [INFO] [stdout] --> lender/src/higher_order.rs:30:43 [INFO] [stdout] | [INFO] [stdout] 30 | pub trait FnMutHKAOpt<'b, A>: FnMut(A) -> Option<>::B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKAOpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lender/src/adapters/filter_map.rs:36:20 [INFO] [stdout] | [INFO] [stdout] 36 | if let Some(y) = (self.f)(x) { [INFO] [stdout] | ^^^^^^^ ----------- this expression has type `>::Lend,)>>::Output` [INFO] [stdout] | | [INFO] [stdout] | expected associated type, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `>::Lend,)>>::Output` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] help: a method is available that returns `>::Lend,)>>::Output` [INFO] [stdout] --> /rustc/a3dffdb3a32d0dedc198f9de7d43173f3eb6727b/library/core/src/ops/function.rs:250:5 [INFO] [stdout] | [INFO] [stdout] = note: consider calling `call_once` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:38:61 [INFO] [stdout] | [INFO] [stdout] 38 | return Some(unsafe { core::mem::transmute::, Lend<'_, Self>>(y) }); [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:38:77 [INFO] [stdout] | [INFO] [stdout] 38 | return Some(unsafe { core::mem::transmute::, Lend<'_, Self>>(y) }); [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lender/src/adapters/filter_map.rs:56:20 [INFO] [stdout] | [INFO] [stdout] 56 | if let Some(y) = (self.f)(x) { [INFO] [stdout] | ^^^^^^^ ----------- this expression has type `>::Lend,)>>::Output` [INFO] [stdout] | | [INFO] [stdout] | expected associated type, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `>::Lend,)>>::Output` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] help: a method is available that returns `>::Lend,)>>::Output` [INFO] [stdout] --> /rustc/a3dffdb3a32d0dedc198f9de7d43173f3eb6727b/library/core/src/ops/function.rs:250:5 [INFO] [stdout] | [INFO] [stdout] = note: consider calling `call_once` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:58:61 [INFO] [stdout] | [INFO] [stdout] 58 | return Some(unsafe { core::mem::transmute::, Lend<'_, Self>>(y) }); [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:58:77 [INFO] [stdout] | [INFO] [stdout] 58 | return Some(unsafe { core::mem::transmute::, Lend<'_, Self>>(y) }); [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lender/src/adapters/filter_map.rs:36:20 [INFO] [stdout] | [INFO] [stdout] 36 | if let Some(y) = (self.f)(x) { [INFO] [stdout] | ^^^^^^^ ----------- this expression has type `>::Lend,)>>::Output` [INFO] [stdout] | | [INFO] [stdout] | expected associated type, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `>::Lend,)>>::Output` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] help: a method is available that returns `>::Lend,)>>::Output` [INFO] [stdout] --> /rustc/a3dffdb3a32d0dedc198f9de7d43173f3eb6727b/library/core/src/ops/function.rs:250:5 [INFO] [stdout] | [INFO] [stdout] = note: consider calling `call_once` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:38:61 [INFO] [stdout] | [INFO] [stdout] 38 | return Some(unsafe { core::mem::transmute::, Lend<'_, Self>>(y) }); [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:38:77 [INFO] [stdout] | [INFO] [stdout] 38 | return Some(unsafe { core::mem::transmute::, Lend<'_, Self>>(y) }); [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lender/src/adapters/filter_map.rs:56:20 [INFO] [stdout] | [INFO] [stdout] 56 | if let Some(y) = (self.f)(x) { [INFO] [stdout] | ^^^^^^^ ----------- this expression has type `>::Lend,)>>::Output` [INFO] [stdout] | | [INFO] [stdout] | expected associated type, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `>::Lend,)>>::Output` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] help: a method is available that returns `>::Lend,)>>::Output` [INFO] [stdout] --> /rustc/a3dffdb3a32d0dedc198f9de7d43173f3eb6727b/library/core/src/ops/function.rs:250:5 [INFO] [stdout] | [INFO] [stdout] = note: consider calling `call_once` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:58:61 [INFO] [stdout] | [INFO] [stdout] 58 | return Some(unsafe { core::mem::transmute::, Lend<'_, Self>>(y) }); [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<_>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:58:77 [INFO] [stdout] | [INFO] [stdout] 58 | return Some(unsafe { core::mem::transmute::, Lend<'_, Self>>(y) }); [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required for `filter_map::FilterMap` to implement `lender::Lending<'_>` [INFO] [stdout] --> lender/src/adapters/filter_map.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'lend, B, L, F> Lending<'lend> for FilterMap [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | where [INFO] [stdout] 22 | F: FnMut(Lend<'lend, L>) -> Option, [INFO] [stdout] | --------- unsatisfied trait bound introduced here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lender/src/adapters/map.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 33 | fn next(&mut self) -> Option> { [INFO] [stdout] | ---------------------- expected `Option<>::Lend>>::B>` because of return type [INFO] [stdout] 34 | self.lender.next().map(&mut self.f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `FnMutHKA::B`, found `core::ops::FnOnce::Output` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<>::Lend>>::B>` [INFO] [stdout] found enum `Option<>::Lend,)>>::Output>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lender/src/adapters/map.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 46 | fn next_back(&mut self) -> Option> { [INFO] [stdout] | ---------------------- expected `Option<>::Lend>>::B>` because of return type [INFO] [stdout] 47 | self.lender.next_back().map(&mut self.f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `FnMutHKA::B`, found `core::ops::FnOnce::Output` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<>::Lend>>::B>` [INFO] [stdout] found enum `Option<>::Lend,)>>::Output>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lender/src/adapters/map_while.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | fn next(&mut self) -> Option> { [INFO] [stdout] | ---------------------- expected `Option<_>` because of return type [INFO] [stdout] 35 | (self.predicate)(self.lender.next()?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `

>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `

>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] help: try wrapping the expression in `core::prelude::v1::Some` [INFO] [stdout] | [INFO] [stdout] 35 | core::prelude::v1::Some((self.predicate)(self.lender.next()?)) [INFO] [stdout] | ++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lender/src/adapters/map.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 33 | fn next(&mut self) -> Option> { [INFO] [stdout] | ---------------------- expected `Option<>::Lend>>::B>` because of return type [INFO] [stdout] 34 | self.lender.next().map(&mut self.f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `FnMutHKA::B`, found `core::ops::FnOnce::Output` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<>::Lend>>::B>` [INFO] [stdout] found enum `Option<>::Lend,)>>::Output>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lender/src/adapters/map.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 46 | fn next_back(&mut self) -> Option> { [INFO] [stdout] | ---------------------- expected `Option<>::Lend>>::B>` because of return type [INFO] [stdout] 47 | self.lender.next_back().map(&mut self.f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `FnMutHKA::B`, found `core::ops::FnOnce::Output` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<>::Lend>>::B>` [INFO] [stdout] found enum `Option<>::Lend,)>>::Output>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lender/src/adapters/map_while.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | fn next(&mut self) -> Option> { [INFO] [stdout] | ---------------------- expected `Option<_>` because of return type [INFO] [stdout] 35 | (self.predicate)(self.lender.next()?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<_>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found associated type `

>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `

>::Lend,)>>::Output` to `Option<_>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] help: try wrapping the expression in `core::prelude::v1::Some` [INFO] [stdout] | [INFO] [stdout] 35 | core::prelude::v1::Some((self.predicate)(self.lender.next()?)) [INFO] [stdout] | ++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lender/src/traits/lender.rs:791:20 [INFO] [stdout] | [INFO] [stdout] 791 | if let Some(y) = f(x) { [INFO] [stdout] | ^^^^^^^ ---- this expression has type `>::Lend,)>>::Output` [INFO] [stdout] | | [INFO] [stdout] | expected associated type, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `>::Lend,)>>::Output` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] help: a method is available that returns `>::Lend,)>>::Output` [INFO] [stdout] --> /rustc/a3dffdb3a32d0dedc198f9de7d43173f3eb6727b/library/core/src/ops/function.rs:250:5 [INFO] [stdout] | [INFO] [stdout] = note: consider calling `call_once` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<>::Lend>>::B>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/traits/lender.rs:795:47 [INFO] [stdout] | [INFO] [stdout] 795 | >>::B, [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Option<<... as FnMutHKAOpt<'_, ...>>::B>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<>::Lend>>::B>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<>::Lend>>::B>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required by a bound in `FnMutHKAOpt::B` [INFO] [stdout] --> lender/src/higher_order.rs:30:43 [INFO] [stdout] | [INFO] [stdout] 30 | pub trait FnMutHKAOpt<'b, A>: FnMut(A) -> Option<>::B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKAOpt::B` [INFO] [stdout] 31 | type B: 'b; [INFO] [stdout] | - required by a bound in this associated type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<>::Lend>>::B>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/traits/lender.rs:796:47 [INFO] [stdout] | [INFO] [stdout] 796 | >>::B [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Option<<... as FnMutHKAOpt<'_, ...>>::B>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<>::Lend>>::B>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<>::Lend>>::B>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required by a bound in `FnMutHKAOpt::B` [INFO] [stdout] --> lender/src/higher_order.rs:30:43 [INFO] [stdout] | [INFO] [stdout] 30 | pub trait FnMutHKAOpt<'b, A>: FnMut(A) -> Option<>::B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKAOpt::B` [INFO] [stdout] 31 | type B: 'b; [INFO] [stdout] | - required by a bound in this associated type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<>::Lend>>::B>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/traits/lender.rs:793:24 [INFO] [stdout] | [INFO] [stdout] 793 | return Some(unsafe { [INFO] [stdout] | ^^^^ expected `Option<<... as FnMutHKAOpt<'_, ...>>::B>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<>::Lend>>::B>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<>::Lend>>::B>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required by a bound in `FnMutHKAOpt` [INFO] [stdout] --> lender/src/higher_order.rs:30:43 [INFO] [stdout] | [INFO] [stdout] 30 | pub trait FnMutHKAOpt<'b, A>: FnMut(A) -> Option<>::B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKAOpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<>::Lend>>::B>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/traits/lender.rs:793:24 [INFO] [stdout] | [INFO] [stdout] 793 | return Some(unsafe { [INFO] [stdout] | ________________________^ [INFO] [stdout] 794 | | core::mem::transmute::< [INFO] [stdout] 795 | | >>::B, [INFO] [stdout] 796 | | >>::B [INFO] [stdout] 797 | | >(y) [INFO] [stdout] 798 | | }); [INFO] [stdout] | |__________________^ expected `Option<<... as FnMutHKAOpt<'_, ...>>::B>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<>::Lend>>::B>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<>::Lend>>::B>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required by a bound in `FnMutHKAOpt` [INFO] [stdout] --> lender/src/higher_order.rs:30:43 [INFO] [stdout] | [INFO] [stdout] 30 | pub trait FnMutHKAOpt<'b, A>: FnMut(A) -> Option<>::B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKAOpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<>::Lend>>::B>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/traits/lender.rs:801:9 [INFO] [stdout] | [INFO] [stdout] 801 | None [INFO] [stdout] | ^^^^ expected `Option<<... as FnMutHKAOpt<'_, ...>>::B>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<>::Lend>>::B>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<>::Lend>>::B>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required by a bound in `FnMutHKAOpt` [INFO] [stdout] --> lender/src/higher_order.rs:30:43 [INFO] [stdout] | [INFO] [stdout] 30 | pub trait FnMutHKAOpt<'b, A>: FnMut(A) -> Option<>::B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKAOpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> lender/src/traits/lender.rs:791:20 [INFO] [stdout] | [INFO] [stdout] 791 | if let Some(y) = f(x) { [INFO] [stdout] | ^^^^^^^ ---- this expression has type `>::Lend,)>>::Output` [INFO] [stdout] | | [INFO] [stdout] | expected associated type, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `>::Lend,)>>::Output` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] help: a method is available that returns `>::Lend,)>>::Output` [INFO] [stdout] --> /rustc/a3dffdb3a32d0dedc198f9de7d43173f3eb6727b/library/core/src/ops/function.rs:250:5 [INFO] [stdout] | [INFO] [stdout] = note: consider calling `call_once` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<>::Lend>>::B>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/traits/lender.rs:795:47 [INFO] [stdout] | [INFO] [stdout] 795 | >>::B, [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Option<<... as FnMutHKAOpt<'_, ...>>::B>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<>::Lend>>::B>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<>::Lend>>::B>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required by a bound in `FnMutHKAOpt::B` [INFO] [stdout] --> lender/src/higher_order.rs:30:43 [INFO] [stdout] | [INFO] [stdout] 30 | pub trait FnMutHKAOpt<'b, A>: FnMut(A) -> Option<>::B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKAOpt::B` [INFO] [stdout] 31 | type B: 'b; [INFO] [stdout] | - required by a bound in this associated type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<>::Lend>>::B>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/traits/lender.rs:796:47 [INFO] [stdout] | [INFO] [stdout] 796 | >>::B [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Option<<... as FnMutHKAOpt<'_, ...>>::B>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<>::Lend>>::B>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<>::Lend>>::B>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required by a bound in `FnMutHKAOpt::B` [INFO] [stdout] --> lender/src/higher_order.rs:30:43 [INFO] [stdout] | [INFO] [stdout] 30 | pub trait FnMutHKAOpt<'b, A>: FnMut(A) -> Option<>::B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKAOpt::B` [INFO] [stdout] 31 | type B: 'b; [INFO] [stdout] | - required by a bound in this associated type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<>::Lend>>::B>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/traits/lender.rs:793:24 [INFO] [stdout] | [INFO] [stdout] 793 | return Some(unsafe { [INFO] [stdout] | ^^^^ expected `Option<<... as FnMutHKAOpt<'_, ...>>::B>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<>::Lend>>::B>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<>::Lend>>::B>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required by a bound in `FnMutHKAOpt` [INFO] [stdout] --> lender/src/higher_order.rs:30:43 [INFO] [stdout] | [INFO] [stdout] 30 | pub trait FnMutHKAOpt<'b, A>: FnMut(A) -> Option<>::B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKAOpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<>::Lend>>::B>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/traits/lender.rs:793:24 [INFO] [stdout] | [INFO] [stdout] 793 | return Some(unsafe { [INFO] [stdout] | ________________________^ [INFO] [stdout] 794 | | core::mem::transmute::< [INFO] [stdout] 795 | | >>::B, [INFO] [stdout] 796 | | >>::B [INFO] [stdout] 797 | | >(y) [INFO] [stdout] 798 | | }); [INFO] [stdout] | |__________________^ expected `Option<<... as FnMutHKAOpt<'_, ...>>::B>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<>::Lend>>::B>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<>::Lend>>::B>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required by a bound in `FnMutHKAOpt` [INFO] [stdout] --> lender/src/higher_order.rs:30:43 [INFO] [stdout] | [INFO] [stdout] 30 | pub trait FnMutHKAOpt<'b, A>: FnMut(A) -> Option<>::B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKAOpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: expected `F` to be a type parameter that returns `Option<>::Lend>>::B>`, but it returns `>::Lend,)>>::Output` [INFO] [stdout] --> lender/src/traits/lender.rs:801:9 [INFO] [stdout] | [INFO] [stdout] 801 | None [INFO] [stdout] | ^^^^ expected `Option<<... as FnMutHKAOpt<'_, ...>>::B>`, found associated type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<>::Lend>>::B>` [INFO] [stdout] found associated type `>::Lend,)>>::Output` [INFO] [stdout] = help: consider constraining the associated type `>::Lend,)>>::Output` to `Option<>::Lend>>::B>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] note: required by a bound in `FnMutHKAOpt` [INFO] [stdout] --> lender/src/higher_order.rs:30:43 [INFO] [stdout] | [INFO] [stdout] 30 | pub trait FnMutHKAOpt<'b, A>: FnMut(A) -> Option<>::B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FnMutHKAOpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lender` (lib) due to 29 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0271, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lender` (lib test) due to 29 previous errors [INFO] running `Command { std: "docker" "inspect" "52dd7a8b8cbd7f11bebbe7d75c4aab60763a5c3f1585e91553d95d97b865183c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52dd7a8b8cbd7f11bebbe7d75c4aab60763a5c3f1585e91553d95d97b865183c", kill_on_drop: false }` [INFO] [stdout] 52dd7a8b8cbd7f11bebbe7d75c4aab60763a5c3f1585e91553d95d97b865183c