[INFO] crate cuivre 0.1.4 is already in cache [INFO] testing cuivre-0.1.4 against beta-2020-07-24 for beta-1.46-1 [INFO] extracting crate cuivre 0.1.4 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate cuivre 0.1.4 on toolchain beta-2020-07-24 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate cuivre 0.1.4 [INFO] finished tweaking crates.io crate cuivre 0.1.4 [INFO] tweaked toml for crates.io crate cuivre 0.1.4 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 67735af99fd53f7c21e90a9e495efe09a35794902a1ac94cd6801dba5b3231ac [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "67735af99fd53f7c21e90a9e495efe09a35794902a1ac94cd6801dba5b3231ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "67735af99fd53f7c21e90a9e495efe09a35794902a1ac94cd6801dba5b3231ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67735af99fd53f7c21e90a9e495efe09a35794902a1ac94cd6801dba5b3231ac", kill_on_drop: false }` [INFO] [stdout] 67735af99fd53f7c21e90a9e495efe09a35794902a1ac94cd6801dba5b3231ac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d372a3632542807e71d38527a263f766515805cc081d68d88d0d25561635f78c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d372a3632542807e71d38527a263f766515805cc081d68d88d0d25561635f78c", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling rayon-core v1.7.1 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling khronos_api v2.2.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling syn v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling cgmath v0.16.1 [INFO] [stderr] Compiling color_quant v1.0.1 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] Compiling tinyvec v0.3.3 [INFO] [stderr] Compiling linked-hash-map v0.5.3 [INFO] [stderr] Compiling bitflags v0.7.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling lazy_static v0.2.11 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling approx v0.1.1 [INFO] [stderr] Compiling sdl2-sys v0.31.0 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling gif v0.10.3 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling rayon v1.3.1 [INFO] [stderr] Compiling unicode-normalization v0.1.13 [INFO] [stderr] Compiling stb_truetype v0.3.1 [INFO] [stderr] Compiling deflate v0.7.20 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Compiling crossbeam-queue v0.2.3 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [INFO] [stderr] Compiling ordered-float v1.1.0 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling rusttype v0.8.3 [INFO] [stderr] Compiling num-rational v0.1.42 [INFO] [stderr] Compiling num v0.1.42 [INFO] [stderr] Compiling png v0.12.0 [INFO] [stderr] Compiling sdl2 v0.31.0 [INFO] [stderr] Compiling gl v0.10.0 [INFO] [stderr] Compiling rusttype v0.7.9 [INFO] [stderr] Compiling rusttype v0.6.5 [INFO] [stderr] Compiling jpeg-decoder v0.1.20 [INFO] [stderr] Compiling image v0.19.0 [INFO] [stderr] Compiling ron v0.4.2 [INFO] [stderr] Compiling cuivre v0.1.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/graphics/shaders.rs:51:32 [INFO] [stdout] | [INFO] [stdout] 51 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/graphics/mod.rs:56:32 [INFO] [stdout] | [INFO] [stdout] 56 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 40s [INFO] running `Command { std: "docker" "inspect" "d372a3632542807e71d38527a263f766515805cc081d68d88d0d25561635f78c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d372a3632542807e71d38527a263f766515805cc081d68d88d0d25561635f78c", kill_on_drop: false }` [INFO] [stdout] d372a3632542807e71d38527a263f766515805cc081d68d88d0d25561635f78c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc864bf2958343cb482af65bdf915bb34cf40019c42423765b6085e152889fb2 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "fc864bf2958343cb482af65bdf915bb34cf40019c42423765b6085e152889fb2", kill_on_drop: false }` [INFO] [stderr] Compiling cuivre v0.1.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/graphics/shaders.rs:51:32 [INFO] [stdout] | [INFO] [stdout] 51 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/graphics/mod.rs:56:32 [INFO] [stdout] | [INFO] [stdout] 56 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/graphics/shaders.rs:51:32 [INFO] [stdout] | [INFO] [stdout] 51 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/graphics/mod.rs:56:32 [INFO] [stdout] | [INFO] [stdout] 56 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.18s [INFO] running `Command { std: "docker" "inspect" "fc864bf2958343cb482af65bdf915bb34cf40019c42423765b6085e152889fb2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc864bf2958343cb482af65bdf915bb34cf40019c42423765b6085e152889fb2", kill_on_drop: false }` [INFO] [stdout] fc864bf2958343cb482af65bdf915bb34cf40019c42423765b6085e152889fb2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b41e61d39db2d1a8c898a824e0c9f12dbf8cb593f625891b9ccc8abd606cadce [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b41e61d39db2d1a8c898a824e0c9f12dbf8cb593f625891b9ccc8abd606cadce", kill_on_drop: false }` [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/graphics/shaders.rs:51:32 [INFO] [stderr] | [INFO] [stderr] 51 | fn cause(&self) -> Option<&error::Error> { [INFO] [stderr] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/graphics/mod.rs:56:32 [INFO] [stderr] | [INFO] [stderr] 56 | fn cause(&self) -> Option<&error::Error> { [INFO] [stderr] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/graphics/shaders.rs:51:32 [INFO] [stderr] | [INFO] [stderr] 51 | fn cause(&self) -> Option<&error::Error> { [INFO] [stderr] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/graphics/mod.rs:56:32 [INFO] [stderr] | [INFO] [stderr] 56 | fn cause(&self) -> Option<&error::Error> { [INFO] [stderr] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/cuivre-15128f90a6a8ad57 [INFO] [stdout] [INFO] [stderr] Doc-tests cuivre [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/input.rs - input::InputManager::set_keybind (line 215) ... FAILED [INFO] [stdout] test src/input.rs - input::InputManager::clear_keybind (line 226) ... FAILED [INFO] [stdout] test src/input.rs - input::InputManager::keybind (line 199) ... FAILED [INFO] [stdout] test src/input.rs - input::InputManager::key (line 175) ... FAILED [INFO] [stdout] test src/input.rs - input::InputManager::button (line 240) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/input.rs - input::InputManager::set_keybind (line 215) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Keycode` [INFO] [stdout] --> src/input.rs:216:36 [INFO] [stdout] | [INFO] [stdout] 3 | input_manager.set_keybind("Space", Keycode::Space); [INFO] [stdout] | ^^^^^^^ use of undeclared type or module `Keycode` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `input_manager` in this scope [INFO] [stdout] --> src/input.rs:216:1 [INFO] [stdout] | [INFO] [stdout] 3 | input_manager.set_keybind("Space", Keycode::Space); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/input.rs - input::InputManager::clear_keybind (line 226) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `input_manager` in this scope [INFO] [stdout] --> src/input.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 3 | input_manager.clear_keybind("Space"); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/input.rs - input::InputManager::keybind (line 199) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `input_manager` in this scope [INFO] [stdout] --> src/input.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 3 | if input_manager.keybind("Space")?.pressed() { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [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 `std::ops::Try`) [INFO] [stdout] --> src/input.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | if input_manager.keybind("Space")?.pressed() { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | println!("Space pressed!"); [INFO] [stdout] 5 | | } [INFO] [stdout] 6 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/input.rs - input::InputManager::key (line 175) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Keycode` [INFO] [stdout] --> src/input.rs:176:22 [INFO] [stdout] | [INFO] [stdout] 3 | if input_manager.key(Keycode::Space)?.pressed() { [INFO] [stdout] | ^^^^^^^ use of undeclared type or module `Keycode` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `input_manager` in this scope [INFO] [stdout] --> src/input.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 3 | if input_manager.key(Keycode::Space)?.pressed() { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [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 `std::ops::Try`) [INFO] [stdout] --> src/input.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | if input_manager.key(Keycode::Space)?.pressed() { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | println!("Space pressed!"); [INFO] [stdout] 5 | | } [INFO] [stdout] 6 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/input.rs - input::InputManager::button (line 240) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `MouseButton` [INFO] [stdout] --> src/input.rs:241:25 [INFO] [stdout] | [INFO] [stdout] 3 | if input_manager.button(MouseButton::Right)?.released() { [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type or module `MouseButton` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `input_manager` in this scope [INFO] [stdout] --> src/input.rs:241:4 [INFO] [stdout] | [INFO] [stdout] 3 | if input_manager.button(MouseButton::Right)?.released() { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [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 `std::ops::Try`) [INFO] [stdout] --> src/input.rs:241:4 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | if input_manager.button(MouseButton::Right)?.released() { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | println!("Right click released!"); [INFO] [stdout] 5 | | } [INFO] [stdout] 6 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/input.rs - input::InputManager::button (line 240) [INFO] [stdout] src/input.rs - input::InputManager::clear_keybind (line 226) [INFO] [stdout] src/input.rs - input::InputManager::key (line 175) [INFO] [stdout] src/input.rs - input::InputManager::keybind (line 199) [INFO] [stdout] src/input.rs - input::InputManager::set_keybind (line 215) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "b41e61d39db2d1a8c898a824e0c9f12dbf8cb593f625891b9ccc8abd606cadce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b41e61d39db2d1a8c898a824e0c9f12dbf8cb593f625891b9ccc8abd606cadce", kill_on_drop: false }` [INFO] [stdout] b41e61d39db2d1a8c898a824e0c9f12dbf8cb593f625891b9ccc8abd606cadce