[INFO] cloning repository https://github.com/Angluca/rustlings-zh-cn-rustacean
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Angluca/rustlings-zh-cn-rustacean" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAngluca%2Frustlings-zh-cn-rustacean", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAngluca%2Frustlings-zh-cn-rustacean'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 1c54521d680fd22ac5ad8adb2a89c938c0bc7b88
[INFO] checking Angluca/rustlings-zh-cn-rustacean against try#fa4dd1f19bfeb3fd235dc7f1406c42404436bef5 for pr-145108-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAngluca%2Frustlings-zh-cn-rustacean" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Angluca/rustlings-zh-cn-rustacean
[INFO] finished tweaking git repo https://github.com/Angluca/rustlings-zh-cn-rustacean
[INFO] tweaked toml for git repo https://github.com/Angluca/rustlings-zh-cn-rustacean written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Angluca/rustlings-zh-cn-rustacean on toolchain fa4dd1f19bfeb3fd235dc7f1406c42404436bef5
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fa4dd1f19bfeb3fd235dc7f1406c42404436bef5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Angluca/rustlings-zh-cn-rustacean 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" "+fa4dd1f19bfeb3fd235dc7f1406c42404436bef5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+fa4dd1f19bfeb3fd235dc7f1406c42404436bef5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e56acced4305cfffbb00d1f212750f93cab24fe830819ccd4bbac990be039fd2
[INFO] running `Command { std: "docker" "start" "-a" "e56acced4305cfffbb00d1f212750f93cab24fe830819ccd4bbac990be039fd2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e56acced4305cfffbb00d1f212750f93cab24fe830819ccd4bbac990be039fd2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e56acced4305cfffbb00d1f212750f93cab24fe830819ccd4bbac990be039fd2", kill_on_drop: false }`
[INFO] [stdout] e56acced4305cfffbb00d1f212750f93cab24fe830819ccd4bbac990be039fd2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+fa4dd1f19bfeb3fd235dc7f1406c42404436bef5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c344fb7a1bbfac496afe74d5f2d6755bfc77259fed6ee16b2153c90bb19cca37
[INFO] running `Command { std: "docker" "start" "-a" "c344fb7a1bbfac496afe74d5f2d6755bfc77259fed6ee16b2153c90bb19cca37", kill_on_drop: false }`
[INFO] [stderr]     Checking exercises v0.0.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0425]: cannot find value `v` in this scope
[INFO] [stdout]  --> exercises/05_vecs/vecs1.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     (a, v)
[INFO] [stdout]   |         ^
[INFO] [stdout]   |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]   |
[INFO] [stdout] 8 -     (a, v)
[INFO] [stdout] 8 +     (a, a)
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: `if` and `else` have incompatible types
[INFO] [stdout]   --> exercises/03_if/if3.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout]  7 |       } else if animal == "蟒蛇" {
[INFO] [stdout]    |  ____________-
[INFO] [stdout]  8 | |         3
[INFO] [stdout]    | |         - expected because of this
[INFO] [stdout]  9 | |     } else {
[INFO] [stdout] 10 | |         "未知"
[INFO] [stdout]    | |         ^^^^^^ expected integer, found `&str`
[INFO] [stdout] 11 | |     };
[INFO] [stdout]    | |_____- `if` and `else` have incompatible types
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0046]: not all trait items implemented, missing: `append_bar`
[INFO] [stdout]  --> exercises/15_traits/traits1.rs:6:1
[INFO] [stdout]   |
[INFO] [stdout] 3 |     fn append_bar(self) -> Self;
[INFO] [stdout]   |     ---------------------------- `append_bar` from trait
[INFO] [stdout] ...
[INFO] [stdout] 6 | impl AppendBar for String {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^ missing `append_bar` in implementation
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> exercises/18_iterators/iterators2.rs:16:47
[INFO] [stdout]    |
[INFO] [stdout] 16 | fn capitalize_words_vector(words: &[&str]) -> Vec<String> {
[INFO] [stdout]    |    -----------------------                    ^^^^^^^^^^^ expected `Vec<String>`, found `()`
[INFO] [stdout]    |    |
[INFO] [stdout]    |    implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<String>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> exercises/18_iterators/iterators2.rs:23:47
[INFO] [stdout]    |
[INFO] [stdout] 23 | fn capitalize_words_string(words: &[&str]) -> String {
[INFO] [stdout]    |    -----------------------                    ^^^^^^ expected `String`, found `()`
[INFO] [stdout]    |    |
[INFO] [stdout]    |    implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> exercises/11_hashmaps/hashmaps3.rs:18:9
[INFO] [stdout]    |
[INFO] [stdout] 18 |     let mut scores = HashMap::<&str, TeamScores>::new();
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `string2` does not live long enough
[INFO] [stdout]   --> exercises/16_lifetimes/lifetimes2.rs:17:36
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let string2 = String::from("xyz");
[INFO] [stdout]    |             ------- binding `string2` declared here
[INFO] [stdout] 17 |         result = longest(&string1, &string2);
[INFO] [stdout]    |                                    ^^^^^^^^ borrowed value does not live long enough
[INFO] [stdout] 18 |     }
[INFO] [stdout]    |     - `string2` dropped here while still borrowed
[INFO] [stdout] 19 |     println!("The longest string is '{result}'");
[INFO] [stdout]    |                                       ------ borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0597`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `team_1_name`
[INFO] [stdout]   --> exercises/11_hashmaps/hashmaps3.rs:23:13
[INFO] [stdout]    |
[INFO] [stdout] 23 |         let team_1_name = split_iterator.next().unwrap();
[INFO] [stdout]    |             ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_1_name`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `team_2_name`
[INFO] [stdout]   --> exercises/11_hashmaps/hashmaps3.rs:24:13
[INFO] [stdout]    |
[INFO] [stdout] 24 |         let team_2_name = split_iterator.next().unwrap();
[INFO] [stdout]    |             ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_2_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `team_1_score`
[INFO] [stdout]   --> exercises/11_hashmaps/hashmaps3.rs:25:13
[INFO] [stdout]    |
[INFO] [stdout] 25 |         let team_1_score: u8 = split_iterator.next().unwrap().parse().unwrap();
[INFO] [stdout]    |             ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_1_score`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `team_2_score`
[INFO] [stdout]   --> exercises/11_hashmaps/hashmaps3.rs:26:13
[INFO] [stdout]    |
[INFO] [stdout] 26 |         let team_2_score: u8 = split_iterator.next().unwrap().parse().unwrap();
[INFO] [stdout]    |             ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_team_2_score`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TeamScores` is never constructed
[INFO] [stdout]   --> exercises/11_hashmaps/hashmaps3.rs:11:8
[INFO] [stdout]    |
[INFO] [stdout] 11 | struct TeamScores {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `build_scores_table` is never used
[INFO] [stdout]   --> exercises/11_hashmaps/hashmaps3.rs:16:4
[INFO] [stdout]    |
[INFO] [stdout] 16 | fn build_scores_table(results: &str) -> HashMap<&str, TeamScores> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> exercises/23_conversions/from_str.rs:40:29
[INFO] [stdout]    |
[INFO] [stdout] 40 |     fn from_str(s: &str) -> Result<Self, Self::Err> {}
[INFO] [stdout]    |        --------             ^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<Person, ParsePersonError>`, found `()`
[INFO] [stdout]    |        |
[INFO] [stdout]    |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Result<Person, ParsePersonError>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]   --> exercises/17_tests/tests3.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |         assert_eq!(todo!(), 10); // 检查宽(width)
[INFO] [stdout]    |         ^^^^^^^^^^^-------^^^^^
[INFO] [stdout]    |         |          |
[INFO] [stdout]    |         |          any code following this expression is unreachable
[INFO] [stdout]    |         unreachable expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]   --> exercises/17_tests/tests3.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |         assert_eq!(todo!(), 10); // 检查宽(width)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         unreachable expression
[INFO] [stdout]    |         any code following this expression is unreachable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0046`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `first`
[INFO] [stdout]  --> exercises/18_iterators/iterators2.rs:9:14
[INFO] [stdout]   |
[INFO] [stdout] 9 |         Some(first) => todo!(),
[INFO] [stdout]   |              ^^^^^ help: if this is intentional, prefix it with an underscore: `_first`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "lifetimes2") due to 1 previous error
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> exercises/19_smart_pointers/rc1.rs:12:13
[INFO] [stdout]    |
[INFO] [stdout] 12 |     Mercury(Rc<Sun>),
[INFO] [stdout]    |     ------- ^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Planet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 12 -     Mercury(Rc<Sun>),
[INFO] [stdout] 12 +     Mercury(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]   --> exercises/17_tests/tests3.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |         assert_eq!(todo!(), 20); // 检查高(height)
[INFO] [stdout]    |         ^^^^^^^^^^^-------^^^^^
[INFO] [stdout]    |         |          |
[INFO] [stdout]    |         |          any code following this expression is unreachable
[INFO] [stdout]    |         unreachable expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> exercises/19_smart_pointers/rc1.rs:13:11
[INFO] [stdout]    |
[INFO] [stdout] 13 |     Venus(Rc<Sun>),
[INFO] [stdout]    |     ----- ^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Planet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 13 -     Venus(Rc<Sun>),
[INFO] [stdout] 13 +     Venus(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]   --> exercises/17_tests/tests3.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |         assert_eq!(todo!(), 20); // 检查高(height)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         unreachable expression
[INFO] [stdout]    |         any code following this expression is unreachable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> exercises/19_smart_pointers/rc1.rs:14:11
[INFO] [stdout]    |
[INFO] [stdout] 14 |     Earth(Rc<Sun>),
[INFO] [stdout]    |     ----- ^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Planet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 14 -     Earth(Rc<Sun>),
[INFO] [stdout] 14 +     Earth(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> exercises/19_smart_pointers/rc1.rs:15:10
[INFO] [stdout]    |
[INFO] [stdout] 15 |     Mars(Rc<Sun>),
[INFO] [stdout]    |     ---- ^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Planet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 15 -     Mars(Rc<Sun>),
[INFO] [stdout] 15 +     Mars(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> exercises/19_smart_pointers/rc1.rs:16:13
[INFO] [stdout]    |
[INFO] [stdout] 16 |     Jupiter(Rc<Sun>),
[INFO] [stdout]    |     ------- ^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Planet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 16 -     Jupiter(Rc<Sun>),
[INFO] [stdout] 16 +     Jupiter(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: can't compare `()` with `i32`
[INFO] [stdout]   --> exercises/17_tests/tests3.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |         assert_eq!(todo!(), 10); // 检查宽(width)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `() == i32`
[INFO] [stdout]    |
[INFO] [stdout] help: the trait `PartialEq<i32>` is not implemented for `()`
[INFO] [stdout]       but trait `PartialEq<()>` is implemented for it
[INFO] [stdout]   --> /rustc/fa4dd1f19bfeb3fd235dc7f1406c42404436bef5/library/core/src/cmp.rs:1879:4
[INFO] [stdout]    = help: for that trait implementation, expected `()`, found `i32`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> exercises/19_smart_pointers/rc1.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 17 |     Saturn(Rc<Sun>),
[INFO] [stdout]    |     ------ ^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Planet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 17 -     Saturn(Rc<Sun>),
[INFO] [stdout] 17 +     Saturn(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> exercises/19_smart_pointers/rc1.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 18 |     Uranus(Rc<Sun>),
[INFO] [stdout]    |     ------ ^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Planet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 18 -     Uranus(Rc<Sun>),
[INFO] [stdout] 18 +     Uranus(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: can't compare `()` with `i32`
[INFO] [stdout]   --> exercises/17_tests/tests3.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |         assert_eq!(todo!(), 20); // 检查高(height)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `() == i32`
[INFO] [stdout]    |
[INFO] [stdout] help: the trait `PartialEq<i32>` is not implemented for `()`
[INFO] [stdout]       but trait `PartialEq<()>` is implemented for it
[INFO] [stdout]   --> /rustc/fa4dd1f19bfeb3fd235dc7f1406c42404436bef5/library/core/src/cmp.rs:1879:4
[INFO] [stdout]    = help: for that trait implementation, expected `()`, found `i32`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> exercises/19_smart_pointers/rc1.rs:19:13
[INFO] [stdout]    |
[INFO] [stdout] 19 |     Neptune(Rc<Sun>),
[INFO] [stdout]    |     ------- ^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Planet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 19 -     Neptune(Rc<Sun>),
[INFO] [stdout] 19 +     Neptune(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "iterators2" test) due to 2 previous errors; 1 warning emitted
[INFO] [stderr] error: could not compile `exercises` (bin "traits1" test) due to 1 previous error
[INFO] [stderr] error: could not compile `exercises` (bin "tests3" test) due to 2 previous errors; 4 warnings emitted
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "vecs1" test) due to 1 previous error
[INFO] [stderr] error: could not compile `exercises` (bin "from_str") due to 1 previous error
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> exercises/13_error_handling/errors5.rs:51:44
[INFO] [stdout]    |
[INFO] [stdout] 49 | fn main() {
[INFO] [stdout]    | --------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] 50 |     let pretend_user_input = "42";
[INFO] [stdout] 51 |     let x: i64 = pretend_user_input.parse()?;
[INFO] [stdout]    |                                            ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]    |
[INFO] [stdout] 49 | fn main() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]    |           +++++++++++++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> exercises/13_error_handling/errors5.rs:52:59
[INFO] [stdout]    |
[INFO] [stdout] 49 | fn main() {
[INFO] [stdout]    | --------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 52 |     println!("output={:?}", PositiveNonzeroInteger::new(x)?);
[INFO] [stdout]    |                                                           ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]    |
[INFO] [stdout] 49 | fn main() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]    |           +++++++++++++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "if3" test) due to 1 previous error
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> exercises/13_error_handling/errors5.rs:53:5
[INFO] [stdout]    |
[INFO] [stdout] 49 | fn main() {
[INFO] [stdout]    |          - expected `()` because of default return type
[INFO] [stdout] ...
[INFO] [stdout] 53 |     Ok(())
[INFO] [stdout]    |     ^^^^^^ expected `()`, found `Result<(), _>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected unit type `()`
[INFO] [stdout]                    found enum `Result<(), _>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "errors5") due to 3 previous errors
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> exercises/13_error_handling/errors3.rs:21:46
[INFO] [stdout]    |
[INFO] [stdout] 16 | fn main() {
[INFO] [stdout]    | --------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 21 |     let cost = total_cost(pretend_user_input)?;
[INFO] [stdout]    |                                              ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]    |
[INFO] [stdout] 16 | fn main() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]    |           +++++++++++++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "errors3" test) due to 1 previous error
[INFO] running `Command { std: "docker" "inspect" "c344fb7a1bbfac496afe74d5f2d6755bfc77259fed6ee16b2153c90bb19cca37", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c344fb7a1bbfac496afe74d5f2d6755bfc77259fed6ee16b2153c90bb19cca37", kill_on_drop: false }`
[INFO] [stdout] c344fb7a1bbfac496afe74d5f2d6755bfc77259fed6ee16b2153c90bb19cca37
