[INFO] fetching crate ratatui-template 0.1.1... [INFO] testing ratatui-template-0.1.1 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate ratatui-template 0.1.1 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate ratatui-template 0.1.1 [INFO] finished tweaking crates.io crate ratatui-template 0.1.1 [INFO] tweaked toml for crates.io crate ratatui-template 0.1.1 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate ratatui-template 0.1.1 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 92 packages to latest compatible versions [INFO] [stderr] Adding crossterm v0.27.0 (available: v0.29.0) [INFO] [stderr] Adding ratatui v0.24.0 (available: v0.30.0) [INFO] [stderr] Adding signal-hook v0.3.18 (available: v0.4.4) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded strum v0.25.0 [INFO] [stderr] Downloaded owo-colors v4.3.0 [INFO] [stderr] Downloaded tracing-error v0.2.1 [INFO] [stderr] Downloaded cassowary v0.3.0 [INFO] [stderr] Downloaded color-spantrace v0.3.0 [INFO] [stderr] Downloaded indenter v0.3.4 [INFO] [stderr] Downloaded strum_macros v0.25.3 [INFO] [stderr] Downloaded eyre v0.6.12 [INFO] [stderr] Downloaded crossterm v0.27.0 [INFO] [stderr] Downloaded ratatui v0.24.0 [INFO] [stderr] Downloaded color-eyre v0.6.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5d0cbf25ca52c95b06c959e3d362ffcc8ccf03355e9641686b03a53972a08eb8 [INFO] running `Command { std: "docker" "start" "-a" "5d0cbf25ca52c95b06c959e3d362ffcc8ccf03355e9641686b03a53972a08eb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d0cbf25ca52c95b06c959e3d362ffcc8ccf03355e9641686b03a53972a08eb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d0cbf25ca52c95b06c959e3d362ffcc8ccf03355e9641686b03a53972a08eb8", kill_on_drop: false }` [INFO] [stdout] 5d0cbf25ca52c95b06c959e3d362ffcc8ccf03355e9641686b03a53972a08eb8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 11f9300cfa26c006f273a5bea004766d1ad795ada7f59ce142dad138b9d9f047 [INFO] running `Command { std: "docker" "start" "-a" "11f9300cfa26c006f273a5bea004766d1ad795ada7f59ce142dad138b9d9f047", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.185 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Compiling owo-colors v4.3.0 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Compiling gimli v0.32.3 [INFO] [stderr] Compiling tracing-subscriber v0.3.23 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling color-spantrace v0.3.0 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling bitflags v2.11.1 [INFO] [stderr] Compiling indenter v0.3.4 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling unicode-segmentation v1.13.2 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling cassowary v0.3.0 [INFO] [stderr] Compiling indoc v2.0.7 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling tracing-error v0.2.1 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling mio v1.2.0 [INFO] [stderr] Compiling socket2 v0.6.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling signal-hook-mio v0.2.5 [INFO] [stderr] Compiling crossterm v0.27.0 [INFO] [stderr] Compiling addr2line v0.25.1 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling tokio-macros v2.7.0 [INFO] [stderr] Compiling strum_macros v0.25.3 [INFO] [stderr] Compiling tokio v1.52.1 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling backtrace v0.3.76 [INFO] [stderr] Compiling strum v0.25.0 [INFO] [stderr] Compiling ratatui v0.24.0 [INFO] [stderr] Compiling color-eyre v0.6.5 [INFO] [stderr] Compiling futures-executor v0.3.32 [INFO] [stderr] Compiling futures v0.3.32 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling ratatui-template v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.18s [INFO] running `Command { std: "docker" "inspect" "11f9300cfa26c006f273a5bea004766d1ad795ada7f59ce142dad138b9d9f047", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11f9300cfa26c006f273a5bea004766d1ad795ada7f59ce142dad138b9d9f047", kill_on_drop: false }` [INFO] [stdout] 11f9300cfa26c006f273a5bea004766d1ad795ada7f59ce142dad138b9d9f047 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3a099f763a7a93b3500e4e7c7400f201991b8674e0787e21fd99138a6ef9fbef [INFO] running `Command { std: "docker" "start" "-a" "3a099f763a7a93b3500e4e7c7400f201991b8674e0787e21fd99138a6ef9fbef", kill_on_drop: false }` [INFO] [stderr] Compiling ratatui-template v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.43s [INFO] running `Command { std: "docker" "inspect" "3a099f763a7a93b3500e4e7c7400f201991b8674e0787e21fd99138a6ef9fbef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a099f763a7a93b3500e4e7c7400f201991b8674e0787e21fd99138a6ef9fbef", kill_on_drop: false }` [INFO] [stdout] 3a099f763a7a93b3500e4e7c7400f201991b8674e0787e21fd99138a6ef9fbef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2eab1b6cf3dab5072ae186992130610bcbdbbf06a298c8cc79603a17167370ee [INFO] running `Command { std: "docker" "start" "-a" "2eab1b6cf3dab5072ae186992130610bcbdbbf06a298c8cc79603a17167370ee", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ratatui_template-e923f427eb34f8dc) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests ratatui_template [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test src/lib.rs - Tui::frame_rate (line 123) ... FAILED [INFO] [stdout] test src/lib.rs - Tui::paste (line 170) ... FAILED [INFO] [stdout] test src/lib.rs - Tui::paste (line 163) ... FAILED [INFO] [stdout] test src/lib.rs - Tui::mouse (line 139) ... FAILED [INFO] [stdout] test src/lib.rs - Tui::next (line 236) ... FAILED [INFO] [stdout] test src/lib.rs - Tui::mouse (line 146) ... FAILED [INFO] [stdout] test src/lib.rs - Tui::enter (line 187) ... FAILED [INFO] [stdout] test src/lib.rs - Tui::tick_rate (line 107) ... FAILED [INFO] [stdout] test src/lib.rs - Tui::new (line 87) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - Tui::frame_rate (line 123) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:128:31 [INFO] [stdout] | [INFO] [stdout] 124 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_123_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 128 | let mut interface = Tui::new()? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 124 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_123_0() -> Result<(), Box> { [INFO] [stdout] 125 | use ratatui_template::Tui; [INFO] [stdout] ... [INFO] [stdout] 129 | .frame_rate(fps); [INFO] [stdout] 130 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Tui::paste (line 170) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:174:38 [INFO] [stdout] | [INFO] [stdout] 171 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_170_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 174 | let mut no_paste_support = Tui::new()? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 171 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_170_0() -> Result<(), Box> { [INFO] [stdout] 172 | use ratatui_template::Tui; [INFO] [stdout] ... [INFO] [stdout] 177 | let mut also_no_paste_support = Tui::new()?; [INFO] [stdout] 178 + Ok(()) [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 `FromResidual`) [INFO] [stdout] --> src/lib.rs:177:43 [INFO] [stdout] | [INFO] [stdout] 171 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_170_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 177 | let mut also_no_paste_support = Tui::new()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 171 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_170_0() -> Result<(), Box> { [INFO] [stdout] 172 | use ratatui_template::Tui; [INFO] [stdout] ... [INFO] [stdout] 177 | let mut also_no_paste_support = Tui::new()?; [INFO] [stdout] 178 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Tui::paste (line 163) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:167:40 [INFO] [stdout] | [INFO] [stdout] 164 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_163_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 167 | let mut with_paste_support = Tui::new()? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 164 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_163_0() -> Result<(), Box> { [INFO] [stdout] 165 | use ratatui_template::Tui; [INFO] [stdout] ... [INFO] [stdout] 168 | .paste(true); [INFO] [stdout] 169 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Tui::mouse (line 139) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:143:40 [INFO] [stdout] | [INFO] [stdout] 140 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_139_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 143 | let mut with_mouse_support = Tui::new()? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 140 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_139_0() -> Result<(), Box> { [INFO] [stdout] 141 | use ratatui_template::Tui; [INFO] [stdout] ... [INFO] [stdout] 144 | .mouse(true); [INFO] [stdout] 145 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Tui::next (line 236) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:240:31 [INFO] [stdout] | [INFO] [stdout] 237 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_236_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 240 | let mut interface = Tui::new()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 237 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_236_0() -> Result<(), Box> { [INFO] [stdout] 238 | use ratatui_template::{Event, Tui}; [INFO] [stdout] ... [INFO] [stdout] 249 | interface.exit()?; [INFO] [stdout] 250 + Ok(()) [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 `FromResidual`) [INFO] [stdout] --> src/lib.rs:241:18 [INFO] [stdout] | [INFO] [stdout] 237 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_236_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 241 | interface.enter()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 237 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_236_0() -> Result<(), Box> { [INFO] [stdout] 238 | use ratatui_template::{Event, Tui}; [INFO] [stdout] ... [INFO] [stdout] 249 | interface.exit()?; [INFO] [stdout] 250 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:244:12 [INFO] [stdout] | [INFO] [stdout] 244 | if let Some(event) = interface.next() { [INFO] [stdout] | ^^^^^^^^^^^ ---------------- this expression has type `impl Future>` [INFO] [stdout] | | [INFO] [stdout] | expected future, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl Future>` [INFO] [stdout] found enum `Option<_>` [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 `FromResidual`) [INFO] [stdout] --> src/lib.rs:249:17 [INFO] [stdout] | [INFO] [stdout] 237 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_236_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 249 | interface.exit()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 237 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_236_0() -> Result<(), Box> { [INFO] [stdout] 238 | use ratatui_template::{Event, Tui}; [INFO] [stdout] ... [INFO] [stdout] 249 | interface.exit()?; [INFO] [stdout] 250 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Tui::mouse (line 146) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:150:38 [INFO] [stdout] | [INFO] [stdout] 147 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_146_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 150 | let mut no_mouse_support = Tui::new()? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 147 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_146_0() -> Result<(), Box> { [INFO] [stdout] 148 | use ratatui_template::Tui; [INFO] [stdout] ... [INFO] [stdout] 153 | let mut also_no_mouse_support = Tui::new()?; [INFO] [stdout] 154 + Ok(()) [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 `FromResidual`) [INFO] [stdout] --> src/lib.rs:153:43 [INFO] [stdout] | [INFO] [stdout] 147 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_146_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 153 | let mut also_no_mouse_support = Tui::new()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 147 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_146_0() -> Result<(), Box> { [INFO] [stdout] 148 | use ratatui_template::Tui; [INFO] [stdout] ... [INFO] [stdout] 153 | let mut also_no_mouse_support = Tui::new()?; [INFO] [stdout] 154 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Tui::enter (line 187) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:191:31 [INFO] [stdout] | [INFO] [stdout] 188 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_187_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 191 | let mut interface = Tui::new()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 188 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_187_0() -> Result<(), Box> { [INFO] [stdout] 189 | use ratatui_template::Tui; [INFO] [stdout] ... [INFO] [stdout] 198 | interface.exit()?; [INFO] [stdout] 199 + Ok(()) [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 `FromResidual`) [INFO] [stdout] --> src/lib.rs:193:18 [INFO] [stdout] | [INFO] [stdout] 188 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_187_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 193 | interface.enter()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 188 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_187_0() -> Result<(), Box> { [INFO] [stdout] 189 | use ratatui_template::Tui; [INFO] [stdout] ... [INFO] [stdout] 198 | interface.exit()?; [INFO] [stdout] 199 + Ok(()) [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 `FromResidual`) [INFO] [stdout] --> src/lib.rs:198:17 [INFO] [stdout] | [INFO] [stdout] 188 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_187_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 198 | interface.exit()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 188 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_187_0() -> Result<(), Box> { [INFO] [stdout] 189 | use ratatui_template::Tui; [INFO] [stdout] ... [INFO] [stdout] 198 | interface.exit()?; [INFO] [stdout] 199 + Ok(()) [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 E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Tui::tick_rate (line 107) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:112:31 [INFO] [stdout] | [INFO] [stdout] 108 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_107_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 112 | let mut interface = Tui::new()? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 108 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_107_0() -> Result<(), Box> { [INFO] [stdout] 109 | use ratatui_template::Tui; [INFO] [stdout] ... [INFO] [stdout] 113 | .tick_rate(tps); [INFO] [stdout] 114 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Tui::new (line 87) stdout ---- [INFO] [stdout] Test executable failed (exit status: 101). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] [INFO] [stdout] thread 'main' (86) panicked at src/lib.rs:6:32: [INFO] [stdout] failed to initialize TUI: No such file or directory (os error 2) [INFO] [stdout] [INFO] [stdout] Location: [INFO] [stdout] src/lib.rs:94:24 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5fd5f113a9aa - std[31e582c13f4e914f]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5fd5f113a9aa - std[31e582c13f4e914f]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5fd5f113a9aa - std[31e582c13f4e914f]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x5fd5f113a9aa - <::print::DisplayBacktrace as core[fa0eadad68403074]::fmt::Display>::fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x5fd5f114cd7a - ::fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x5fd5f114cd7a - core[fa0eadad68403074]::fmt::write [INFO] [stdout] 6: 0x5fd5f113f992 - std[31e582c13f4e914f]::io::default_write_fmt:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x5fd5f113f992 - ::write_fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x5fd5f111fa2f - ::print [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x5fd5f111fa2f - std[31e582c13f4e914f]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x5fd5f11360f1 - std[31e582c13f4e914f]::panicking::default_hook [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:319:9 [INFO] [stdout] 11: 0x5fd5f11362ab - std[31e582c13f4e914f]::panicking::panic_with_hook [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:825:13 [INFO] [stdout] 12: 0x5fd5f111fae8 - std[31e582c13f4e914f]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:698:13 [INFO] [stdout] 13: 0x5fd5f1114e29 - std[31e582c13f4e914f]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 14: 0x5fd5f112034d - __rustc[fc8e3a9f23f26cb]::rust_begin_unwind [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:689:5 [INFO] [stdout] 15: 0x5fd5f114d53c - core[fa0eadad68403074]::panicking::panic_fmt [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/panicking.rs:80:14 [INFO] [stdout] 16: 0x5fd5f114d2b2 - core[fa0eadad68403074]::result::unwrap_failed [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/result.rs:1867:5 [INFO] [stdout] 17: 0x5fd5f1080ca2 - >::expect [INFO] [stdout] 18: 0x5fd5f1080d3a - rust_out[6ca516bbe19c3985]::main::_doctest_main_src_lib_rs_87_0 [INFO] [stdout] 19: 0x5fd5f1080c26 - rust_out[6ca516bbe19c3985]::main [INFO] [stdout] 20: 0x5fd5f1080d63 - >::call_once [INFO] [stdout] 21: 0x5fd5f1080be6 - std[31e582c13f4e914f]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 22: 0x5fd5f1080bf9 - std[31e582c13f4e914f]::rt::lang_start::<()>::{closure#0} [INFO] [stdout] 23: 0x5fd5f1135334 - <&dyn core[fa0eadad68403074]::ops::function::Fn<(), Output = i32> + core[fa0eadad68403074]::marker::Sync + core[fa0eadad68403074]::panic::unwind_safe::RefUnwindSafe as core[fa0eadad68403074]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/ops/function.rs:287:21 [INFO] [stdout] 24: 0x5fd5f1135334 - std[31e582c13f4e914f]::panicking::catch_unwind::do_call::<&dyn core[fa0eadad68403074]::ops::function::Fn<(), Output = i32> + core[fa0eadad68403074]::marker::Sync + core[fa0eadad68403074]::panic::unwind_safe::RefUnwindSafe, i32> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:581:40 [INFO] [stdout] 25: 0x5fd5f1135334 - std[31e582c13f4e914f]::panicking::catch_unwind:: + core[fa0eadad68403074]::marker::Sync + core[fa0eadad68403074]::panic::unwind_safe::RefUnwindSafe> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:544:19 [INFO] [stdout] 26: 0x5fd5f1135334 - std[31e582c13f4e914f]::panic::catch_unwind::<&dyn core[fa0eadad68403074]::ops::function::Fn<(), Output = i32> + core[fa0eadad68403074]::marker::Sync + core[fa0eadad68403074]::panic::unwind_safe::RefUnwindSafe, i32> [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panic.rs:359:14 [INFO] [stdout] 27: 0x5fd5f1135334 - std[31e582c13f4e914f]::rt::lang_start_internal::{closure#0} [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/rt.rs:175:24 [INFO] [stdout] 28: 0x5fd5f1135334 - std[31e582c13f4e914f]::panicking::catch_unwind::do_call:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:581:40 [INFO] [stdout] 29: 0x5fd5f1135334 - std[31e582c13f4e914f]::panicking::catch_unwind:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panicking.rs:544:19 [INFO] [stdout] 30: 0x5fd5f1135334 - std[31e582c13f4e914f]::panic::catch_unwind:: [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x5fd5f1135334 - std[31e582c13f4e914f]::rt::lang_start_internal [INFO] [stdout] at /rustc/562dee4820c458d823175268e41601d4c060588a/library/std/src/rt.rs:171:5 [INFO] [stdout] 32: 0x5fd5f1080aa1 - std[31e582c13f4e914f]::rt::lang_start::<()> [INFO] [stdout] 33: 0x5fd5f1080dc5 - main [INFO] [stdout] 34: 0x754eb192e1ca - [INFO] [stdout] 35: 0x754eb192e28b - __libc_start_main [INFO] [stdout] 36: 0x5fd5f10809b5 - _start [INFO] [stdout] 37: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - Tui::enter (line 187) [INFO] [stdout] src/lib.rs - Tui::frame_rate (line 123) [INFO] [stdout] src/lib.rs - Tui::mouse (line 139) [INFO] [stdout] src/lib.rs - Tui::mouse (line 146) [INFO] [stdout] src/lib.rs - Tui::new (line 87) [INFO] [stdout] src/lib.rs - Tui::next (line 236) [INFO] [stdout] src/lib.rs - Tui::paste (line 163) [INFO] [stdout] src/lib.rs - Tui::paste (line 170) [INFO] [stdout] src/lib.rs - Tui::tick_rate (line 107) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.72s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "2eab1b6cf3dab5072ae186992130610bcbdbbf06a298c8cc79603a17167370ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2eab1b6cf3dab5072ae186992130610bcbdbbf06a298c8cc79603a17167370ee", kill_on_drop: false }` [INFO] [stdout] 2eab1b6cf3dab5072ae186992130610bcbdbbf06a298c8cc79603a17167370ee