[INFO] cloning repository https://github.com/dmarticus/parser-combinators-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dmarticus/parser-combinators-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdmarticus%2Fparser-combinators-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdmarticus%2Fparser-combinators-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2ac781e54fc477839f9815f17b9e656fad365bbc [INFO] checking dmarticus/parser-combinators-rust against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdmarticus%2Fparser-combinators-rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dmarticus/parser-combinators-rust on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dmarticus/parser-combinators-rust [INFO] finished tweaking git repo https://github.com/dmarticus/parser-combinators-rust [INFO] tweaked toml for git repo https://github.com/dmarticus/parser-combinators-rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dmarticus/parser-combinators-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] be35e2e048a5907274dbf16ae945d7ff291bf584db3cc4b149dac7ba739e4044 [INFO] running `Command { std: "docker" "start" "-a" "be35e2e048a5907274dbf16ae945d7ff291bf584db3cc4b149dac7ba739e4044", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "be35e2e048a5907274dbf16ae945d7ff291bf584db3cc4b149dac7ba739e4044", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be35e2e048a5907274dbf16ae945d7ff291bf584db3cc4b149dac7ba739e4044", kill_on_drop: false }` [INFO] [stdout] be35e2e048a5907274dbf16ae945d7ff291bf584db3cc4b149dac7ba739e4044 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1f95ad575fb242d4070654fce8d9cab9d268925565d705bf9b5c7c4fd99ff426 [INFO] running `Command { std: "docker" "start" "-a" "1f95ad575fb242d4070654fce8d9cab9d268925565d705bf9b5c7c4fd99ff426", kill_on_drop: false }` [INFO] [stderr] Checking parser-combinators v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0507]: cannot move out of `parser2`, a captured variable in an `Fn` closure [INFO] [stdout] --> src/lib.rs:118:37 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ------- captured outer variable [INFO] [stdout] ... [INFO] [stdout] 118 | parser1.and_then(move |result1| parser2.map(move |result2| (result1.clone(), result2))) [INFO] [stdout] | -------------- ^^^^^^^ ---------------------------------------------- `parser2` moved due to this method call [INFO] [stdout] | | | [INFO] [stdout] | | move occurs because `parser2` has type `P2`, which does not implement the `Copy` trait [INFO] [stdout] | captured by this `Fn` closure [INFO] [stdout] | [INFO] [stdout] note: `Parser::map` takes ownership of the receiver `self`, which moves `parser2` [INFO] [stdout] --> src/lib.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | fn map(self, map_fn: F) -> BoxedParser<'a, NewOutput> [INFO] [stdout] | ^^^^ [INFO] [stdout] help: if `P2` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/lib.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ^^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 118 | parser1.and_then(move |result1| parser2.map(move |result2| (result1.clone(), result2))) [INFO] [stdout] | ------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `R1: Clone` is not satisfied [INFO] [stdout] --> src/lib.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | map(pair(parser1, parser2), |(left, _right)| left) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `R1` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `pair` [INFO] [stdout] --> src/lib.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 115 | R1: 'a + Clone, [INFO] [stdout] | ^^^^^ required by this bound in `pair` [INFO] [stdout] help: consider further restricting type parameter `R1` [INFO] [stdout] | [INFO] [stdout] 134 | P2: Parser<'a, R2>, R1: std::clone::Clone [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `R1: Clone` is not satisfied [INFO] [stdout] --> src/lib.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | map(pair(parser1, parser2), |(left, _right)| left) [INFO] [stdout] | ^^^ the trait `Clone` is not implemented for `R1` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `pair` [INFO] [stdout] --> src/lib.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 115 | R1: 'a + Clone, [INFO] [stdout] | ^^^^^ required by this bound in `pair` [INFO] [stdout] help: consider further restricting type parameter `R1` [INFO] [stdout] | [INFO] [stdout] 134 | P2: Parser<'a, R2>, R1: std::clone::Clone [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `R1: Clone` is not satisfied [INFO] [stdout] --> src/lib.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | map(pair(parser1, parser2), |(left, _right)| left) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `R1` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `pair` [INFO] [stdout] --> src/lib.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 115 | R1: 'a + Clone, [INFO] [stdout] | ^^^^^ required by this bound in `pair` [INFO] [stdout] help: consider further restricting type parameter `R1` [INFO] [stdout] | [INFO] [stdout] 134 | P2: Parser<'a, R2>, R1: std::clone::Clone [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `R1: Clone` is not satisfied [INFO] [stdout] --> src/lib.rs:131:58 [INFO] [stdout] | [INFO] [stdout] 131 | fn left<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, R1> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `R1` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `pair` [INFO] [stdout] --> src/lib.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 115 | R1: 'a + Clone, [INFO] [stdout] | ^^^^^ required by this bound in `pair` [INFO] [stdout] help: consider further restricting type parameter `R1` [INFO] [stdout] | [INFO] [stdout] 134 | P2: Parser<'a, R2>, R1: std::clone::Clone [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `R1: Clone` is not satisfied [INFO] [stdout] --> src/lib.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | map(pair(parser1, parser2), |(_left, right)| right) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `R1` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `pair` [INFO] [stdout] --> src/lib.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 115 | R1: 'a + Clone, [INFO] [stdout] | ^^^^^ required by this bound in `pair` [INFO] [stdout] help: consider further restricting type parameter `R1` [INFO] [stdout] | [INFO] [stdout] 142 | P2: Parser<'a, R2>, R1: std::clone::Clone [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `R1: Clone` is not satisfied [INFO] [stdout] --> src/lib.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | map(pair(parser1, parser2), |(_left, right)| right) [INFO] [stdout] | ^^^ the trait `Clone` is not implemented for `R1` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `pair` [INFO] [stdout] --> src/lib.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 115 | R1: 'a + Clone, [INFO] [stdout] | ^^^^^ required by this bound in `pair` [INFO] [stdout] help: consider further restricting type parameter `R1` [INFO] [stdout] | [INFO] [stdout] 142 | P2: Parser<'a, R2>, R1: std::clone::Clone [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `parser2`, a captured variable in an `Fn` closure [INFO] [stdout] --> src/lib.rs:118:37 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ------- captured outer variable [INFO] [stdout] ... [INFO] [stdout] 118 | parser1.and_then(move |result1| parser2.map(move |result2| (result1.clone(), result2))) [INFO] [stdout] | -------------- ^^^^^^^ ---------------------------------------------- `parser2` moved due to this method call [INFO] [stdout] | | | [INFO] [stdout] | | move occurs because `parser2` has type `P2`, which does not implement the `Copy` trait [INFO] [stdout] | captured by this `Fn` closure [INFO] [stdout] | [INFO] [stdout] note: `Parser::map` takes ownership of the receiver `self`, which moves `parser2` [INFO] [stdout] --> src/lib.rs:15:26 [INFO] [stdout] | [INFO] [stdout] 15 | fn map(self, map_fn: F) -> BoxedParser<'a, NewOutput> [INFO] [stdout] | ^^^^ [INFO] [stdout] help: if `P2` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/lib.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ^^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 118 | parser1.and_then(move |result1| parser2.map(move |result2| (result1.clone(), result2))) [INFO] [stdout] | ------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `R1: Clone` is not satisfied [INFO] [stdout] --> src/lib.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | map(pair(parser1, parser2), |(left, _right)| left) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `R1` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `pair` [INFO] [stdout] --> src/lib.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 115 | R1: 'a + Clone, [INFO] [stdout] | ^^^^^ required by this bound in `pair` [INFO] [stdout] help: consider further restricting type parameter `R1` [INFO] [stdout] | [INFO] [stdout] 134 | P2: Parser<'a, R2>, R1: std::clone::Clone [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `R1: Clone` is not satisfied [INFO] [stdout] --> src/lib.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | map(pair(parser1, parser2), |(left, _right)| left) [INFO] [stdout] | ^^^ the trait `Clone` is not implemented for `R1` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `pair` [INFO] [stdout] --> src/lib.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 115 | R1: 'a + Clone, [INFO] [stdout] | ^^^^^ required by this bound in `pair` [INFO] [stdout] help: consider further restricting type parameter `R1` [INFO] [stdout] | [INFO] [stdout] 134 | P2: Parser<'a, R2>, R1: std::clone::Clone [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `R1: Clone` is not satisfied [INFO] [stdout] --> src/lib.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | map(pair(parser1, parser2), |(left, _right)| left) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `R1` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `pair` [INFO] [stdout] --> src/lib.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 115 | R1: 'a + Clone, [INFO] [stdout] | ^^^^^ required by this bound in `pair` [INFO] [stdout] help: consider further restricting type parameter `R1` [INFO] [stdout] | [INFO] [stdout] 134 | P2: Parser<'a, R2>, R1: std::clone::Clone [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `R1: Clone` is not satisfied [INFO] [stdout] --> src/lib.rs:131:58 [INFO] [stdout] | [INFO] [stdout] 131 | fn left<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, R1> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `R1` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `pair` [INFO] [stdout] --> src/lib.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 115 | R1: 'a + Clone, [INFO] [stdout] | ^^^^^ required by this bound in `pair` [INFO] [stdout] help: consider further restricting type parameter `R1` [INFO] [stdout] | [INFO] [stdout] 134 | P2: Parser<'a, R2>, R1: std::clone::Clone [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `R1: Clone` is not satisfied [INFO] [stdout] --> src/lib.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | map(pair(parser1, parser2), |(_left, right)| right) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `R1` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `pair` [INFO] [stdout] --> src/lib.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 115 | R1: 'a + Clone, [INFO] [stdout] | ^^^^^ required by this bound in `pair` [INFO] [stdout] help: consider further restricting type parameter `R1` [INFO] [stdout] | [INFO] [stdout] 142 | P2: Parser<'a, R2>, R1: std::clone::Clone [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `R1: Clone` is not satisfied [INFO] [stdout] --> src/lib.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | map(pair(parser1, parser2), |(_left, right)| right) [INFO] [stdout] | ^^^ the trait `Clone` is not implemented for `R1` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `pair` [INFO] [stdout] --> src/lib.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 115 | R1: 'a + Clone, [INFO] [stdout] | ^^^^^ required by this bound in `pair` [INFO] [stdout] help: consider further restricting type parameter `R1` [INFO] [stdout] | [INFO] [stdout] 142 | P2: Parser<'a, R2>, R1: std::clone::Clone [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `R1: Clone` is not satisfied [INFO] [stdout] --> src/lib.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | map(pair(parser1, parser2), |(_left, right)| right) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `R1` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `pair` [INFO] [stdout] --> src/lib.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 115 | R1: 'a + Clone, [INFO] [stdout] | ^^^^^ required by this bound in `pair` [INFO] [stdout] help: consider further restricting type parameter `R1` [INFO] [stdout] | [INFO] [stdout] 142 | P2: Parser<'a, R2>, R1: std::clone::Clone [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `R1: Clone` is not satisfied [INFO] [stdout] --> src/lib.rs:139:59 [INFO] [stdout] | [INFO] [stdout] 139 | fn right<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, R2> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `R1` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `pair` [INFO] [stdout] --> src/lib.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 115 | R1: 'a + Clone, [INFO] [stdout] | ^^^^^ required by this bound in `pair` [INFO] [stdout] help: consider further restricting type parameter `R1` [INFO] [stdout] | [INFO] [stdout] 142 | P2: Parser<'a, R2>, R1: std::clone::Clone [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `R1: Clone` is not satisfied [INFO] [stdout] --> src/lib.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | map(pair(parser1, parser2), |(_left, right)| right) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `R1` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `pair` [INFO] [stdout] --> src/lib.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 115 | R1: 'a + Clone, [INFO] [stdout] | ^^^^^ required by this bound in `pair` [INFO] [stdout] help: consider further restricting type parameter `R1` [INFO] [stdout] | [INFO] [stdout] 142 | P2: Parser<'a, R2>, R1: std::clone::Clone [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `R1: Clone` is not satisfied [INFO] [stdout] --> src/lib.rs:139:59 [INFO] [stdout] | [INFO] [stdout] 139 | fn right<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, R2> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `R1` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `pair` [INFO] [stdout] --> src/lib.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 111 | fn pair<'a, P1, P2, R1, R2>(parser1: P1, parser2: P2) -> impl Parser<'a, (R1, R2)> [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 115 | R1: 'a + Clone, [INFO] [stdout] | ^^^^^ required by this bound in `pair` [INFO] [stdout] help: consider further restricting type parameter `R1` [INFO] [stdout] | [INFO] [stdout] 142 | P2: Parser<'a, R2>, R1: std::clone::Clone [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `parser-combinators` (lib) due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `parser-combinators` (lib test) due to 10 previous errors [INFO] running `Command { std: "docker" "inspect" "1f95ad575fb242d4070654fce8d9cab9d268925565d705bf9b5c7c4fd99ff426", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f95ad575fb242d4070654fce8d9cab9d268925565d705bf9b5c7c4fd99ff426", kill_on_drop: false }` [INFO] [stdout] 1f95ad575fb242d4070654fce8d9cab9d268925565d705bf9b5c7c4fd99ff426