[INFO] cloning repository https://github.com/ceemb/rust-interview [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ceemb/rust-interview" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fceemb%2Frust-interview", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fceemb%2Frust-interview'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7e2b845864b0155d97776f26f97bed97801609ee [INFO] checking ceemb/rust-interview against master#5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea for pr-124336 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fceemb%2Frust-interview" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ceemb/rust-interview on toolchain 5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ceemb/rust-interview [INFO] finished tweaking git repo https://github.com/ceemb/rust-interview [INFO] tweaked toml for git repo https://github.com/ceemb/rust-interview written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ceemb/rust-interview 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" "+5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking ceemb/rust-interview against try#311f8b6ca41358db8ae08490a9ca0916f11e9de3 for pr-124336 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fceemb%2Frust-interview" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ceemb/rust-interview on toolchain 311f8b6ca41358db8ae08490a9ca0916f11e9de3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ceemb/rust-interview [INFO] finished tweaking git repo https://github.com/ceemb/rust-interview [INFO] tweaked toml for git repo https://github.com/ceemb/rust-interview written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ceemb/rust-interview 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" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking ceemb/rust-interview against try#311f8b6ca41358db8ae08490a9ca0916f11e9de3 for pr-124336 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fceemb%2Frust-interview" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ceemb/rust-interview on toolchain 311f8b6ca41358db8ae08490a9ca0916f11e9de3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ceemb/rust-interview [INFO] finished tweaking git repo https://github.com/ceemb/rust-interview [INFO] tweaked toml for git repo https://github.com/ceemb/rust-interview written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ceemb/rust-interview 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" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d7c0ddcdd0d82d532239eeba2f9ff4b693f461bb1bd9c3ef98abcac72c6d1d9d [INFO] running `Command { std: "docker" "start" "-a" "d7c0ddcdd0d82d532239eeba2f9ff4b693f461bb1bd9c3ef98abcac72c6d1d9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d7c0ddcdd0d82d532239eeba2f9ff4b693f461bb1bd9c3ef98abcac72c6d1d9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7c0ddcdd0d82d532239eeba2f9ff4b693f461bb1bd9c3ef98abcac72c6d1d9d", kill_on_drop: false }` [INFO] [stdout] d7c0ddcdd0d82d532239eeba2f9ff4b693f461bb1bd9c3ef98abcac72c6d1d9d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bfc87fb1b3f22f638ccafa505a120bd748a927ea5934a8c42a8c68d51478b0d9 [INFO] running `Command { std: "docker" "start" "-a" "bfc87fb1b3f22f638ccafa505a120bd748a927ea5934a8c42a8c68d51478b0d9", kill_on_drop: false }` [INFO] [stderr] Checking rust-interview-no-docker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0186]: method `speak` has a `&self` declaration in the trait, but not in the impl [INFO] [stdout] --> src/bin/assignment1.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 11 | fn speak(&self); [INFO] [stdout] | ---------------- `&self` used in trait [INFO] [stdout] ... [INFO] [stdout] 21 | fn speak() { [INFO] [stdout] | ^^^^^^^^^^ expected `&self` in impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0186]: method `speak` has a `&self` declaration in the trait, but not in the impl [INFO] [stdout] --> src/bin/assignment1.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 11 | fn speak(&self); [INFO] [stdout] | ---------------- `&self` used in trait [INFO] [stdout] ... [INFO] [stdout] 27 | fn speak() { [INFO] [stdout] | ^^^^^^^^^^ expected `&self` in impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0186]: method `speak` has a `&self` declaration in the trait, but not in the impl [INFO] [stdout] --> src/bin/assignment1.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 11 | fn speak(&self); [INFO] [stdout] | ---------------- `&self` used in trait [INFO] [stdout] ... [INFO] [stdout] 33 | fn speak() { [INFO] [stdout] | ^^^^^^^^^^ expected `&self` in impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0186]: method `speak` has a `&self` declaration in the trait, but not in the impl [INFO] [stdout] --> src/bin/assignment1.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 11 | fn speak(&self); [INFO] [stdout] | ---------------- `&self` used in trait [INFO] [stdout] ... [INFO] [stdout] 21 | fn speak() { [INFO] [stdout] | ^^^^^^^^^^ expected `&self` in impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/bin/assignment4.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 7 | let r1 = &s; // immutable borrow (just a reference to s) [INFO] [stdout] | -- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 11 | let r3 = &mut s; // errors can be fixed without changing this line [INFO] [stdout] | ^^^^^^ mutable borrow occurs here [INFO] [stdout] 12 | [INFO] [stdout] 13 | println!("{}, {}, and {}", r1, r2, r3); // errors can be fixed by changing this line [INFO] [stdout] | -- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0186]: method `speak` has a `&self` declaration in the trait, but not in the impl [INFO] [stdout] --> src/bin/assignment1.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 11 | fn speak(&self); [INFO] [stdout] | ---------------- `&self` used in trait [INFO] [stdout] ... [INFO] [stdout] 27 | fn speak() { [INFO] [stdout] | ^^^^^^^^^^ expected `&self` in impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stdout] error[E0186]: method `speak` has a `&self` declaration in the trait, but not in the impl [INFO] [stdout] --> src/bin/assignment1.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 11 | fn speak(&self); [INFO] [stdout] | ---------------- `&self` used in trait [INFO] [stdout] ... [INFO] [stdout] 33 | fn speak() { [INFO] [stdout] | ^^^^^^^^^^ expected `&self` in impl [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-interview-no-docker` (bin "assignment4" test) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0423]: expected value, found struct `Human` [INFO] [stdout] --> src/bin/assignment2.rs:57:21 [INFO] [stdout] | [INFO] [stdout] 12 | / struct Human { [INFO] [stdout] 13 | | name: String [INFO] [stdout] 14 | | } [INFO] [stdout] | |_- `Human` defined here [INFO] [stdout] ... [INFO] [stdout] 57 | let_unit_speak(&Human); [INFO] [stdout] | ^^^^^ help: use struct literal syntax instead: `Human { name: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `s` as mutable more than once at a time [INFO] [stdout] --> src/bin/assignment3.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 6 | let r1 = &mut s; [INFO] [stdout] | ------ first mutable borrow occurs here [INFO] [stdout] 7 | let r2 = &mut s; [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] 8 | [INFO] [stdout] 9 | println!("{}, {}", r1, r2); [INFO] [stdout] | -- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `Human` [INFO] [stdout] --> src/bin/assignment2.rs:57:21 [INFO] [stdout] | [INFO] [stdout] 12 | / struct Human { [INFO] [stdout] 13 | | name: String [INFO] [stdout] 14 | | } [INFO] [stdout] | |_- `Human` defined here [INFO] [stdout] ... [INFO] [stdout] 57 | let_unit_speak(&Human); [INFO] [stdout] | ^^^^^ help: use struct literal syntax instead: `Human { name: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/bin/assignment2.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | let human = Human::new(); // instantiate human (not the same human an on line 57) [INFO] [stdout] | ^^^^^^^^^^-- an argument of type `String` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/bin/assignment2.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn new(name: String) -> Self { [INFO] [stdout] | ^^^ ------------ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 62 | let human = Human::new(/* String */); // instantiate human (not the same human an on line 57) [INFO] [stdout] | ~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/assignment1.rs:44:20 [INFO] [stdout] | [INFO] [stdout] 44 | let_unit_speak(Human); // prints "I'm a human." (not explicitly instantiated like below) [INFO] [stdout] | -------------- ^^^^^ expected `&_`, found `Human` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `Human` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/bin/assignment1.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn let_unit_speak(unit: &impl Speak) { [INFO] [stdout] | ^^^^^^^^^^^^^^ ----------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 44 | let_unit_speak(&Human); // prints "I'm a human." (not explicitly instantiated like below) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/assignment1.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | let_unit_speak(Orc); // prints "I'm an orc." [INFO] [stdout] | -------------- ^^^ expected `&_`, found `Orc` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `Orc` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/bin/assignment1.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn let_unit_speak(unit: &impl Speak) { [INFO] [stdout] | ^^^^^^^^^^^^^^ ----------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 45 | let_unit_speak(&Orc); // prints "I'm an orc." [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-interview-no-docker` (bin "assignment3" test) due to 2 previous errors [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/assignment1.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | let_unit_speak(HalfOrc); // prints "I'm half human and half orc." [INFO] [stdout] | -------------- ^^^^^^^ expected `&_`, found `HalfOrc` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `HalfOrc` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/bin/assignment1.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn let_unit_speak(unit: &impl Speak) { [INFO] [stdout] | ^^^^^^^^^^^^^^ ----------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 46 | let_unit_speak(&HalfOrc); // prints "I'm half human and half orc." [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/bin/assignment2.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | let human = Human::new(); // instantiate human (not the same human an on line 57) [INFO] [stdout] | ^^^^^^^^^^-- an argument of type `String` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/bin/assignment2.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn new(name: String) -> Self { [INFO] [stdout] | ^^^ ------------ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 62 | let human = Human::new(/* String */); // instantiate human (not the same human an on line 57) [INFO] [stdout] | ~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0423. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0423. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0186, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0186`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-interview-no-docker` (bin "assignment2" test) due to 3 previous errors [INFO] [stderr] error: could not compile `rust-interview-no-docker` (bin "assignment2") due to 3 previous errors [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/assignment1.rs:44:20 [INFO] [stdout] | [INFO] [stdout] 44 | let_unit_speak(Human); // prints "I'm a human." (not explicitly instantiated like below) [INFO] [stdout] | -------------- ^^^^^ expected `&_`, found `Human` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `Human` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/bin/assignment1.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn let_unit_speak(unit: &impl Speak) { [INFO] [stdout] | ^^^^^^^^^^^^^^ ----------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 44 | let_unit_speak(&Human); // prints "I'm a human." (not explicitly instantiated like below) [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/assignment1.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | let_unit_speak(Orc); // prints "I'm an orc." [INFO] [stdout] | -------------- ^^^ expected `&_`, found `Orc` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `Orc` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/bin/assignment1.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn let_unit_speak(unit: &impl Speak) { [INFO] [stdout] | ^^^^^^^^^^^^^^ ----------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 45 | let_unit_speak(&Orc); // prints "I'm an orc." [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/assignment1.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | let_unit_speak(HalfOrc); // prints "I'm half human and half orc." [INFO] [stdout] | -------------- ^^^^^^^ expected `&_`, found `HalfOrc` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `HalfOrc` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/bin/assignment1.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn let_unit_speak(unit: &impl Speak) { [INFO] [stdout] | ^^^^^^^^^^^^^^ ----------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 46 | let_unit_speak(&HalfOrc); // prints "I'm half human and half orc." [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-interview-no-docker` (bin "assignment1" test) due to 7 previous errors [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0186, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0186`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-interview-no-docker` (bin "assignment1") due to 7 previous errors [INFO] [stdout] error[E0599]: no method named `has_conflict` found for struct `Event` in the current scope [INFO] [stdout] --> src/bin/assignment5.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 3 | struct Event { [INFO] [stdout] | ------------ method `has_conflict` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 34 | if event1.has_conflict(event2) { [INFO] [stdout] | -------^^^^^^^^^^^^-------- [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `Event::has_conflict(event2)` [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in an impl for the type `Event` [INFO] [stdout] --> src/bin/assignment5.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn has_conflict() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `update_event` found for struct `Event` in the current scope [INFO] [stdout] --> src/bin/assignment5.rs:35:16 [INFO] [stdout] | [INFO] [stdout] 3 | struct Event { [INFO] [stdout] | ------------ method `update_event` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 35 | event2.update_event(); [INFO] [stdout] | -------^^^^^^^^^^^^-- [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `Event::update_event()` [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in an impl for the type `Event` [INFO] [stdout] --> src/bin/assignment5.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn update_event() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-interview-no-docker` (bin "assignment5") due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "bfc87fb1b3f22f638ccafa505a120bd748a927ea5934a8c42a8c68d51478b0d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfc87fb1b3f22f638ccafa505a120bd748a927ea5934a8c42a8c68d51478b0d9", kill_on_drop: false }` [INFO] [stdout] bfc87fb1b3f22f638ccafa505a120bd748a927ea5934a8c42a8c68d51478b0d9