[INFO] fetching crate ratatui-template 0.1.1... [INFO] testing ratatui-template-0.1.1 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate ratatui-template 0.1.1 into /workspace/builds/worker-1-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-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate ratatui-template 0.1.1 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 102 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.29.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded indoc v2.0.7 [INFO] [stderr] Downloaded signal-hook-mio v0.2.5 [INFO] [stderr] Downloaded crossterm v0.27.0 [INFO] [stderr] Downloaded strum v0.25.0 [INFO] [stderr] Downloaded strum_macros v0.25.3 [INFO] [stderr] Downloaded ratatui v0.24.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d4b70c514a219e2fe9223125ea337d5f326b78009aeb77fb608cbf63edec97dd [INFO] running `Command { std: "docker" "start" "-a" "d4b70c514a219e2fe9223125ea337d5f326b78009aeb77fb608cbf63edec97dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d4b70c514a219e2fe9223125ea337d5f326b78009aeb77fb608cbf63edec97dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4b70c514a219e2fe9223125ea337d5f326b78009aeb77fb608cbf63edec97dd", kill_on_drop: false }` [INFO] [stdout] d4b70c514a219e2fe9223125ea337d5f326b78009aeb77fb608cbf63edec97dd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2550c47c9352bbf803996b7d82fc30998fbef299fa68763fa8b8ac252134df39 [INFO] running `Command { std: "docker" "start" "-a" "2550c47c9352bbf803996b7d82fc30998fbef299fa68763fa8b8ac252134df39", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Compiling owo-colors v4.2.3 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling color-spantrace v0.3.0 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling gimli v0.32.3 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling indenter v0.3.4 [INFO] [stderr] Compiling rustc-demangle v0.1.26 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling indoc v2.0.7 [INFO] [stderr] Compiling cassowary v0.3.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling tracing-error v0.2.1 [INFO] [stderr] Compiling parking_lot v0.12.5 [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.31 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling strum_macros v0.25.3 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling futures-util v0.3.31 [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.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tokio-util v0.7.17 [INFO] [stderr] Compiling ratatui-template v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.01s [INFO] running `Command { std: "docker" "inspect" "2550c47c9352bbf803996b7d82fc30998fbef299fa68763fa8b8ac252134df39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2550c47c9352bbf803996b7d82fc30998fbef299fa68763fa8b8ac252134df39", kill_on_drop: false }` [INFO] [stdout] 2550c47c9352bbf803996b7d82fc30998fbef299fa68763fa8b8ac252134df39 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b9cdd78ee8e3184f3d601c8b6e3a2cbda588eaf19326912d2ddee75245d9abb8 [INFO] running `Command { std: "docker" "start" "-a" "b9cdd78ee8e3184f3d601c8b6e3a2cbda588eaf19326912d2ddee75245d9abb8", 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.54s [INFO] running `Command { std: "docker" "inspect" "b9cdd78ee8e3184f3d601c8b6e3a2cbda588eaf19326912d2ddee75245d9abb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b9cdd78ee8e3184f3d601c8b6e3a2cbda588eaf19326912d2ddee75245d9abb8", kill_on_drop: false }` [INFO] [stdout] b9cdd78ee8e3184f3d601c8b6e3a2cbda588eaf19326912d2ddee75245d9abb8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0d12449ce65dd1545f0195d2f01299e8bd967a629e237a669502cfe0df5209e0 [INFO] running `Command { std: "docker" "start" "-a" "0d12449ce65dd1545f0195d2f01299e8bd967a629e237a669502cfe0df5209e0", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ratatui_template-1d6648e50ac7f732) [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::mouse (line 146) ... FAILED [INFO] [stdout] test src/lib.rs - Tui::tick_rate (line 107) ... FAILED [INFO] [stdout] test src/lib.rs - Tui::enter (line 187) ... FAILED [INFO] [stdout] test src/lib.rs - Tui::next (line 236) ... FAILED [INFO] [stdout] test src/lib.rs - Tui::frame_rate (line 123) ... FAILED [INFO] [stdout] test src/lib.rs - Tui::paste (line 163) ... FAILED [INFO] [stdout] test src/lib.rs - Tui::paste (line 170) ... FAILED [INFO] [stdout] test src/lib.rs - Tui::mouse (line 139) ... 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::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::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::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::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::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 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::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::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::new (line 87) stdout ---- [INFO] [stdout] Test executable failed (exit status: 101). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] [INFO] [stdout] thread 'main' (95) panicked at src/lib.rs:6:32: [INFO] [stdout] failed to initialize TUI: Resource temporarily unavailable (os error 11) [INFO] [stdout] [INFO] [stdout] Location: [INFO] [stdout] src/lib.rs:94:24 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x650ccad412f2 - std::backtrace_rs::backtrace::libunwind::trace::ha50a1f28c7a10cf8 [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x650ccad412f2 - std::backtrace_rs::backtrace::trace_unsynchronized::h34f8c4ec82a320bc [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x650ccad412f2 - std::sys::backtrace::_print_fmt::h2d23e84e13d343bc [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x650ccad412f2 - ::fmt::hde21067283f7e82e [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x650ccad50b5f - core::fmt::rt::Argument::fmt::he65307037dca33c6 [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x650ccad50b5f - core::fmt::write::h24186904251c31cb [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/fmt/mod.rs:1469:25 [INFO] [stdout] 6: 0x650ccad158d3 - std::io::default_write_fmt::hdc5d19b6df666f61 [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x650ccad158d3 - std::io::Write::write_fmt::h3ab9f1f4d8d19b72 [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x650ccad1f742 - std::sys::backtrace::BacktraceLock::print::he038489aba5894a6 [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x650ccad21b5f - std::panicking::default_hook::{{closure}}::h80a26d916c49679b [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x650ccad219b9 - std::panicking::default_hook::he2e9efee79b3dce9 [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:328:9 [INFO] [stdout] 11: 0x650ccad22135 - std::panicking::panic_with_hook::hf5648b7cec6bc73e [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:834:13 [INFO] [stdout] 12: 0x650ccad21fca - std::panicking::panic_handler::{{closure}}::h1b2ed3864ba94359 [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:707:13 [INFO] [stdout] 13: 0x650ccad1f889 - std::sys::backtrace::__rust_end_short_backtrace::hd0186b2b27f5aaa7 [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 14: 0x650ccad0a21d - __rustc[f7dae8b92efe1d7a]::rust_begin_unwind [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:698:5 [INFO] [stdout] 15: 0x650ccad54710 - core::panicking::panic_fmt::hb5d6b83773432920 [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/panicking.rs:80:14 [INFO] [stdout] 16: 0x650ccad53c26 - core::result::unwrap_failed::h427ee4a8bb06d8af [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/result.rs:1862:5 [INFO] [stdout] 17: 0x650ccac6b702 - core::result::Result::expect::h0a5813eb2a51d5b0 [INFO] [stdout] 18: 0x650ccac6b7ba - rust_out::main::_doctest_main_src_lib_rs_87_0::h0b805ceeb2934bc3 [INFO] [stdout] 19: 0x650ccac6b776 - rust_out::main::hbdf05be24bd65ee6 [INFO] [stdout] 20: 0x650ccac6b513 - core::ops::function::FnOnce::call_once::h1e8c751e4a62d14e [INFO] [stdout] 21: 0x650ccac6b4f6 - std::sys::backtrace::__rust_begin_short_backtrace::h6f205b09ee900b2a [INFO] [stdout] 22: 0x650ccac6b4d9 - std::rt::lang_start::{{closure}}::h374dad1e7f5efc95 [INFO] [stdout] 23: 0x650ccad17260 - core::ops::function::impls:: for &F>::call_once::h8434f550918e723f [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/ops/function.rs:287:21 [INFO] [stdout] 24: 0x650ccad17260 - std::panicking::catch_unwind::do_call::h7f7a838f33db43be [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:590:40 [INFO] [stdout] 25: 0x650ccad17260 - std::panicking::catch_unwind::hf345702047129f6d [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:553:19 [INFO] [stdout] 26: 0x650ccad17260 - std::panic::catch_unwind::h42f92c278294a3a0 [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panic.rs:359:14 [INFO] [stdout] 27: 0x650ccad17260 - std::rt::lang_start_internal::{{closure}}::ha6834eab5ce60f45 [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/rt.rs:175:24 [INFO] [stdout] 28: 0x650ccad17260 - std::panicking::catch_unwind::do_call::hf4afda32c60c9e55 [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:590:40 [INFO] [stdout] 29: 0x650ccad17260 - std::panicking::catch_unwind::hbfda5503aab4db1e [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panicking.rs:553:19 [INFO] [stdout] 30: 0x650ccad17260 - std::panic::catch_unwind::h1a1ed11560d244f4 [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x650ccad17260 - std::rt::lang_start_internal::h1f713c0146d469ad [INFO] [stdout] at /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/std/src/rt.rs:171:5 [INFO] [stdout] 32: 0x650ccac6b4c1 - std::rt::lang_start::h25a068bab729a087 [INFO] [stdout] 33: 0x650ccac6b7e5 - main [INFO] [stdout] 34: 0x74d7fcacc1ca - [INFO] [stdout] 35: 0x74d7fcacc28b - __libc_start_main [INFO] [stdout] 36: 0x650ccac6b3d5 - _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.97s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "0d12449ce65dd1545f0195d2f01299e8bd967a629e237a669502cfe0df5209e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d12449ce65dd1545f0195d2f01299e8bd967a629e237a669502cfe0df5209e0", kill_on_drop: false }` [INFO] [stdout] 0d12449ce65dd1545f0195d2f01299e8bd967a629e237a669502cfe0df5209e0