[INFO] cloning repository https://github.com/RPG59/RPGFginRs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RPG59/RPGFginRs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRPG59%2FRPGFginRs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRPG59%2FRPGFginRs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 25d1c35b0bbb3b5628b53c08ce2fc1c17566bb96 [INFO] checking RPG59/RPGFginRs/25d1c35b0bbb3b5628b53c08ce2fc1c17566bb96 against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRPG59%2FRPGFginRs" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/RPG59/RPGFginRs on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/RPG59/RPGFginRs [INFO] finished tweaking git repo https://github.com/RPG59/RPGFginRs [INFO] tweaked toml for git repo https://github.com/RPG59/RPGFginRs written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/RPG59/RPGFginRs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: Found `debug_assertions` in `target.'cfg(...)'.dependencies`. This value is not supported for selecting dependencies and will not work as expected. To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9b58f96f9a7435f0763731d3d48aae2472cdc483812c7de14ff3e55b63efbb81 [INFO] running `Command { std: "docker" "start" "-a" "9b58f96f9a7435f0763731d3d48aae2472cdc483812c7de14ff3e55b63efbb81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9b58f96f9a7435f0763731d3d48aae2472cdc483812c7de14ff3e55b63efbb81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b58f96f9a7435f0763731d3d48aae2472cdc483812c7de14ff3e55b63efbb81", kill_on_drop: false }` [INFO] [stdout] 9b58f96f9a7435f0763731d3d48aae2472cdc483812c7de14ff3e55b63efbb81 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d39f6df2b29e7612b015a236f79442d8fbae0d6317fc7e763c2fe5ac9be0581c [INFO] running `Command { std: "docker" "start" "-a" "d39f6df2b29e7612b015a236f79442d8fbae0d6317fc7e763c2fe5ac9be0581c", kill_on_drop: false }` [INFO] [stderr] warning: Found `debug_assertions` in `target.'cfg(...)'.dependencies`. This value is not supported for selecting dependencies and will not work as expected. To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.76 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling bumpalo v3.7.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling wasm-bindgen v0.2.76 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling cgmath v0.18.0 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.2.50 [INFO] [stderr] Checking approx v0.4.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.76 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.76 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.76 [INFO] [stderr] Checking js-sys v0.3.53 [INFO] [stderr] Checking console_error_panic_hook v0.1.6 [INFO] [stderr] Checking web-sys v0.3.53 [INFO] [stderr] Checking wasm-bindgen-futures v0.3.27 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.26 [INFO] [stderr] Checking wasm-bindgen-test v0.2.50 [INFO] [stderr] Checking hello_world v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0599]: the method `map` exists for struct `JsFuture`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/app.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 31 | / JsFuture::from(promise) [INFO] [stdout] 32 | | .map(|x| { [INFO] [stdout] | | -^^^ method cannot be called on `JsFuture` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/wasm-bindgen-futures-0.4.26/src/lib.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct JsFuture { [INFO] [stdout] | ------------------- doesn't satisfy `JsFuture: futures::Future`, `JsFuture: futures::Stream` or `JsFuture: std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `JsFuture: futures::Future` [INFO] [stdout] which is required by `&mut JsFuture: futures::Future` [INFO] [stdout] `JsFuture: futures::Stream` [INFO] [stdout] which is required by `&mut JsFuture: futures::Stream` [INFO] [stdout] `JsFuture: std::iter::Iterator` [INFO] [stdout] which is required by `&mut JsFuture: std::iter::Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `T` in this scope [INFO] [stdout] --> src/core/EventBus.rs:61:66 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn subscribe(&mut self, eventType: EventType, subscriber: &T) { [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `T` in this scope [INFO] [stdout] --> src/core/EventBus.rs:61:66 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn subscribe(&mut self, eventType: EventType, subscriber: &T) { [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hello_world` (test "app") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the size for values of type `(dyn ISubscriber + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:47:16 [INFO] [stdout] | [INFO] [stdout] 47 | subscribers: std::collections::HashMap> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn ISubscriber + 'static)` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn ISubscriber + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:47:16 [INFO] [stdout] | [INFO] [stdout] 47 | subscribers: std::collections::HashMap> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn ISubscriber + 'static)` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn ISubscriber + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:47:3 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Default)] [INFO] [stdout] | ------- in this derive macro expansion [INFO] [stdout] 46 | struct EventBus { [INFO] [stdout] 47 | subscribers: std::collections::HashMap> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn ISubscriber + 'static)` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn ISubscriber + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:47:3 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Default)] [INFO] [stdout] | ------- in this derive macro expansion [INFO] [stdout] 46 | struct EventBus { [INFO] [stdout] 47 | subscribers: std::collections::HashMap> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn ISubscriber + 'static)` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn ISubscriber` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:62:32 [INFO] [stdout] | [INFO] [stdout] 62 | if let Some(handlerList) = self.subscribers.get(&eventType) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn ISubscriber` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn ISubscriber` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:62:32 [INFO] [stdout] | [INFO] [stdout] 62 | if let Some(handlerList) = self.subscribers.get(&eventType) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn ISubscriber` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for reference `&Vec`, but its trait bounds were not satisfied [INFO] [stdout] --> src/core/EventBus.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 4 | trait ISubscriber { [INFO] [stdout] | ----------------- doesn't satisfy `dyn ISubscriber: Sized` [INFO] [stdout] ... [INFO] [stdout] 63 | handlerList.push(subscriber); [INFO] [stdout] | ^^^^ method cannot be called on `&Vec` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn ISubscriber: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn ISubscriber + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:65:7 [INFO] [stdout] | [INFO] [stdout] 65 | self.subscribers.insert(eventType, vec!(subscriber)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn ISubscriber + 'static)` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn ISubscriber` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:65:42 [INFO] [stdout] | [INFO] [stdout] 65 | self.subscribers.insert(eventType, vec!(subscriber)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | doesn't have a size known at compile-time [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn ISubscriber` [INFO] [stdout] note: required by a bound in `std::slice::::into_vec` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/alloc/src/slice.rs:523:5 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for reference `&Vec`, but its trait bounds were not satisfied [INFO] [stdout] --> src/core/EventBus.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 4 | trait ISubscriber { [INFO] [stdout] | ----------------- doesn't satisfy `dyn ISubscriber: Sized` [INFO] [stdout] ... [INFO] [stdout] 63 | handlerList.push(subscriber); [INFO] [stdout] | ^^^^ method cannot be called on `&Vec` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn ISubscriber: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn ISubscriber` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:65:42 [INFO] [stdout] | [INFO] [stdout] 65 | self.subscribers.insert(eventType, vec!(subscriber)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn ISubscriber` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn ISubscriber + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:65:7 [INFO] [stdout] | [INFO] [stdout] 65 | self.subscribers.insert(eventType, vec!(subscriber)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn ISubscriber + 'static)` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn ISubscriber` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:70:32 [INFO] [stdout] | [INFO] [stdout] 70 | if let Some(handlerList) = self.subscribers.get(&event.getEventType()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn ISubscriber` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn ISubscriber` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:65:42 [INFO] [stdout] | [INFO] [stdout] 65 | self.subscribers.insert(eventType, vec!(subscriber)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | doesn't have a size known at compile-time [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn ISubscriber` [INFO] [stdout] note: required by a bound in `std::slice::::into_vec` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/alloc/src/slice.rs:523:5 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn ISubscriber` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:65:42 [INFO] [stdout] | [INFO] [stdout] 65 | self.subscribers.insert(eventType, vec!(subscriber)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn ISubscriber` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn ISubscriber` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:70:32 [INFO] [stdout] | [INFO] [stdout] 70 | if let Some(handlerList) = self.subscribers.get(&event.getEventType()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn ISubscriber` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for reference `&Vec` in the current scope [INFO] [stdout] --> src/core/EventBus.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | for handler in handlerList.iter() { [INFO] [stdout] | ^^^^ method not found in `&Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for reference `&Vec` in the current scope [INFO] [stdout] --> src/core/EventBus.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | for handler in handlerList.iter() { [INFO] [stdout] | ^^^^ method not found in `&Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.eventType` which is behind a shared reference [INFO] [stdout] --> src/core/EventBus.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | self.eventType [INFO] [stdout] | ^^^^^^^^^^^^^^ move occurs because `self.eventType` has type `EventType`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `EventType` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/core/EventBus.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | enum EventType { [INFO] [stdout] | ^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 35 | self.eventType [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.eventType` which is behind a shared reference [INFO] [stdout] --> src/core/EventBus.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | self.eventType [INFO] [stdout] | ^^^^^^^^^^^^^^ move occurs because `self.eventType` has type `EventType`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `EventType` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/core/EventBus.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | enum EventType { [INFO] [stdout] | ^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 41 | self.eventType [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.eventType` which is behind a shared reference [INFO] [stdout] --> src/core/EventBus.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | self.eventType [INFO] [stdout] | ^^^^^^^^^^^^^^ move occurs because `self.eventType` has type `EventType`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `EventType` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/core/EventBus.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | enum EventType { [INFO] [stdout] | ^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 35 | self.eventType [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.eventType` which is behind a shared reference [INFO] [stdout] --> src/core/EventBus.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | self.eventType [INFO] [stdout] | ^^^^^^^^^^^^^^ move occurs because `self.eventType` has type `EventType`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `EventType` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/core/EventBus.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | enum EventType { [INFO] [stdout] | ^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 41 | self.eventType [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/core/EventBus.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn init(&self) { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 52 | [INFO] [stdout] 53 | let closure = Closure::wrap(Box::new (move |event: web_sys::MouseEvent| { [INFO] [stdout] | _________________________________^ [INFO] [stdout] 54 | | self.publish(&MouseEvent{eventType: EventType::MouseDown, x: event.offset_x(), y: event.offset_y()}); [INFO] [stdout] 55 | | }) as Box); [INFO] [stdout] | |___________________________^ cast requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/core/EventBus.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn init(&self) { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 52 | [INFO] [stdout] 53 | let closure = Closure::wrap(Box::new (move |event: web_sys::MouseEvent| { [INFO] [stdout] | _________________________________^ [INFO] [stdout] 54 | | self.publish(&MouseEvent{eventType: EventType::MouseDown, x: event.offset_x(), y: event.offset_y()}); [INFO] [stdout] 55 | | }) as Box); [INFO] [stdout] | |___________________________^ cast requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0507, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0507, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hello_world` (lib) due to 13 previous errors [INFO] [stderr] error: could not compile `hello_world` (lib test) due to 13 previous errors [INFO] running `Command { std: "docker" "inspect" "d39f6df2b29e7612b015a236f79442d8fbae0d6317fc7e763c2fe5ac9be0581c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d39f6df2b29e7612b015a236f79442d8fbae0d6317fc7e763c2fe5ac9be0581c", kill_on_drop: false }` [INFO] [stdout] d39f6df2b29e7612b015a236f79442d8fbae0d6317fc7e763c2fe5ac9be0581c