[INFO] crate launchy 0.1.0 is already in cache [INFO] testing launchy-0.1.0 against 1.45.2 for beta-1.46-1 [INFO] extracting crate launchy 0.1.0 into /workspace/builds/worker-10/source [INFO] validating manifest of crates.io crate launchy 0.1.0 on toolchain 1.45.2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate launchy 0.1.0 [INFO] finished tweaking crates.io crate launchy 0.1.0 [INFO] tweaked toml for crates.io crate launchy 0.1.0 written to /workspace/builds/worker-10/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "+1.45.2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 76b3069e118288f081bf21f894339557274f37d31ca4e7d045b5733a6dab0879 [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" "76b3069e118288f081bf21f894339557274f37d31ca4e7d045b5733a6dab0879", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76b3069e118288f081bf21f894339557274f37d31ca4e7d045b5733a6dab0879", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76b3069e118288f081bf21f894339557274f37d31ca4e7d045b5733a6dab0879", kill_on_drop: false }` [INFO] [stdout] 76b3069e118288f081bf21f894339557274f37d31ca4e7d045b5733a6dab0879 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "+1.45.2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7dc831af498a20cafb13c76ef220c66aafc46a44a13dd7dbce185f025ff7362a [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" "7dc831af498a20cafb13c76ef220c66aafc46a44a13dd7dbce185f025ff7362a", kill_on_drop: false }` [INFO] [stderr] Compiling memalloc v0.1.0 [INFO] [stderr] Compiling alsa-sys v0.1.2 [INFO] [stderr] Compiling nix v0.9.0 [INFO] [stderr] Compiling embedded-graphics v0.6.2 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [INFO] [stderr] Compiling thiserror v1.0.20 [INFO] [stderr] Compiling alsa v0.2.2 [INFO] [stderr] Compiling midir v0.6.2 [INFO] [stderr] Compiling launchy v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 11.39s [INFO] running `Command { std: "docker" "inspect" "7dc831af498a20cafb13c76ef220c66aafc46a44a13dd7dbce185f025ff7362a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7dc831af498a20cafb13c76ef220c66aafc46a44a13dd7dbce185f025ff7362a", kill_on_drop: false }` [INFO] [stdout] 7dc831af498a20cafb13c76ef220c66aafc46a44a13dd7dbce185f025ff7362a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "+1.45.2" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 53b78ceb26729d568eccf7779be5c8a017d1fdfcec715e791ce9e86f9d2143be [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" "53b78ceb26729d568eccf7779be5c8a017d1fdfcec715e791ce9e86f9d2143be", kill_on_drop: false }` [INFO] [stderr] Compiling launchy v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.08s [INFO] running `Command { std: "docker" "inspect" "53b78ceb26729d568eccf7779be5c8a017d1fdfcec715e791ce9e86f9d2143be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53b78ceb26729d568eccf7779be5c8a017d1fdfcec715e791ce9e86f9d2143be", kill_on_drop: false }` [INFO] [stdout] 53b78ceb26729d568eccf7779be5c8a017d1fdfcec715e791ce9e86f9d2143be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "+1.45.2" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5d774ee4fbc58b8111f08e6adcfd735f04681f405f49dd5b8ba558d1ba36bf5c [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" "5d774ee4fbc58b8111f08e6adcfd735f04681f405f49dd5b8ba558d1ba36bf5c", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/launchy-f32aecf55cdbd12a [INFO] [stdout] [INFO] [stderr] Doc-tests launchy [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 41 tests [INFO] [stdout] test src/canvas/layout.rs - canvas::layout::CanvasLayout (line 109) ... FAILED [INFO] [stdout] test src/canvas/color.rs - canvas::color::Color::new (line 23) ... FAILED [INFO] [stdout] test src/canvas/canvas.rs - canvas::canvas::Canvas (line 16) ... FAILED [INFO] [stdout] test src/canvas/color.rs - canvas::color::Color::mix (line 100) ... FAILED [INFO] [stdout] test src/canvas/color.rs - canvas::color::Color::from_hue (line 34) ... FAILED [INFO] [stdout] test src/canvas/canvas.rs - canvas::canvas::Canvas::get (line 92) ... FAILED [INFO] [stdout] test src/canvas/canvas.rs - canvas::canvas::Canvas::bounding_box_width (line 37) ... FAILED [INFO] [stdout] test src/canvas/layout.rs - canvas::layout::CanvasLayout::add_by_guess (line 226) ... FAILED [INFO] [stdout] test src/canvas/canvas.rs - canvas::canvas::Canvas::iter (line 180) ... FAILED [INFO] [stdout] test src/canvas/canvas.rs - canvas::canvas::Canvas::bounding_box_height (line 45) ... FAILED [INFO] [stdout] test src/canvas/canvas.rs - canvas::canvas::Canvas::toggle (line 201) ... FAILED [INFO] [stdout] test src/canvas/canvas.rs - canvas::canvas::Canvas::clear (line 222) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output (line 213) ... FAILED [INFO] [stdout] test src/canvas/pad.rs - canvas::pad::Pad (line 10) ... FAILED [INFO] [stdout] test src/canvas/layout.rs - canvas::layout::CanvasLayout::add (line 163) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_columns (line 425) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::enter_fader_mode (line 568) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_all (line 462) ... FAILED [INFO] [stdout] test src/canvas/canvas.rs - canvas::canvas::Canvas::is_valid (line 53) ... FAILED [INFO] [stdout] test src/canvas/canvas.rs - canvas::canvas::Canvas::flush (line 71) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light (line 654) ... FAILED [INFO] [stdout] test src/canvas/canvas.rs - canvas::canvas::Canvas::iter (line 172) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::flash_multiple (line 742) ... FAILED [INFO] [stdout] test src/canvas/padded.rs - canvas::padded::PaddingCanvas (line 21) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_rgb (line 714) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_multiple (line 725) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::flash (line 668) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_column (line 689) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::scroll_text (line 534) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_row (line 702) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_multiple_rgb (line 391) ... FAILED [INFO] [stdout] test src/lib.rs - (line 30) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::set_buttons (line 356) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::PaletteColor (line 11) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_rows (line 442) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::set_button (line 326) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::pulse_multiple (line 759) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::send_clock_tick (line 480) ... FAILED [INFO] [stdout] test src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::pulse (line 679) ... FAILED [INFO] [stdout] test src/lib.rs - (line 16) ... FAILED [INFO] [stdout] test src/lib.rs - (line 49) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/canvas/layout.rs - canvas::layout::CanvasLayout (line 109) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `CanvasLayout` [INFO] [stdout] --> src/canvas/layout.rs:110:25 [INFO] [stdout] | [INFO] [stdout] 4 | let mut canvas_layout = CanvasLayout::new(|msg| println!("Got a message: {:?}", msg)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `CanvasLayout` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/canvas/color.rs - canvas::color::Color::new (line 23) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 3 | let lime = Color::new(0.75, 1.0, 0.0); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 4 | let beige = Color::new(0.96, 0.96, 0.86); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/canvas/canvas.rs - canvas::canvas::Canvas (line 16) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/canvas.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 8 | canvas[pad] = Color::WHITE; [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Canvas` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 4 | fn light_white(canvas: &mut impl Canvas) -> Result<()> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::Canvas; [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::prelude::Canvas; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/canvas/color.rs - canvas::color::Color::mix (line 100) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 3 | let very_dark_red = Color::RED.mix(Color::BLACK, 0.9); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:101:36 [INFO] [stdout] | [INFO] [stdout] 3 | let very_dark_red = Color::RED.mix(Color::BLACK, 0.9); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:102:14 [INFO] [stdout] | [INFO] [stdout] 4 | let orange = Color::RED.mix(Color::YELLOW, 0.5); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:102:29 [INFO] [stdout] | [INFO] [stdout] 4 | let orange = Color::RED.mix(Color::YELLOW, 0.5); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:103:18 [INFO] [stdout] | [INFO] [stdout] 5 | let dark_brown = Color::RED.mix(Color::YELLOW, 0.5).mix(Color::BLACK, 0.7); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:103:33 [INFO] [stdout] | [INFO] [stdout] 5 | let dark_brown = Color::RED.mix(Color::YELLOW, 0.5).mix(Color::BLACK, 0.7); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:103:57 [INFO] [stdout] | [INFO] [stdout] 5 | let dark_brown = Color::RED.mix(Color::YELLOW, 0.5).mix(Color::BLACK, 0.7); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/canvas/color.rs - canvas::color::Color::from_hue (line 34) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 3 | let red = Color::from_hue(0.0); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 4 | let orange = Color::from_hue(0.1); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 5 | let greenish_yellow = Color::from_hue(0.2); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 6 | let green = Color::from_hue(0.3); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 7 | let cyan = Color::from_hue(0.4); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 8 | let light_blue = Color::from_hue(0.5); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 9 | let blue = Color::from_hue(0.6); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 10 | let purple = Color::from_hue(0.7); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:43:18 [INFO] [stdout] | [INFO] [stdout] 11 | let light_pink = Color::from_hue(0.8); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/color.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 12 | let strong_pink = Color::from_hue(0.9); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/canvas/canvas.rs - canvas::canvas::Canvas::get (line 92) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/canvas.rs:95:49 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(canvas.get(Pad { x: 5, y: 5 }), Some(Color::BLACK)); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/canvas.rs:97:30 [INFO] [stdout] | [INFO] [stdout] 8 | canvas[Pad { x: 5, y: 5 }] = Color::RED; [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/canvas.rs:98:49 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(canvas.get(Pad { x: 5, y: 5 }), Some(Color::BLACK)); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/canvas.rs:101:49 [INFO] [stdout] | [INFO] [stdout] 12 | assert_eq!(canvas.get(Pad { x: 5, y: 5 }), Some(Color::RED)); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Pad` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:95:23 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(canvas.get(Pad { x: 5, y: 5 }), Some(Color::BLACK)); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::Pad; [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::launch_control::Button::Pad; [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::prelude::Pad; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Pad` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 8 | canvas[Pad { x: 5, y: 5 }] = Color::RED; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::Pad; [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::launch_control::Button::Pad; [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::prelude::Pad; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Pad` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:98:23 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(canvas.get(Pad { x: 5, y: 5 }), Some(Color::BLACK)); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::Pad; [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::launch_control::Button::Pad; [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::prelude::Pad; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Pad` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:101:23 [INFO] [stdout] | [INFO] [stdout] 12 | assert_eq!(canvas.get(Pad { x: 5, y: 5 }), Some(Color::RED)); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::Pad; [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::launch_control::Button::Pad; [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::prelude::Pad; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/canvas/canvas.rs:93:14 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | let canvas = launchy::mk2::Canvas::guess(|_| {})?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | assert_eq!(canvas.get(Pad { x: 5, y: 5 }), Some(Color::BLACK)); [INFO] [stdout] ... | [INFO] [stdout] 12 | | assert_eq!(canvas.get(Pad { x: 5, y: 5 }), Some(Color::RED)); [INFO] [stdout] 13 | | } [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[E0599]: no method named `get` found for struct `launchy::DeviceCanvas` in the current scope [INFO] [stdout] --> src/canvas/canvas.rs:95:19 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(canvas.get(Pad { x: 5, y: 5 }), Some(Color::BLACK)); [INFO] [stdout] | ^^^ method not found in `launchy::DeviceCanvas` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/canvas/canvas.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | fn get(&self, pad: Pad) -> Option { [INFO] [stdout] | --- [INFO] [stdout] | | [INFO] [stdout] | the method is available for `std::boxed::Box>` here [INFO] [stdout] | the method is available for `std::sync::Arc>` here [INFO] [stdout] | the method is available for `std::rc::Rc>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use crate::launchy::Canvas; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `launchy::DeviceCanvas` in the current scope [INFO] [stdout] --> src/canvas/canvas.rs:98:19 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(canvas.get(Pad { x: 5, y: 5 }), Some(Color::BLACK)); [INFO] [stdout] | ^^^ method not found in `launchy::DeviceCanvas` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/canvas/canvas.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | fn get(&self, pad: Pad) -> Option { [INFO] [stdout] | --- [INFO] [stdout] | | [INFO] [stdout] | the method is available for `std::boxed::Box>` here [INFO] [stdout] | the method is available for `std::sync::Arc>` here [INFO] [stdout] | the method is available for `std::rc::Rc>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use crate::launchy::Canvas; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `flush` found for struct `launchy::DeviceCanvas` in the current scope [INFO] [stdout] --> src/canvas/canvas.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 11 | canvas.flush()?; [INFO] [stdout] | ^^^^^ method not found in `launchy::DeviceCanvas` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/canvas/canvas.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | fn flush(&mut self) -> Result<(), crate::MidiError>; [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the method is available for `std::boxed::Box>` here [INFO] [stdout] | the method is available for `std::sync::Arc>` here [INFO] [stdout] | the method is available for `std::rc::Rc>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use crate::launchy::Canvas; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/canvas/canvas.rs:100:1 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | let canvas = launchy::mk2::Canvas::guess(|_| {})?; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | assert_eq!(canvas.get(Pad { x: 5, y: 5 }), Some(Color::BLACK)); [INFO] [stdout] ... | [INFO] [stdout] 11 | | canvas.flush()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 12 | | assert_eq!(canvas.get(Pad { x: 5, y: 5 }), Some(Color::RED)); [INFO] [stdout] 13 | | } [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[E0599]: no method named `get` found for struct `launchy::DeviceCanvas` in the current scope [INFO] [stdout] --> src/canvas/canvas.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 12 | assert_eq!(canvas.get(Pad { x: 5, y: 5 }), Some(Color::RED)); [INFO] [stdout] | ^^^ method not found in `launchy::DeviceCanvas` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/canvas/canvas.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | fn get(&self, pad: Pad) -> Option { [INFO] [stdout] | --- [INFO] [stdout] | | [INFO] [stdout] | the method is available for `std::boxed::Box>` here [INFO] [stdout] | the method is available for `std::sync::Arc>` here [INFO] [stdout] | the method is available for `std::rc::Rc>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use crate::launchy::Canvas; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0422, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/canvas/canvas.rs - canvas::canvas::Canvas::bounding_box_width (line 37) 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/canvas/canvas.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | let canvas = launchy::mk2::Canvas::guess(|_| {})?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | assert_eq!(canvas.bounding_box_width(), 9); [INFO] [stdout] 7 | | } [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[E0599]: no method named `bounding_box_width` found for struct `launchy::DeviceCanvas` in the current scope [INFO] [stdout] --> src/canvas/canvas.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(canvas.bounding_box_width(), 9); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ method not found in `launchy::DeviceCanvas` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/canvas/canvas.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | fn bounding_box_width(&self) -> u32; [INFO] [stdout] | ------------------ [INFO] [stdout] | | [INFO] [stdout] | the method is available for `std::boxed::Box>` here [INFO] [stdout] | the method is available for `std::sync::Arc>` here [INFO] [stdout] | the method is available for `std::rc::Rc>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use crate::launchy::Canvas; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/canvas/layout.rs - canvas::layout::CanvasLayout::add_by_guess (line 226) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `canvas_layout` in this scope [INFO] [stdout] --> src/canvas/layout.rs:228:1 [INFO] [stdout] | [INFO] [stdout] 5 | canvas_layout.add_by_guess::(0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `canvas_layout` in this scope [INFO] [stdout] --> src/canvas/layout.rs:229:1 [INFO] [stdout] | [INFO] [stdout] 6 | canvas_layout.add_by_guess::(9, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/canvas/canvas.rs - canvas::canvas::Canvas::iter (line 180) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `canvas` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:181:12 [INFO] [stdout] | [INFO] [stdout] 3 | for pad in canvas.iter() { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `canvas` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:183:23 [INFO] [stdout] | [INFO] [stdout] 5 | if let Some(color) = canvas[pad.left(1)] { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `canvas` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:185:3 [INFO] [stdout] | [INFO] [stdout] 7 | canvas[pad] = color; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `canvas` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:188:1 [INFO] [stdout] | [INFO] [stdout] 10 | canvas.flush()?; [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/canvas/canvas.rs:188:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | for pad in canvas.iter() { [INFO] [stdout] 4 | | // If there's a pad to the left [INFO] [stdout] 5 | | if let Some(color) = canvas[pad.left(1)] { [INFO] [stdout] ... | [INFO] [stdout] 10 | | canvas.flush()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 11 | | } [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 5 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/canvas/canvas.rs - canvas::canvas::Canvas::bounding_box_height (line 45) 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/canvas/canvas.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | let canvas = launchy::mk2::Canvas::guess(|_| {})?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | assert_eq!(canvas.bounding_box_height(), 9); [INFO] [stdout] 7 | | } [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[E0599]: no method named `bounding_box_height` found for struct `launchy::DeviceCanvas` in the current scope [INFO] [stdout] --> src/canvas/canvas.rs:48:19 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(canvas.bounding_box_height(), 9); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `launchy::DeviceCanvas` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/canvas/canvas.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn bounding_box_height(&self) -> u32; [INFO] [stdout] | ------------------- [INFO] [stdout] | | [INFO] [stdout] | the method is available for `std::boxed::Box>` here [INFO] [stdout] | the method is available for `std::sync::Arc>` here [INFO] [stdout] | the method is available for `std::rc::Rc>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use crate::launchy::Canvas; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/canvas/canvas.rs - canvas::canvas::Canvas::toggle (line 201) stdout ---- [INFO] [stdout] error: `mut` must be attached to each individual binding [INFO] [stdout] --> src/canvas/canvas.rs:202:5 [INFO] [stdout] | [INFO] [stdout] 4 | let mut (canvas, poller) = launchy::mk2::Canvas::guess(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: add `mut` to each binding: `(mut canvas, mut poller)` [INFO] [stdout] | [INFO] [stdout] = note: `mut` may be followed by `variable` and `variable @ pattern` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `CanvasMessage` [INFO] [stdout] --> src/canvas/canvas.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 7 | if let CanvasMessage::Press { x, y } = msg { [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type or module `CanvasMessage` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/canvas.rs:206:23 [INFO] [stdout] | [INFO] [stdout] 8 | canvas.toggle(x, y, Color::WHITE); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/canvas/canvas.rs:202:28 [INFO] [stdout] | [INFO] [stdout] 4 | let mut (canvas, poller) = launchy::mk2::Canvas::guess(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^-- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/canvas/canvas.rs:202:5 [INFO] [stdout] | [INFO] [stdout] 4 | let mut (canvas, poller) = launchy::mk2::Canvas::guess(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ----------------------------- this expression has type `std::result::Result, launchy::MidiError>` [INFO] [stdout] | | [INFO] [stdout] | expected enum `std::result::Result`, found tuple [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result, launchy::MidiError>` [INFO] [stdout] found tuple `(_, _)` [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/canvas/canvas.rs:207:3 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | let mut (canvas, poller) = launchy::mk2::Canvas::guess(); [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | for msg in poller.iter() { [INFO] [stdout] ... | [INFO] [stdout] 9 | | canvas.flush()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 10 | | } [INFO] [stdout] 11 | | } [INFO] [stdout] 12 | | } [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 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/canvas/canvas.rs - canvas::canvas::Canvas::clear (line 222) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/canvas.rs:225:18 [INFO] [stdout] | [INFO] [stdout] 5 | canvas.set(0, 0, Color::MAGENTA); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/canvas.rs:226:18 [INFO] [stdout] | [INFO] [stdout] 6 | canvas.set(0, 1, Color::MAGENTA); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/canvas.rs:227:18 [INFO] [stdout] | [INFO] [stdout] 7 | canvas.set(1, 0, Color::MAGENTA); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/canvas.rs:228:18 [INFO] [stdout] | [INFO] [stdout] 8 | canvas.set(1, 1, Color::MAGENTA); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `canvas` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:225:1 [INFO] [stdout] | [INFO] [stdout] 5 | canvas.set(0, 0, Color::MAGENTA); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `canvas` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:226:1 [INFO] [stdout] | [INFO] [stdout] 6 | canvas.set(0, 1, Color::MAGENTA); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `canvas` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 7 | canvas.set(1, 0, Color::MAGENTA); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `canvas` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:228:1 [INFO] [stdout] | [INFO] [stdout] 8 | canvas.set(1, 1, Color::MAGENTA); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `canvas` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:232:1 [INFO] [stdout] | [INFO] [stdout] 12 | canvas.clear(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `canvas` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:233:1 [INFO] [stdout] | [INFO] [stdout] 13 | canvas.flush()?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'std::thread::sleep_ms': replaced by `std::thread::sleep` [INFO] [stdout] --> src/canvas/canvas.rs:230:1 [INFO] [stdout] | [INFO] [stdout] 10 | std::thread::sleep_ms(1000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [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/canvas/canvas.rs:233:1 [INFO] [stdout] | [INFO] [stdout] 4 | / fn main() { [INFO] [stdout] 5 | | canvas.set(0, 0, Color::MAGENTA); [INFO] [stdout] 6 | | canvas.set(0, 1, Color::MAGENTA); [INFO] [stdout] 7 | | canvas.set(1, 0, Color::MAGENTA); [INFO] [stdout] ... | [INFO] [stdout] 13 | | canvas.flush()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 14 | | } [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 11 previous errors; 1 warning emitted [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/launchpad_mk2/output.rs - launchpad_mk2::output::Output (line 213) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Output` [INFO] [stdout] --> src/launchpad_mk2/output.rs:214:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut output = Output::guess(); [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Output` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:216:18 [INFO] [stdout] | [INFO] [stdout] 5 | output.light_all(PaletteColor::BLACK); // clear screen [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:219:21 [INFO] [stdout] | [INFO] [stdout] 8 | output.light_row(4, PaletteColor::RED); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:220:21 [INFO] [stdout] | [INFO] [stdout] 9 | output.light_row(5, PaletteColor::RED); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:221:24 [INFO] [stdout] | [INFO] [stdout] 10 | output.light_column(4, PaletteColor::RED); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:222:24 [INFO] [stdout] | [INFO] [stdout] 11 | output.light_column(5, PaletteColor::RED); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Button` [INFO] [stdout] --> src/launchpad_mk2/output.rs:225:14 [INFO] [stdout] | [INFO] [stdout] 14 | output.light(Button::GridButton { x: 0, y: 0 }, PaletteColor::MAGENTA); [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Button` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:225:49 [INFO] [stdout] | [INFO] [stdout] 14 | output.light(Button::GridButton { x: 0, y: 0 }, PaletteColor::MAGENTA); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/canvas/pad.rs - canvas::pad::Pad (line 10) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Pad` in this scope [INFO] [stdout] --> src/canvas/pad.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 3 | let pad = Pad { x: 3, y: 6 }; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use launchy::Pad; [INFO] [stdout] | [INFO] [stdout] 2 | use launchy::launch_control::Button::Pad; [INFO] [stdout] | [INFO] [stdout] 2 | use launchy::prelude::Pad; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Pad` in this scope [INFO] [stdout] --> src/canvas/pad.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(pad + (4, 4), Pad { x: 7, y: 10 }); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use launchy::Pad; [INFO] [stdout] | [INFO] [stdout] 2 | use launchy::launch_control::Button::Pad; [INFO] [stdout] | [INFO] [stdout] 2 | use launchy::prelude::Pad; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Pad` in this scope [INFO] [stdout] --> src/canvas/pad.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(pad - (4, 4), Pad { x: -1, y: 2 }); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use launchy::Pad; [INFO] [stdout] | [INFO] [stdout] 2 | use launchy::launch_control::Button::Pad; [INFO] [stdout] | [INFO] [stdout] 2 | use launchy::prelude::Pad; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/canvas/layout.rs - canvas::layout::CanvasLayout::add (line 163) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `CanvasLayout` [INFO] [stdout] --> src/canvas/layout.rs:168:32 [INFO] [stdout] | [INFO] [stdout] 8 | let mut inner_canvas_layout = CanvasLayout::new(callback); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `CanvasLayout` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `canvas_layout` in this scope [INFO] [stdout] --> src/canvas/layout.rs:164:1 [INFO] [stdout] | [INFO] [stdout] 4 | canvas_layout.add(0, 0, |callback| launchy::mk2::Canvas::guess(callback))?; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `canvas_layout` in this scope [INFO] [stdout] --> src/canvas/layout.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 7 | canvas_layout.add(0, 0, |callback| { [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/canvas/layout.rs:164:1 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | canvas_layout.add(0, 0, |callback| launchy::mk2::Canvas::guess(callback))?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | // or even nested layouts: [INFO] [stdout] ... | [INFO] [stdout] 10 | | })?; [INFO] [stdout] 11 | | } [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[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/canvas/layout.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | canvas_layout.add(0, 0, |callback| launchy::mk2::Canvas::guess(callback))?; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | // or even nested layouts: [INFO] [stdout] 7 | /| canvas_layout.add(0, 0, |callback| { [INFO] [stdout] 8 | || let mut inner_canvas_layout = CanvasLayout::new(callback); [INFO] [stdout] 9 | || inner_canvas_layout.add(0, 0, |inner_callback| launchy::mk2::Canvas::guess(inner_callback)) [INFO] [stdout] 10 | || })?; [INFO] [stdout] | ||___^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 11 | | } [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 5 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/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_columns (line 425) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:427:6 [INFO] [stdout] | [INFO] [stdout] 4 | (0, PaletteColor::YELLOW), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:428:6 [INFO] [stdout] | [INFO] [stdout] 5 | (1, PaletteColor::BLUE), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:426:1 [INFO] [stdout] | [INFO] [stdout] 3 | output.light_columns(&[ [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/launchpad_mk2/output.rs:426:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | output.light_columns(&[ [INFO] [stdout] | |_^ [INFO] [stdout] 4 | || (0, PaletteColor::YELLOW), [INFO] [stdout] 5 | || (1, PaletteColor::BLUE), [INFO] [stdout] 6 | || ])?; [INFO] [stdout] | ||___^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } [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 4 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/launchpad_mk2/output.rs - launchpad_mk2::output::Output::enter_fader_mode (line 568) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Fader` [INFO] [stdout] --> src/launchpad_mk2/output.rs:572:2 [INFO] [stdout] | [INFO] [stdout] 6 | Fader::new(0, PaletteColor::GREEN, 0), [INFO] [stdout] | ^^^^^ use of undeclared type or module `Fader` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:572:16 [INFO] [stdout] | [INFO] [stdout] 6 | Fader::new(0, PaletteColor::GREEN, 0), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Fader` [INFO] [stdout] --> src/launchpad_mk2/output.rs:573:2 [INFO] [stdout] | [INFO] [stdout] 7 | Fader::new(1, PaletteColor::GREEN, 127), [INFO] [stdout] | ^^^^^ use of undeclared type or module `Fader` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:573:16 [INFO] [stdout] | [INFO] [stdout] 7 | Fader::new(1, PaletteColor::GREEN, 127), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Fader` [INFO] [stdout] --> src/launchpad_mk2/output.rs:574:2 [INFO] [stdout] | [INFO] [stdout] 8 | Fader::new(7, PaletteColor::WHITE, 63), [INFO] [stdout] | ^^^^^ use of undeclared type or module `Fader` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:574:16 [INFO] [stdout] | [INFO] [stdout] 8 | Fader::new(7, PaletteColor::WHITE, 63), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:569:23 [INFO] [stdout] | [INFO] [stdout] 3 | let mut fader_setup = output.enter_fader_mode()?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `fader_mode` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:571:1 [INFO] [stdout] | [INFO] [stdout] 5 | fader_mode.designate_faders(&[ [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/launchpad_mk2/output.rs:569:23 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let mut fader_setup = output.enter_fader_mode()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | fader_mode.designate_faders(&[ [INFO] [stdout] ... | [INFO] [stdout] 11 | | let mut output = fader_setup.exit()?; [INFO] [stdout] 12 | | } [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[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/launchpad_mk2/output.rs:571:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let mut fader_setup = output.enter_fader_mode()?; [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | fader_mode.designate_faders(&[ [INFO] [stdout] | |_^ [INFO] [stdout] 6 | || Fader::new(0, PaletteColor::GREEN, 0), [INFO] [stdout] 7 | || Fader::new(1, PaletteColor::GREEN, 127), [INFO] [stdout] 8 | || Fader::new(7, PaletteColor::WHITE, 63), [INFO] [stdout] 9 | || ])?; [INFO] [stdout] | ||___^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 10 | | [INFO] [stdout] 11 | | let mut output = fader_setup.exit()?; [INFO] [stdout] 12 | | } [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[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/launchpad_mk2/output.rs:577:18 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let mut fader_setup = output.enter_fader_mode()?; [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | fader_mode.designate_faders(&[ [INFO] [stdout] ... | [INFO] [stdout] 11 | | let mut output = fader_setup.exit()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 12 | | } [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 11 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/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_all (line 462) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:463:18 [INFO] [stdout] | [INFO] [stdout] 3 | output.light_all(PaletteColor::BLACK)?; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:463:1 [INFO] [stdout] | [INFO] [stdout] 3 | output.light_all(PaletteColor::BLACK)?; [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/launchpad_mk2/output.rs:463:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | output.light_all(PaletteColor::BLACK)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } [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/canvas/canvas.rs - canvas::canvas::Canvas::is_valid (line 53) 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/canvas/canvas.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | let canvas = launchy::mk2::Canvas::guess(|_| {})?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | assert!(canvas.is_valid(7, 0)); [INFO] [stdout] 7 | | assert!(!canvas.is_valid(8, 0)); [INFO] [stdout] 8 | | } [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[E0599]: no method named `is_valid` found for struct `launchy::DeviceCanvas` in the current scope [INFO] [stdout] --> src/canvas/canvas.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 6 | assert!(canvas.is_valid(7, 0)); [INFO] [stdout] | ^^^^^^^^ method not found in `launchy::DeviceCanvas` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/canvas/canvas.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | fn is_valid(&self, x: u32, y: u32) -> bool; [INFO] [stdout] | -------- [INFO] [stdout] | | [INFO] [stdout] | the method is available for `std::boxed::Box>` here [INFO] [stdout] | the method is available for `std::sync::Arc>` here [INFO] [stdout] | the method is available for `std::rc::Rc>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use crate::launchy::Canvas; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_valid` found for struct `launchy::DeviceCanvas` in the current scope [INFO] [stdout] --> src/canvas/canvas.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 7 | assert!(!canvas.is_valid(8, 0)); [INFO] [stdout] | ^^^^^^^^ method not found in `launchy::DeviceCanvas` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/canvas/canvas.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | fn is_valid(&self, x: u32, y: u32) -> bool; [INFO] [stdout] | -------- [INFO] [stdout] | | [INFO] [stdout] | the method is available for `std::boxed::Box>` here [INFO] [stdout] | the method is available for `std::sync::Arc>` here [INFO] [stdout] | the method is available for `std::rc::Rc>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use crate::launchy::Canvas; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/canvas/canvas.rs - canvas::canvas::Canvas::flush (line 71) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/canvas.rs:74:30 [INFO] [stdout] | [INFO] [stdout] 6 | canvas[Pad { x: 0, y: 0 }] = Color::RED; [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/canvas.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 7 | canvas[Pad { x: 1, y: 0 }] = Color::GREEN; [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/canvas.rs:76:30 [INFO] [stdout] | [INFO] [stdout] 8 | canvas[Pad { x: 2, y: 0 }] = Color::RED; [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/canvas.rs:77:30 [INFO] [stdout] | [INFO] [stdout] 9 | canvas[Pad { x: 3, y: 0 }] = Color::GREEN; [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Pad` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 6 | canvas[Pad { x: 0, y: 0 }] = Color::RED; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::Pad; [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::launch_control::Button::Pad; [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::prelude::Pad; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Pad` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 7 | canvas[Pad { x: 1, y: 0 }] = Color::GREEN; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::Pad; [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::launch_control::Button::Pad; [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::prelude::Pad; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Pad` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 8 | canvas[Pad { x: 2, y: 0 }] = Color::RED; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::Pad; [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::launch_control::Button::Pad; [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::prelude::Pad; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Pad` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 9 | canvas[Pad { x: 3, y: 0 }] = Color::GREEN; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::Pad; [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::launch_control::Button::Pad; [INFO] [stdout] | [INFO] [stdout] 3 | use launchy::prelude::Pad; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/canvas/canvas.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | let mut canvas = launchy::mk2::Canvas::guess(|_| {})?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | canvas[Pad { x: 0, y: 0 }] = Color::RED; [INFO] [stdout] ... | [INFO] [stdout] 12 | | canvas.flush()?; [INFO] [stdout] 13 | | } [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[E0599]: no method named `flush` found for struct `launchy::DeviceCanvas` in the current scope [INFO] [stdout] --> src/canvas/canvas.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 12 | canvas.flush()?; [INFO] [stdout] | ^^^^^ method not found in `launchy::DeviceCanvas` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/canvas/canvas.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | fn flush(&mut self) -> Result<(), crate::MidiError>; [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the method is available for `std::boxed::Box>` here [INFO] [stdout] | the method is available for `std::sync::Arc>` here [INFO] [stdout] | the method is available for `std::rc::Rc>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use crate::launchy::Canvas; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/canvas/canvas.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | let mut canvas = launchy::mk2::Canvas::guess(|_| {})?; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | canvas[Pad { x: 0, y: 0 }] = Color::RED; [INFO] [stdout] ... | [INFO] [stdout] 12 | | canvas.flush()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 13 | | } [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 11 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0422, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light (line 654) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Button` [INFO] [stdout] --> src/launchpad_mk2/output.rs:655:14 [INFO] [stdout] | [INFO] [stdout] 3 | output.light(Button::VOLUME, PaletteColor::CYAN)?; [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Button` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:655:30 [INFO] [stdout] | [INFO] [stdout] 3 | output.light(Button::VOLUME, PaletteColor::CYAN)?; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:655:1 [INFO] [stdout] | [INFO] [stdout] 3 | output.light(Button::VOLUME, PaletteColor::CYAN)?; [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/launchpad_mk2/output.rs:655:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | output.light(Button::VOLUME, PaletteColor::CYAN)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } [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 4 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/canvas/canvas.rs - canvas::canvas::Canvas::iter (line 172) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/canvas/canvas.rs:174:16 [INFO] [stdout] | [INFO] [stdout] 4 | canvas[pad] = Color::WHITE; [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `canvas` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 3 | for pad in canvas.iter() { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `canvas` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:174:2 [INFO] [stdout] | [INFO] [stdout] 4 | canvas[pad] = Color::WHITE; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `canvas` in this scope [INFO] [stdout] --> src/canvas/canvas.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 6 | canvas.flush()?; [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/canvas/canvas.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | for pad in canvas.iter() { [INFO] [stdout] 4 | | canvas[pad] = Color::WHITE; [INFO] [stdout] 5 | | } [INFO] [stdout] 6 | | canvas.flush()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } [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 5 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/launchpad_mk2/output.rs - launchpad_mk2::output::Output::flash_multiple (line 742) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Button` [INFO] [stdout] --> src/launchpad_mk2/output.rs:744:3 [INFO] [stdout] | [INFO] [stdout] 4 | (Button::USER_1, PaletteColor::new(9)), [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Button` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:744:19 [INFO] [stdout] | [INFO] [stdout] 4 | (Button::USER_1, PaletteColor::new(9)), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Button` [INFO] [stdout] --> src/launchpad_mk2/output.rs:745:3 [INFO] [stdout] | [INFO] [stdout] 5 | (Button::USER_2, PaletteColor::new(9)), [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Button` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:745:19 [INFO] [stdout] | [INFO] [stdout] 5 | (Button::USER_2, PaletteColor::new(9)), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:743:1 [INFO] [stdout] | [INFO] [stdout] 3 | output.flash_multiple(&[ [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/launchpad_mk2/output.rs:743:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | output.flash_multiple(&[ [INFO] [stdout] | |_^ [INFO] [stdout] 4 | || (Button::USER_1, PaletteColor::new(9)), [INFO] [stdout] 5 | || (Button::USER_2, PaletteColor::new(9)), [INFO] [stdout] 6 | || ])?; [INFO] [stdout] | ||___^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } [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 6 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/canvas/padded.rs - canvas::padded::PaddingCanvas (line 21) stdout ---- [INFO] [stdout] error[E0277]: the trait bound `std::result::Result, launchy::MidiError>: launchy::Canvas` is not satisfied [INFO] [stdout] --> src/canvas/padded.rs:26:47 [INFO] [stdout] | [INFO] [stdout] 8 | let mut canvas = launchy::PaddingCanvas::from(canvas); [INFO] [stdout] | ^^^^^^ the trait `launchy::Canvas` is not implemented for `std::result::Result, launchy::MidiError>` [INFO] [stdout] | [INFO] [stdout] = note: required by `launchy::PaddingCanvas::::from` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::result::Result, launchy::MidiError>: launchy::Canvas` is not satisfied [INFO] [stdout] --> src/canvas/padded.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 8 | let mut canvas = launchy::PaddingCanvas::from(canvas); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `launchy::Canvas` is not implemented for `std::result::Result, launchy::MidiError>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/canvas/padded.rs:35:29 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct PaddingCanvas { [INFO] [stdout] | ------ required by this bound in `launchy::PaddingCanvas` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set` found for struct `launchy::PaddingCanvas, launchy::MidiError>>` in the current scope [INFO] [stdout] --> src/canvas/padded.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 13 | canvas.set(x, y, launchy::Color::WHITE); [INFO] [stdout] | ^^^ method not found in `launchy::PaddingCanvas, launchy::MidiError>>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_rgb (line 714) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Button` [INFO] [stdout] --> src/launchpad_mk2/output.rs:715:18 [INFO] [stdout] | [INFO] [stdout] 3 | output.light_rgb(Button::GridButton { x: 7, y: 7 }, RgbColor::new(0, 63, 63))?; [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Button` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `RgbColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:715:53 [INFO] [stdout] | [INFO] [stdout] 3 | output.light_rgb(Button::GridButton { x: 7, y: 7 }, RgbColor::new(0, 63, 63))?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type or module `RgbColor` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:715:1 [INFO] [stdout] | [INFO] [stdout] 3 | output.light_rgb(Button::GridButton { x: 7, y: 7 }, RgbColor::new(0, 63, 63))?; [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/launchpad_mk2/output.rs:715:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | output.light_rgb(Button::GridButton { x: 7, y: 7 }, RgbColor::new(0, 63, 63))?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } [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 4 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/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_multiple (line 725) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Button` [INFO] [stdout] --> src/launchpad_mk2/output.rs:727:3 [INFO] [stdout] | [INFO] [stdout] 4 | (Button::USER_1, PaletteColor::new(9)), [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Button` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:727:19 [INFO] [stdout] | [INFO] [stdout] 4 | (Button::USER_1, PaletteColor::new(9)), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Button` [INFO] [stdout] --> src/launchpad_mk2/output.rs:728:3 [INFO] [stdout] | [INFO] [stdout] 5 | (Button::USER_2, PaletteColor::new(9)), [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Button` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:728:19 [INFO] [stdout] | [INFO] [stdout] 5 | (Button::USER_2, PaletteColor::new(9)), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:726:1 [INFO] [stdout] | [INFO] [stdout] 3 | output.light_multiple(&[ [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/launchpad_mk2/output.rs:726:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | output.light_multiple(&[ [INFO] [stdout] | |_^ [INFO] [stdout] 4 | || (Button::USER_1, PaletteColor::new(9)), [INFO] [stdout] 5 | || (Button::USER_2, PaletteColor::new(9)), [INFO] [stdout] 6 | || ])?; [INFO] [stdout] | ||___^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } [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 6 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/launchpad_mk2/output.rs - launchpad_mk2::output::Output::flash (line 668) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Button` [INFO] [stdout] --> src/launchpad_mk2/output.rs:669:14 [INFO] [stdout] | [INFO] [stdout] 3 | output.flash(Button::UP, PaletteColor::RED)?; [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Button` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:669:26 [INFO] [stdout] | [INFO] [stdout] 3 | output.flash(Button::UP, PaletteColor::RED)?; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:669:1 [INFO] [stdout] | [INFO] [stdout] 3 | output.flash(Button::UP, PaletteColor::RED)?; [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/launchpad_mk2/output.rs:669:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | output.flash(Button::UP, PaletteColor::RED)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } [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 4 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/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_column (line 689) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:690:24 [INFO] [stdout] | [INFO] [stdout] 3 | output.light_column(8, PaletteColor::WHITE)?; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:690:1 [INFO] [stdout] | [INFO] [stdout] 3 | output.light_column(8, PaletteColor::WHITE)?; [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/launchpad_mk2/output.rs:690:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | output.light_column(8, PaletteColor::WHITE)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } [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/launchpad_mk2/output.rs - launchpad_mk2::output::Output::scroll_text (line 534) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:535:46 [INFO] [stdout] | [INFO] [stdout] 3 | output.scroll_text(b"\x01Hello, \x07world!", PaletteColor::BLUE, false)?; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:535:1 [INFO] [stdout] | [INFO] [stdout] 3 | output.scroll_text(b"\x01Hello, \x07world!", PaletteColor::BLUE, false)?; [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/launchpad_mk2/output.rs:535:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | output.scroll_text(b"\x01Hello, \x07world!", PaletteColor::BLUE, false)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } [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/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_row (line 702) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:703:21 [INFO] [stdout] | [INFO] [stdout] 3 | output.light_row(1, PaletteColor::GREEN)?; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:703:1 [INFO] [stdout] | [INFO] [stdout] 3 | output.light_row(1, PaletteColor::GREEN)?; [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/launchpad_mk2/output.rs:703:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | output.light_row(1, PaletteColor::GREEN)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } [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/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_multiple_rgb (line 391) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Button` [INFO] [stdout] --> src/launchpad_mk2/output.rs:393:3 [INFO] [stdout] | [INFO] [stdout] 4 | (Button::GridButton { x: 0, y: 0 }, RgbColor.new(0, 0, 63)), [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Button` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Button` [INFO] [stdout] --> src/launchpad_mk2/output.rs:394:3 [INFO] [stdout] | [INFO] [stdout] 5 | (Button::GridButton { x: 7, y: 0 }, RgbColor.new(63, 0, 0)), [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Button` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:392:1 [INFO] [stdout] | [INFO] [stdout] 3 | output.light_multiple_rgb(&[ [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RgbColor` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:393:38 [INFO] [stdout] | [INFO] [stdout] 4 | (Button::GridButton { x: 0, y: 0 }, RgbColor.new(0, 0, 63)), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RgbColor` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:394:38 [INFO] [stdout] | [INFO] [stdout] 5 | (Button::GridButton { x: 7, y: 0 }, RgbColor.new(63, 0, 0)), [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/launchpad_mk2/output.rs:392:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | output.light_multiple_rgb(&[ [INFO] [stdout] | |_^ [INFO] [stdout] 4 | || (Button::GridButton { x: 0, y: 0 }, RgbColor.new(0, 0, 63)), [INFO] [stdout] 5 | || (Button::GridButton { x: 7, y: 0 }, RgbColor.new(63, 0, 0)), [INFO] [stdout] 6 | || ])?; [INFO] [stdout] | ||___^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } [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 6 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/lib.rs - (line 30) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/lib.rs:31:41 [INFO] [stdout] | [INFO] [stdout] 3 | canvas[msg.pad()] = if msg.is_press() { Color::WHITE } else { Color::BLACK }; [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Color` [INFO] [stdout] --> src/lib.rs:31:63 [INFO] [stdout] | [INFO] [stdout] 3 | canvas[msg.pad()] = if msg.is_press() { Color::WHITE } else { Color::BLACK }; [INFO] [stdout] | ^^^^^ use of undeclared type or module `Color` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `canvas` in this scope [INFO] [stdout] --> src/lib.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 3 | canvas[msg.pad()] = if msg.is_press() { Color::WHITE } else { Color::BLACK }; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `msg` in this scope [INFO] [stdout] --> src/lib.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 3 | canvas[msg.pad()] = if msg.is_press() { Color::WHITE } else { Color::BLACK }; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `msg` in this scope [INFO] [stdout] --> src/lib.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 3 | canvas[msg.pad()] = if msg.is_press() { Color::WHITE } else { Color::BLACK }; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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/launchpad_mk2/output.rs - launchpad_mk2::output::Output::set_buttons (line 356) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Button` [INFO] [stdout] --> src/launchpad_mk2/output.rs:358:3 [INFO] [stdout] | [INFO] [stdout] 4 | (Button::ControlButton { index: 0 }, PaletteColor::YELLOW), [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Button` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:358:39 [INFO] [stdout] | [INFO] [stdout] 4 | (Button::ControlButton { index: 0 }, PaletteColor::YELLOW), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Button` [INFO] [stdout] --> src/launchpad_mk2/output.rs:359:3 [INFO] [stdout] | [INFO] [stdout] 5 | (Button::ControlButton { index: 1 }, PaletteColor::RED), [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Button` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:359:39 [INFO] [stdout] | [INFO] [stdout] 5 | (Button::ControlButton { index: 1 }, PaletteColor::RED), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `LightMode` [INFO] [stdout] --> src/launchpad_mk2/output.rs:360:4 [INFO] [stdout] | [INFO] [stdout] 6 | ], LightMode::Flash)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type or module `LightMode` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:357:1 [INFO] [stdout] | [INFO] [stdout] 3 | output.set_buttons(&[ [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/launchpad_mk2/output.rs:357:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | output.set_buttons(&[ [INFO] [stdout] | |_^ [INFO] [stdout] 4 | || (Button::ControlButton { index: 0 }, PaletteColor::YELLOW), [INFO] [stdout] 5 | || (Button::ControlButton { index: 1 }, PaletteColor::RED), [INFO] [stdout] 6 | || ], LightMode::Flash)?; [INFO] [stdout] | ||_____________________^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } [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 7 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/launchpad_mk2/output.rs - launchpad_mk2::output::PaletteColor (line 11) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 4 | output.light_all(PaletteColor::new(92)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 4 | output.light_all(PaletteColor::new(92)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 6 | output.light_all(92.into()); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_rows (line 442) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:444:6 [INFO] [stdout] | [INFO] [stdout] 4 | (0, PaletteColor::MAGENTA), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:445:6 [INFO] [stdout] | [INFO] [stdout] 5 | (1, PaletteColor::GREEN), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:443:1 [INFO] [stdout] | [INFO] [stdout] 3 | output.light_rows(&[ [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/launchpad_mk2/output.rs:443:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | output.light_rows(&[ [INFO] [stdout] | |_^ [INFO] [stdout] 4 | || (0, PaletteColor::MAGENTA), [INFO] [stdout] 5 | || (1, PaletteColor::GREEN), [INFO] [stdout] 6 | || ])?; [INFO] [stdout] | ||___^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } [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 4 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/launchpad_mk2/output.rs - launchpad_mk2::output::Output::set_button (line 326) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Output` [INFO] [stdout] --> src/launchpad_mk2/output.rs:327:18 [INFO] [stdout] | [INFO] [stdout] 3 | let mut output = Output::guess(); [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Output` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Button` [INFO] [stdout] --> src/launchpad_mk2/output.rs:329:14 [INFO] [stdout] | [INFO] [stdout] 5 | let button = Button::ControlButton { index: 0 }; [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Button` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:330:13 [INFO] [stdout] | [INFO] [stdout] 6 | let color = PaletteColor::YELLOW; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `LightMode` [INFO] [stdout] --> src/launchpad_mk2/output.rs:331:18 [INFO] [stdout] | [INFO] [stdout] 7 | let light_mode = LightMode::Pulse; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type or module `LightMode` [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/launchpad_mk2/output.rs:332:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let mut output = Output::guess(); [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | let button = Button::ControlButton { index: 0 }; [INFO] [stdout] ... | [INFO] [stdout] 8 | | output.set_button(button, color, light_mode)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 9 | | } [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 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::pulse_multiple (line 759) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Button` [INFO] [stdout] --> src/launchpad_mk2/output.rs:761:3 [INFO] [stdout] | [INFO] [stdout] 4 | (Button::USER_1, PaletteColor::new(9)), [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Button` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:761:19 [INFO] [stdout] | [INFO] [stdout] 4 | (Button::USER_1, PaletteColor::new(9)), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Button` [INFO] [stdout] --> src/launchpad_mk2/output.rs:762:3 [INFO] [stdout] | [INFO] [stdout] 5 | (Button::USER_2, PaletteColor::new(9)), [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Button` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:762:19 [INFO] [stdout] | [INFO] [stdout] 5 | (Button::USER_2, PaletteColor::new(9)), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:760:1 [INFO] [stdout] | [INFO] [stdout] 3 | output.pulse_multiple(&[ [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/launchpad_mk2/output.rs:760:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | output.pulse_multiple(&[ [INFO] [stdout] | |_^ [INFO] [stdout] 4 | || (Button::USER_1, PaletteColor::new(9)), [INFO] [stdout] 5 | || (Button::USER_2, PaletteColor::new(9)), [INFO] [stdout] 6 | || ])?; [INFO] [stdout] | ||___^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } [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 6 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/launchpad_mk2/output.rs - launchpad_mk2::output::Output::send_clock_tick (line 480) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:485:2 [INFO] [stdout] | [INFO] [stdout] 7 | output.send_clock_tick()?; [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/launchpad_mk2/output.rs:485:2 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let beats_per_minute = 200; [INFO] [stdout] 4 | | let clock_ticks_per_second = beats_per_minute * 60 * 24; [INFO] [stdout] 5 | | let clock_tick_interval = std::time::Duration::from_millis(1000 / clock_ticks_per_second); [INFO] [stdout] 6 | | loop { [INFO] [stdout] 7 | | output.send_clock_tick()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 8 | | std::thread::sleep(clock_tick_interval); [INFO] [stdout] 9 | | } [INFO] [stdout] 10 | | } [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/launchpad_mk2/output.rs - launchpad_mk2::output::Output::pulse (line 679) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Button` [INFO] [stdout] --> src/launchpad_mk2/output.rs:680:14 [INFO] [stdout] | [INFO] [stdout] 3 | output.pulse(Button::GridButton { x: 7, y: 0 }, PaletteColor::MAGENTA)?; [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Button` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PaletteColor` [INFO] [stdout] --> src/launchpad_mk2/output.rs:680:49 [INFO] [stdout] | [INFO] [stdout] 3 | output.pulse(Button::GridButton { x: 7, y: 0 }, PaletteColor::MAGENTA)?; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type or module `PaletteColor` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `output` in this scope [INFO] [stdout] --> src/launchpad_mk2/output.rs:680:1 [INFO] [stdout] | [INFO] [stdout] 3 | output.pulse(Button::GridButton { x: 7, y: 0 }, PaletteColor::MAGENTA)?; [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/launchpad_mk2/output.rs:680:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | output.pulse(Button::GridButton { x: 7, y: 0 }, PaletteColor::MAGENTA)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } [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 4 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/lib.rs - (line 16) 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/lib.rs:19:34 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | use launchy::{CanvasMessage, Color}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let (mut canvas, input_poller) = launchy::s::Canvas::guess_polling()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 14 | | } [INFO] [stdout] 15 | | } [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[E0599]: no method named `iter` found for struct `launchy::DeviceCanvasPoller` in the current scope [INFO] [stdout] --> src/lib.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 8 | for msg in input_poller.iter() { [INFO] [stdout] | ^^^^ method not found in `launchy::DeviceCanvasPoller` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/midi_io.rs:190:8 [INFO] [stdout] | [INFO] [stdout] 190 | fn iter(&self) -> std::sync::mpsc::Iter { [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | the method is available for `std::boxed::Box` here [INFO] [stdout] | the method is available for `std::sync::Arc` here [INFO] [stdout] | the method is available for `std::rc::Rc` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use crate::launchy::MsgPollingWrapper; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0026]: variant `launchy::CanvasMessage::Press` does not have a field named `pad` [INFO] [stdout] --> src/lib.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 10 | CanvasMessage::Press { pad } => canvas[pad] = Color::WHITE, [INFO] [stdout] | ^^^ variant `launchy::CanvasMessage::Press` does not have this field [INFO] [stdout] [INFO] [stdout] error[E0027]: pattern does not mention fields `x`, `y` [INFO] [stdout] --> src/lib.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 10 | CanvasMessage::Press { pad } => canvas[pad] = Color::WHITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing fields `x`, `y` [INFO] [stdout] [INFO] [stdout] error[E0026]: variant `launchy::CanvasMessage::Release` does not have a field named `pad` [INFO] [stdout] --> src/lib.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 11 | CanvasMessage::Release { pad } => canvas[pad] = Color::BLACK, [INFO] [stdout] | ^^^ variant `launchy::CanvasMessage::Release` does not have this field [INFO] [stdout] [INFO] [stdout] error[E0027]: pattern does not mention fields `x`, `y` [INFO] [stdout] --> src/lib.rs:24:3 [INFO] [stdout] | [INFO] [stdout] 11 | CanvasMessage::Release { pad } => canvas[pad] = Color::BLACK, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing fields `x`, `y` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `flush` found for struct `launchy::DeviceCanvas` in the current scope [INFO] [stdout] --> src/lib.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 13 | canvas.flush()?; [INFO] [stdout] | ^^^^^ method not found in `launchy::DeviceCanvas` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/canvas/canvas.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | fn flush(&mut self) -> Result<(), crate::MidiError>; [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | the method is available for `std::boxed::Box>` here [INFO] [stdout] | the method is available for `std::sync::Arc>` here [INFO] [stdout] | the method is available for `std::rc::Rc>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use crate::launchy::Canvas; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:26:2 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | use launchy::{CanvasMessage, Color}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let (mut canvas, input_poller) = launchy::s::Canvas::guess_polling()?; [INFO] [stdout] ... | [INFO] [stdout] 13 | | canvas.flush()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 14 | | } [INFO] [stdout] 15 | | } [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 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0026, E0027, E0277, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0026`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 49) stdout ---- [INFO] [stdout] error[E0599]: no function or associated item named `guess` found for struct `launchy::launchpad_s::Output` in the current scope [INFO] [stdout] --> src/lib.rs:53:38 [INFO] [stdout] | [INFO] [stdout] 7 | let mut output = launchy::s::Output::guess()?; [INFO] [stdout] | ^^^^^ function or associated item not found in `launchy::launchpad_s::Output` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use crate::launchy::OutputDevice; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:53:18 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | use launchy::Color; [INFO] [stdout] 5 | | use launchy::s::{DoubleBuffering, DoubleBufferingBehavior, Buffer}; [INFO] [stdout] 6 | | [INFO] [stdout] 7 | | let mut output = launchy::s::Output::guess()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 32 | | }); [INFO] [stdout] 33 | | } [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, E0599. [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/canvas/canvas.rs - canvas::canvas::Canvas (line 16) [INFO] [stdout] src/canvas/canvas.rs - canvas::canvas::Canvas::bounding_box_height (line 45) [INFO] [stdout] src/canvas/canvas.rs - canvas::canvas::Canvas::bounding_box_width (line 37) [INFO] [stdout] src/canvas/canvas.rs - canvas::canvas::Canvas::clear (line 222) [INFO] [stdout] src/canvas/canvas.rs - canvas::canvas::Canvas::flush (line 71) [INFO] [stdout] src/canvas/canvas.rs - canvas::canvas::Canvas::get (line 92) [INFO] [stdout] src/canvas/canvas.rs - canvas::canvas::Canvas::is_valid (line 53) [INFO] [stdout] src/canvas/canvas.rs - canvas::canvas::Canvas::iter (line 172) [INFO] [stdout] src/canvas/canvas.rs - canvas::canvas::Canvas::iter (line 180) [INFO] [stdout] src/canvas/canvas.rs - canvas::canvas::Canvas::toggle (line 201) [INFO] [stdout] src/canvas/color.rs - canvas::color::Color::from_hue (line 34) [INFO] [stdout] src/canvas/color.rs - canvas::color::Color::mix (line 100) [INFO] [stdout] src/canvas/color.rs - canvas::color::Color::new (line 23) [INFO] [stdout] src/canvas/layout.rs - canvas::layout::CanvasLayout (line 109) [INFO] [stdout] src/canvas/layout.rs - canvas::layout::CanvasLayout::add (line 163) [INFO] [stdout] src/canvas/layout.rs - canvas::layout::CanvasLayout::add_by_guess (line 226) [INFO] [stdout] src/canvas/pad.rs - canvas::pad::Pad (line 10) [INFO] [stdout] src/canvas/padded.rs - canvas::padded::PaddingCanvas (line 21) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output (line 213) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::enter_fader_mode (line 568) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::flash (line 668) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::flash_multiple (line 742) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light (line 654) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_all (line 462) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_column (line 689) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_columns (line 425) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_multiple (line 725) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_multiple_rgb (line 391) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_rgb (line 714) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_row (line 702) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::light_rows (line 442) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::pulse (line 679) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::pulse_multiple (line 759) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::scroll_text (line 534) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::send_clock_tick (line 480) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::set_button (line 326) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::Output::set_buttons (line 356) [INFO] [stdout] src/launchpad_mk2/output.rs - launchpad_mk2::output::PaletteColor (line 11) [INFO] [stdout] src/lib.rs - (line 16) [INFO] [stdout] src/lib.rs - (line 30) [INFO] [stdout] src/lib.rs - (line 49) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 41 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" "5d774ee4fbc58b8111f08e6adcfd735f04681f405f49dd5b8ba558d1ba36bf5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d774ee4fbc58b8111f08e6adcfd735f04681f405f49dd5b8ba558d1ba36bf5c", kill_on_drop: false }` [INFO] [stdout] 5d774ee4fbc58b8111f08e6adcfd735f04681f405f49dd5b8ba558d1ba36bf5c