[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/2ac781e54fc477839f9815f17b9e656fad365bbc against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdmarticus%2Fparser-combinators-rust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dmarticus/parser-combinators-rust on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "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-3-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" "+ff1737bb00913444173658b4e0b274fd79aabf66" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e02373a28b8be8c67e74d5365afa8aa6cada0581ea4e92ee2e59b8816dbbab5b [INFO] running `Command { std: "docker" "start" "-a" "e02373a28b8be8c67e74d5365afa8aa6cada0581ea4e92ee2e59b8816dbbab5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e02373a28b8be8c67e74d5365afa8aa6cada0581ea4e92ee2e59b8816dbbab5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e02373a28b8be8c67e74d5365afa8aa6cada0581ea4e92ee2e59b8816dbbab5b", kill_on_drop: false }` [INFO] [stdout] e02373a28b8be8c67e74d5365afa8aa6cada0581ea4e92ee2e59b8816dbbab5b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 10b5b09341796edb7049d1ce78f232889deedb95bc812ff532353c509a467a33 [INFO] running `Command { std: "docker" "start" "-a" "10b5b09341796edb7049d1ce78f232889deedb95bc812ff532353c509a467a33", 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[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: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: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] 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 9 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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 9 previous errors [INFO] running `Command { std: "docker" "inspect" "10b5b09341796edb7049d1ce78f232889deedb95bc812ff532353c509a467a33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10b5b09341796edb7049d1ce78f232889deedb95bc812ff532353c509a467a33", kill_on_drop: false }` [INFO] [stdout] 10b5b09341796edb7049d1ce78f232889deedb95bc812ff532353c509a467a33