[INFO] cloning repository https://github.com/pearzl/leetcode_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pearzl/leetcode_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpearzl%2Fleetcode_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpearzl%2Fleetcode_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9c1ec26df03271cf05b7c1bcb6a8742344ba782e [INFO] checking pearzl/leetcode_rust against try#4a04890980766cc79878135f5ade8c0c4321e943 for pr-65819 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpearzl%2Fleetcode_rust" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pearzl/leetcode_rust on toolchain 4a04890980766cc79878135f5ade8c0c4321e943 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a04890980766cc79878135f5ade8c0c4321e943" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pearzl/leetcode_rust [INFO] finished tweaking git repo https://github.com/pearzl/leetcode_rust [INFO] tweaked toml for git repo https://github.com/pearzl/leetcode_rust written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/pearzl/leetcode_rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a04890980766cc79878135f5ade8c0c4321e943" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+4a04890980766cc79878135f5ade8c0c4321e943" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b1189eeb167087efb6e997221a4cb210f78a31acbaa4f73c9c72895bc05aff18 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b1189eeb167087efb6e997221a4cb210f78a31acbaa4f73c9c72895bc05aff18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b1189eeb167087efb6e997221a4cb210f78a31acbaa4f73c9c72895bc05aff18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1189eeb167087efb6e997221a4cb210f78a31acbaa4f73c9c72895bc05aff18", kill_on_drop: false }` [INFO] [stdout] b1189eeb167087efb6e997221a4cb210f78a31acbaa4f73c9c72895bc05aff18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+4a04890980766cc79878135f5ade8c0c4321e943" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0786d813561021520fef4a9d5eb26997e61ba5482cb6b2de5302b4cef83d9e00 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "0786d813561021520fef4a9d5eb26997e61ba5482cb6b2de5302b4cef83d9e00", kill_on_drop: false }` [INFO] [stderr] Checking leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/answer/q0204_count_primes.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/answer/q0212_word_search_ii.rs:90:10 [INFO] [stdout] | [INFO] [stdout] 90 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/answer/q0204_count_primes.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/answer/q0212_word_search_ii.rs:90:10 [INFO] [stdout] | [INFO] [stdout] 90 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/util.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | panic!(format!("{} can not build to TreeNode", &s)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 67 | panic!("{} can not build to TreeNode", &s); [INFO] [stdout] | -- -- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/answer/q0065_valid_number.rs:113:28 [INFO] [stdout] | [INFO] [stdout] 113 | panic!(2); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 113 | panic!("{}", 2); [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 113 | std::panic::panic_any(2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/answer/q0153_find_minimum_in_rotated_sorted_array.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 27 | panic!(1234567890) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 27 | panic!("{}", 1234567890) [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 27 | std::panic::panic_any(1234567890) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/answer/q0154_find_minimum_in_rotated_sorted_array_ii.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 27 | panic!(1234567890) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 27 | panic!("{}", 1234567890) [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 27 | std::panic::panic_any(1234567890) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/answer/q0162_find_peak_element.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | panic!(1234567890) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 20 | panic!("{}", 1234567890) [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 20 | std::panic::panic_any(1234567890) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/answer/q0169_majority_element.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | panic!(1234567890); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 29 | panic!("{}", 1234567890); [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 29 | std::panic::panic_any(1234567890); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/answer/q0044_wildcard_matching.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | std::mem::replace(from, r); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/answer/q0102_binary_tree_level_order_traversal.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | std::mem::replace(&mut level_node, new_level_node); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/answer/q0103_binary_tree_zigzag_level_order_traversal.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | std::mem::replace(&mut level_node, new_level_node); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/answer/q0107_binary_tree_level_order_traversal_ii.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | std::mem::replace(&mut level_node, new_level_node); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/answer/q0145_binary_tree_postorder_traversal.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 18 | std::mem::replace(&mut tree.left, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/answer/q0145_binary_tree_postorder_traversal.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 19 | std::mem::replace(&mut tree.right, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/answer/q0145_binary_tree_postorder_traversal.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | std::mem::replace(&mut tree.left, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/answer/q0145_binary_tree_postorder_traversal.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | std::mem::replace(&mut tree.right, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/answer/q0199_binary_tree_right_side_view.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | std::mem::replace(&mut node_buf, next_level_nodes); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/answer/q0212_word_search_ii.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | std::mem::replace(&mut paths, tmp); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/answer/q0068_text_justification.rs:130:31 [INFO] [stdout] | [INFO] [stdout] 130 | .map(|s| String::from(*s)) [INFO] [stdout] | ^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `String: From` is not satisfied [INFO] [stdout] --> src/answer/q0068_text_justification.rs:130:18 [INFO] [stdout] | [INFO] [stdout] 130 | .map(|s| String::from(*s)) [INFO] [stdout] | ^^^^^^^^^^^^ the trait `From` is not implemented for `String` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] >> [INFO] [stdout] and 2 others [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/answer/q0068_text_justification.rs:141:31 [INFO] [stdout] | [INFO] [stdout] 141 | .map(|s| String::from(*s)) [INFO] [stdout] | ^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `String: From` is not satisfied [INFO] [stdout] --> src/answer/q0068_text_justification.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 141 | .map(|s| String::from(*s)) [INFO] [stdout] | ^^^^^^^^^^^^ the trait `From` is not implemented for `String` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] >> [INFO] [stdout] and 2 others [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/answer/q0068_text_justification.rs:172:35 [INFO] [stdout] | [INFO] [stdout] 172 | .map(|s| String::from(*s)) [INFO] [stdout] | ^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `String: From` is not satisfied [INFO] [stdout] --> src/answer/q0068_text_justification.rs:172:22 [INFO] [stdout] | [INFO] [stdout] 172 | .map(|s| String::from(*s)) [INFO] [stdout] | ^^^^^^^^^^^^ the trait `From` is not implemented for `String` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] >> [INFO] [stdout] and 2 others [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/answer/q0068_text_justification.rs:176:35 [INFO] [stdout] | [INFO] [stdout] 176 | .map(|s| String::from(*s)) [INFO] [stdout] | ^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `String: From` is not satisfied [INFO] [stdout] --> src/answer/q0068_text_justification.rs:176:22 [INFO] [stdout] | [INFO] [stdout] 176 | .map(|s| String::from(*s)) [INFO] [stdout] | ^^^^^^^^^^^^ the trait `From` is not implemented for `String` [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] >> [INFO] [stdout] and 2 others [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/answer/q0068_text_justification.rs:130:18 [INFO] [stdout] | [INFO] [stdout] 130 | .map(|s| String::from(*s)) [INFO] [stdout] | ^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all function arguments must have a statically known size [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving ` as Iterator>::Item == &_` [INFO] [stdout] --> src/answer/q0070_runclimbing_stairs.rs:46:64 [INFO] [stdout] | [INFO] [stdout] 46 | for (i, o) in (1..=20).into_iter().zip(ret.into_iter().cloned()) { [INFO] [stdout] | ^^^^^^ expected integer, found reference [INFO] [stdout] | [INFO] [stdout] = note: expected type `{integer}` [INFO] [stdout] found reference `&_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving ` as Iterator>::Item == &_` [INFO] [stdout] --> src/answer/q0070_runclimbing_stairs.rs:46:44 [INFO] [stdout] | [INFO] [stdout] 46 | for (i, o) in (1..=20).into_iter().zip(ret.into_iter().cloned()) { [INFO] [stdout] | ^^^ expected integer, found reference [INFO] [stdout] | [INFO] [stdout] = note: expected type `{integer}` [INFO] [stdout] found reference `&_` [INFO] [stdout] = note: required because of the requirements on the impl of `Iterator` for `Cloned>` [INFO] [stdout] = note: required because of the requirements on the impl of `IntoIterator` for `Cloned>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving ` as Iterator>::Item == &_` [INFO] [stdout] --> src/answer/q0070_runclimbing_stairs.rs:46:23 [INFO] [stdout] | [INFO] [stdout] 46 | for (i, o) in (1..=20).into_iter().zip(ret.into_iter().cloned()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected integer, found reference [INFO] [stdout] | [INFO] [stdout] = note: expected type `{integer}` [INFO] [stdout] found reference `&_` [INFO] [stdout] = note: required because of the requirements on the impl of `Iterator` for `Cloned>` [INFO] [stdout] = note: 1 redundant requirements hidden [INFO] [stdout] = note: required because of the requirements on the impl of `Iterator` for `Zip, Cloned>>` [INFO] [stdout] = note: required because of the requirements on the impl of `IntoIterator` for `Zip, Cloned>>` [INFO] [stdout] = note: required by `into_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving ` as Iterator>::Item == &_` [INFO] [stdout] --> src/answer/q0070_runclimbing_stairs.rs:46:23 [INFO] [stdout] | [INFO] [stdout] 46 | for (i, o) in (1..=20).into_iter().zip(ret.into_iter().cloned()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected integer, found reference [INFO] [stdout] | [INFO] [stdout] = note: expected type `{integer}` [INFO] [stdout] found reference `&_` [INFO] [stdout] = note: required because of the requirements on the impl of `Iterator` for `Cloned>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0277. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "0786d813561021520fef4a9d5eb26997e61ba5482cb6b2de5302b4cef83d9e00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0786d813561021520fef4a9d5eb26997e61ba5482cb6b2de5302b4cef83d9e00", kill_on_drop: false }` [INFO] [stdout] 0786d813561021520fef4a9d5eb26997e61ba5482cb6b2de5302b4cef83d9e00