[INFO] cloning repository https://github.com/ryuseikurata/computer_system [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ryuseikurata/computer_system" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryuseikurata%2Fcomputer_system", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryuseikurata%2Fcomputer_system'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4f75f32d15541cf5d22a764cc1a9875a54752d1b [INFO] checking ryuseikurata/computer_system against master#6f40082313d8374bdf962aba943a712d5322fae6 for pr-117967 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryuseikurata%2Fcomputer_system" "/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/ryuseikurata/computer_system on toolchain 6f40082313d8374bdf962aba943a712d5322fae6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6f40082313d8374bdf962aba943a712d5322fae6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ryuseikurata/computer_system [INFO] finished tweaking git repo https://github.com/ryuseikurata/computer_system [INFO] tweaked toml for git repo https://github.com/ryuseikurata/computer_system written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ryuseikurata/computer_system 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" "+6f40082313d8374bdf962aba943a712d5322fae6" "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 ryuseikurata/computer_system against try#57fd74335bb14b59b719dc3cc5bc4257e73f33ce for pr-117967 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryuseikurata%2Fcomputer_system" "/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/ryuseikurata/computer_system on toolchain 57fd74335bb14b59b719dc3cc5bc4257e73f33ce [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+57fd74335bb14b59b719dc3cc5bc4257e73f33ce" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ryuseikurata/computer_system [INFO] finished tweaking git repo https://github.com/ryuseikurata/computer_system [INFO] tweaked toml for git repo https://github.com/ryuseikurata/computer_system written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ryuseikurata/computer_system 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" "+57fd74335bb14b59b719dc3cc5bc4257e73f33ce" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+57fd74335bb14b59b719dc3cc5bc4257e73f33ce" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 70f5f0c8a58baca29d0d3be21234c9b499a930c6d8bf5a8f3d6b88ccdac96171 [INFO] running `Command { std: "docker" "start" "-a" "70f5f0c8a58baca29d0d3be21234c9b499a930c6d8bf5a8f3d6b88ccdac96171", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "70f5f0c8a58baca29d0d3be21234c9b499a930c6d8bf5a8f3d6b88ccdac96171", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70f5f0c8a58baca29d0d3be21234c9b499a930c6d8bf5a8f3d6b88ccdac96171", kill_on_drop: false }` [INFO] [stdout] 70f5f0c8a58baca29d0d3be21234c9b499a930c6d8bf5a8f3d6b88ccdac96171 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+57fd74335bb14b59b719dc3cc5bc4257e73f33ce" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 88d9f53f37bbf0ec63176da8901cf7c6841a917dfb32ce8b11a48bbff55b099b [INFO] running `Command { std: "docker" "start" "-a" "88d9f53f37bbf0ec63176da8901cf7c6841a917dfb32ce8b11a48bbff55b099b", kill_on_drop: false }` [INFO] [stderr] Checking computer_system v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `mux` [INFO] [stdout] --> src/computer_components/memory_map.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | gates::{dmux4way, mux, mux16, or}, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mux` [INFO] [stdout] --> src/sequence_circuits/cpu.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | gates::{and, mux, mux16, not, or}, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mux` [INFO] [stdout] --> src/computer_components/memory_map.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | gates::{dmux4way, mux, mux16, or}, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mux` [INFO] [stdout] --> src/sequence_circuits/cpu.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | gates::{and, mux, mux16, not, or}, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0191]: the value of the associated type `State` in `Keyboard` must be specified [INFO] [stdout] --> src/main.rs:10:51 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^ help: specify the associated type: `Keyboard` [INFO] [stdout] | [INFO] [stdout] ::: src/computer_components/keyboard.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | type State; [INFO] [stdout] | ---------- `State` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `Computer`, but its trait bounds were not satisfied [INFO] [stdout] | [INFO] [stdout] ::: src/computer_components/computer.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ------------------------------------------- function or associated item `new` not found for this struct [INFO] [stdout] --> src/main.rs:10:62 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^ function or associated item cannot be called on `Computer` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/computer_components/keyboard.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Keyboard { [INFO] [stdout] | ------------------ doesn't satisfy `dyn Keyboard: Sized` [INFO] [stdout] | [INFO] [stdout] ::: src/computer_components/screen.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Screen { [INFO] [stdout] | ---------------- doesn't satisfy `dyn Screen: Sized` [INFO] [stdout] | [INFO] [stdout] note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn Keyboard: Sized` [INFO] [stdout] `dyn Screen: Sized` [INFO] [stdout] --> src/computer_components/computer.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | impl Computer { [INFO] [stdout] | ^ ^ -------------- [INFO] [stdout] | | | [INFO] [stdout] | | unsatisfied trait bound introduced here [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] help: consider relaxing the type parameter's implicit `Sized` bound [INFO] [stdout] --> src/computer_components/computer.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Computer { [INFO] [stdout] | ++++++++ [INFO] [stdout] help: consider relaxing the type parameter's implicit `Sized` bound [INFO] [stdout] --> src/computer_components/computer.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | impl Computer { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Screen` cannot be made into an object [INFO] [stdout] --> src/main.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Screen` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/computer_components/screen.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Screen { [INFO] [stdout] | ------ this trait cannot be made into an object... [INFO] [stdout] 4 | fn new() -> Self; [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: only type `computer_components::screen::DummyScreen` implements the trait, consider using it directly instead [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] --> src/computer_components/screen.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | fn new(&self) -> Self; [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] --> src/computer_components/screen.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | fn new() -> Self where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `computer_system` (bin "computer_system") due to 7 previous errors; 2 warnings emitted [INFO] [stdout] error[E0038]: the trait `Keyboard` cannot be made into an object [INFO] [stdout] --> src/main.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Keyboard` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/computer_components/keyboard.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Keyboard { [INFO] [stdout] | -------- this trait cannot be made into an object... [INFO] [stdout] 4 | type State; [INFO] [stdout] 5 | fn new() -> Self; [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: only type `computer_components::keyboard::DummyKeyboard` implements the trait, consider using it directly instead [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] --> src/computer_components/keyboard.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | fn new(&self) -> Self; [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] --> src/computer_components/keyboard.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | fn new() -> Self where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the size for values of type `dyn Screen` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn Screen` [INFO] [stdout] note: required by a bound in `Computer` [INFO] [stdout] --> src/computer_components/computer.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ^ required by this bound in `Computer` [INFO] [stdout] help: consider relaxing the implicit `Sized` restriction [INFO] [stdout] --> src/computer_components/computer.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn Keyboard` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn Keyboard` [INFO] [stdout] note: required by a bound in `Computer` [INFO] [stdout] --> src/computer_components/computer.rs:7:32 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ^ required by this bound in `Computer` [INFO] [stdout] help: consider relaxing the implicit `Sized` restriction [INFO] [stdout] --> src/computer_components/computer.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0038, E0191, E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stdout] error[E0191]: the value of the associated type `State` in `Keyboard` must be specified [INFO] [stdout] --> src/main.rs:10:51 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^ help: specify the associated type: `Keyboard` [INFO] [stdout] | [INFO] [stdout] ::: src/computer_components/keyboard.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | type State; [INFO] [stdout] | ---------- `State` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `Computer`, but its trait bounds were not satisfied [INFO] [stdout] | [INFO] [stdout] ::: src/computer_components/computer.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ------------------------------------------- function or associated item `new` not found for this struct [INFO] [stdout] --> src/main.rs:10:62 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^ function or associated item cannot be called on `Computer` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/computer_components/keyboard.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Keyboard { [INFO] [stdout] | ------------------ doesn't satisfy `dyn Keyboard: Sized` [INFO] [stdout] | [INFO] [stdout] ::: src/computer_components/screen.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Screen { [INFO] [stdout] | ---------------- doesn't satisfy `dyn Screen: Sized` [INFO] [stdout] | [INFO] [stdout] note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn Keyboard: Sized` [INFO] [stdout] `dyn Screen: Sized` [INFO] [stdout] --> src/computer_components/computer.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | impl Computer { [INFO] [stdout] | ^ ^ -------------- [INFO] [stdout] | | | [INFO] [stdout] | | unsatisfied trait bound introduced here [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] help: consider relaxing the type parameter's implicit `Sized` bound [INFO] [stdout] --> src/computer_components/computer.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Computer { [INFO] [stdout] | ++++++++ [INFO] [stdout] help: consider relaxing the type parameter's implicit `Sized` bound [INFO] [stdout] --> src/computer_components/computer.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | impl Computer { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Screen` cannot be made into an object [INFO] [stdout] --> src/main.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Screen` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/computer_components/screen.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Screen { [INFO] [stdout] | ------ this trait cannot be made into an object... [INFO] [stdout] 4 | fn new() -> Self; [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: only type `computer_components::screen::DummyScreen` implements the trait, consider using it directly instead [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] --> src/computer_components/screen.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | fn new(&self) -> Self; [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] --> src/computer_components/screen.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | fn new() -> Self where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Keyboard` cannot be made into an object [INFO] [stdout] --> src/main.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Keyboard` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/computer_components/keyboard.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Keyboard { [INFO] [stdout] | -------- this trait cannot be made into an object... [INFO] [stdout] 4 | type State; [INFO] [stdout] 5 | fn new() -> Self; [INFO] [stdout] | ^^^ ...because associated function `new` has no `self` parameter [INFO] [stdout] = help: only type `computer_components::keyboard::DummyKeyboard` implements the trait, consider using it directly instead [INFO] [stdout] help: consider turning `new` into a method by giving it a `&self` argument [INFO] [stdout] --> src/computer_components/keyboard.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | fn new(&self) -> Self; [INFO] [stdout] | +++++ [INFO] [stdout] help: alternatively, consider constraining `new` so it does not apply to trait objects [INFO] [stdout] --> src/computer_components/keyboard.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | fn new() -> Self where Self: Sized; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn Screen` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn Screen` [INFO] [stdout] note: required by a bound in `Computer` [INFO] [stdout] --> src/computer_components/computer.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ^ required by this bound in `Computer` [INFO] [stdout] help: consider relaxing the implicit `Sized` restriction [INFO] [stdout] --> src/computer_components/computer.rs:7:30 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn Keyboard` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | let mut computer = Computer::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn Keyboard` [INFO] [stdout] note: required by a bound in `Computer` [INFO] [stdout] --> src/computer_components/computer.rs:7:32 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ^ required by this bound in `Computer` [INFO] [stdout] help: consider relaxing the implicit `Sized` restriction [INFO] [stdout] --> src/computer_components/computer.rs:7:43 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Computer { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0038, E0191, E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stderr] error: could not compile `computer_system` (bin "computer_system" test) due to 7 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "88d9f53f37bbf0ec63176da8901cf7c6841a917dfb32ce8b11a48bbff55b099b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88d9f53f37bbf0ec63176da8901cf7c6841a917dfb32ce8b11a48bbff55b099b", kill_on_drop: false }` [INFO] [stdout] 88d9f53f37bbf0ec63176da8901cf7c6841a917dfb32ce8b11a48bbff55b099b