[INFO] fetching crate tui-textarea 0.1.3...
[INFO] testing tui-textarea-0.1.3 against 1.62.0 for beta-1.63-1
[INFO] extracting crate tui-textarea 0.1.3 into /workspace/builds/worker-4/source
[INFO] validating manifest of crates.io crate tui-textarea 0.1.3 on toolchain 1.62.0
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.62.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate tui-textarea 0.1.3
[INFO] removed 0 missing examples
[INFO] finished tweaking crates.io crate tui-textarea 0.1.3
[INFO] tweaked toml for crates.io crate tui-textarea 0.1.3 written to /workspace/builds/worker-4/source/Cargo.toml
[INFO] crate crates.io crate tui-textarea 0.1.3 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.62.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+1.62.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] d832cffdcfac98dc8355cede4f897fe543eedf48b8b6af7d3fdcec9d4092cc55
[INFO] running `Command { std: "docker" "start" "-a" "d832cffdcfac98dc8355cede4f897fe543eedf48b8b6af7d3fdcec9d4092cc55", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d832cffdcfac98dc8355cede4f897fe543eedf48b8b6af7d3fdcec9d4092cc55", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d832cffdcfac98dc8355cede4f897fe543eedf48b8b6af7d3fdcec9d4092cc55", kill_on_drop: false }`
[INFO] [stdout] d832cffdcfac98dc8355cede4f897fe543eedf48b8b6af7d3fdcec9d4092cc55
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+1.62.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4bcb1c899ef67fe03f5db3025e92d3dfaa25ac20e968952a6e5b6b7dace58f01
[INFO] running `Command { std: "docker" "start" "-a" "4bcb1c899ef67fe03f5db3025e92d3dfaa25ac20e968952a6e5b6b7dace58f01", kill_on_drop: false }`
[INFO] [stderr]    Compiling signal-hook v0.3.14
[INFO] [stderr]    Compiling cassowary v0.3.0
[INFO] [stderr]    Compiling unicode-segmentation v1.9.0
[INFO] [stderr]    Compiling signal-hook-mio v0.2.3
[INFO] [stderr]    Compiling crossterm v0.23.2
[INFO] [stderr]    Compiling tui v0.18.0
[INFO] [stderr]    Compiling tui-textarea v0.1.3 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 5.27s
[INFO] running `Command { std: "docker" "inspect" "4bcb1c899ef67fe03f5db3025e92d3dfaa25ac20e968952a6e5b6b7dace58f01", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4bcb1c899ef67fe03f5db3025e92d3dfaa25ac20e968952a6e5b6b7dace58f01", kill_on_drop: false }`
[INFO] [stdout] 4bcb1c899ef67fe03f5db3025e92d3dfaa25ac20e968952a6e5b6b7dace58f01
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+1.62.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 7f2e31959b80b70ebfb7340765c0e3cd6ff64068d98af5a0f242c044057feaf7
[INFO] running `Command { std: "docker" "start" "-a" "7f2e31959b80b70ebfb7340765c0e3cd6ff64068d98af5a0f242c044057feaf7", kill_on_drop: false }`
[INFO] [stderr]    Compiling tui-textarea v0.1.3 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 1.23s
[INFO] [stderr]   Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/tui_textarea-671e231d86d305e6)
[INFO] running `Command { std: "docker" "inspect" "7f2e31959b80b70ebfb7340765c0e3cd6ff64068d98af5a0f242c044057feaf7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7f2e31959b80b70ebfb7340765c0e3cd6ff64068d98af5a0f242c044057feaf7", kill_on_drop: false }`
[INFO] [stdout] 7f2e31959b80b70ebfb7340765c0e3cd6ff64068d98af5a0f242c044057feaf7
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+1.62.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] e4c33886bef45242bc813d20d4836011470848fa77aaa67881342919269fb889
[INFO] running `Command { std: "docker" "start" "-a" "e4c33886bef45242bc813d20d4836011470848fa77aaa67881342919269fb889", kill_on_drop: false }`
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.08s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/tui_textarea-671e231d86d305e6)
[INFO] [stdout] running 0 tests
[INFO] [stderr]    Doc-tests tui-textarea
[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] [stdout] 
[INFO] [stdout] running 77 tests
[INFO] [stdout] test src/input.rs - input::Input (line 34) - compile ... ok
[INFO] [stdout] test src/lib.rs - (line 198) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 116) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 204) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 212) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 228) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 244) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 237) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 262) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 251) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 275) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 284) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 304) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 295) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 326) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 310) ... FAILED
[INFO] [stdout] test src/cursor.rs - cursor::CursorMove::Forward (line 8) ... ok
[INFO] [stdout] test src/cursor.rs - cursor::CursorMove::Up (line 33) ... ok
[INFO] [stdout] test src/lib.rs - (line 358) ... FAILED
[INFO] [stdout] test src/cursor.rs - cursor::CursorMove::Top (line 79) ... ok
[INFO] [stdout] test src/lib.rs - (line 482) ... FAILED
[INFO] [stdout] test src/cursor.rs - cursor::CursorMove::Bottom (line 91) ... ok
[INFO] [stdout] test src/lib.rs - (line 423) ... FAILED
[INFO] [stdout] test src/cursor.rs - cursor::CursorMove::WordForward (line 103) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea (line 128) - compile ... ok
[INFO] [stdout] test src/lib.rs - (line 526) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 507) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 547) ... FAILED
[INFO] [stdout] test src/cursor.rs - cursor::CursorMove::ParagraphBack (line 150) ... ok
[INFO] [stdout] test src/lib.rs - (line 568) ... FAILED
[INFO] [stdout] test src/cursor.rs - cursor::CursorMove::Back (line 21) ... ok
[INFO] [stdout] test src/cursor.rs - cursor::CursorMove::Jump (line 175) ... ok
[INFO] [stdout] test src/cursor.rs - cursor::CursorMove::WordBack (line 117) ... ok
[INFO] [stdout] test src/cursor.rs - cursor::CursorMove::Down (line 45) ... ok
[INFO] [stdout] test src/cursor.rs - cursor::CursorMove::Head (line 57) ... ok
[INFO] [stdout] test src/cursor.rs - cursor::CursorMove::ParagraphForward (line 132) ... ok
[INFO] [stdout] test src/input.rs - input::Input (line 47) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::input (line 199) ... ignored
[INFO] [stdout] test src/cursor.rs - cursor::CursorMove::End (line 69) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea (line 146) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::delete_next_char (line 762) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::delete_str (line 622) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::delete_char (line 734) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::delete_line_by_head (line 803) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::delete_line_by_end (line 782) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::delete_newline (line 707) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::cursor (line 1364) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea (line 98) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea (line 61) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::delete_word (line 828) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::indent (line 1212) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::insert_char (line 563) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::delete_next_word (line 857) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::hard_tab_indent (line 1198) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::insert_newline (line 680) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::into_lines (line 1348) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::is_empty (line 1381) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::paste (line 888) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::remove_block (line 1138) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::new (line 162) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::redo (line 941) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::lines (line 1328) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::insert_str (line 586) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::widget (line 1063) - compile ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::set_cursor_line_style (line 1243) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::set_cursor_style (line 1306) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::insert_tab (line 658) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::set_block (line 1124) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::set_style (line 1105) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::set_line_number_style (line 1268) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::move_cursor (line 904) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::set_hard_tab_indent (line 1184) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::remove_line_number (line 1285) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::set_tab_length (line 1159) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::set_yank_text (line 1410) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::undo (line 921) ... ok
[INFO] [stdout] test src/textarea.rs - textarea::TextArea::yank_text (line 1396) ... ok
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 198) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextArea`
[INFO] [stdout]  --> src/lib.rs:199:20
[INFO] [stdout]   |
[INFO] [stdout] 3 | let mut textarea = TextArea::default();
[INFO] [stdout]   |                    ^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 | use tui_textarea::TextArea;
[INFO] [stdout]   |
[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/lib.rs - (line 116) stdout ----
[INFO] [stdout] error: unexpected token: `...`
[INFO] [stdout]  --> src/lib.rs:120:35
[INFO] [stdout]   |
[INFO] [stdout] 7 | let mut term = tui::Terminal::new(...);
[INFO] [stdout]   |                                   ^^^
[INFO] [stdout]   |
[INFO] [stdout] help: use `..` for an exclusive range
[INFO] [stdout]   |
[INFO] [stdout] 7 | let mut term = tui::Terminal::new(..);
[INFO] [stdout]   |                                   ~~
[INFO] [stdout] help: or `..=` for an inclusive range
[INFO] [stdout]   |
[INFO] [stdout] 7 | let mut term = tui::Terminal::new(..=);
[INFO] [stdout]   |                                   ~~~
[INFO] [stdout] 
[INFO] [stdout] error[E0586]: inclusive range with no end
[INFO] [stdout]  --> src/lib.rs:120:35
[INFO] [stdout]   |
[INFO] [stdout] 7 | let mut term = tui::Terminal::new(...);
[INFO] [stdout]   |                                   ^^^ help: use `..` instead
[INFO] [stdout]   |
[INFO] [stdout]   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
[INFO] [stdout] 
[INFO] [stdout] error: unexpected token: `...`
[INFO] [stdout]   --> src/lib.rs:129:20
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let rect = ...;
[INFO] [stdout]    |                    ^^^
[INFO] [stdout]    |
[INFO] [stdout] help: use `..` for an exclusive range
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let rect = ..;
[INFO] [stdout]    |                    ~~
[INFO] [stdout] help: or `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let rect = ..=;
[INFO] [stdout]    |                    ~~~
[INFO] [stdout] 
[INFO] [stdout] error[E0586]: inclusive range with no end
[INFO] [stdout]   --> src/lib.rs:129:20
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let rect = ...;
[INFO] [stdout]    |                    ^^^ help: use `..` instead
[INFO] [stdout]    |
[INFO] [stdout]    = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyCode`
[INFO] [stdout]   --> src/lib.rs:138:24
[INFO] [stdout]    |
[INFO] [stdout] 25 |         if key.code == KeyCode::Esc {
[INFO] [stdout]    |                        ^^^^^^^ use of undeclared type `KeyCode`
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `draw` found for enum `Result` in the current scope
[INFO] [stdout]   --> src/lib.rs:127:10
[INFO] [stdout]    |
[INFO] [stdout] 14 |     term.draw(|f| {
[INFO] [stdout]    |          ^^^^ method not found in `Result<Terminal<_>, std::io::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 `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:134:7
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_116_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 4  | | use tui_textarea::TextArea;
[INFO] [stdout] 5  | | use crossterm::event::{Event, read};
[INFO] [stdout] 6  | |
[INFO] [stdout] ...  |
[INFO] [stdout] 21 | |     })?;
[INFO] [stdout]    | |       ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] ...  |
[INFO] [stdout] 34 | | println!("Lines: {:?}", textarea.lines());
[INFO] [stdout] 35 | | } _doctest_main_src_lib_rs_116_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<_>` is not implemented for `()`
[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:136:36
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_116_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 4  | | use tui_textarea::TextArea;
[INFO] [stdout] 5  | | use crossterm::event::{Event, read};
[INFO] [stdout] 6  | |
[INFO] [stdout] ...  |
[INFO] [stdout] 23 | |     if let Event::Key(key) = read()? {
[INFO] [stdout]    | |                                    ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] ...  |
[INFO] [stdout] 34 | | println!("Lines: {:?}", textarea.lines());
[INFO] [stdout] 35 | | } _doctest_main_src_lib_rs_116_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<Result<Infallible, std::io::Error>>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0586, E0599.
[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 204) stdout ----
[INFO] [stdout] error: unexpected token: `...`
[INFO] [stdout]  --> src/lib.rs:205:30
[INFO] [stdout]   |
[INFO] [stdout] 3 | let mut lines: Vec<String> = ...;
[INFO] [stdout]   |                              ^^^
[INFO] [stdout]   |
[INFO] [stdout] help: use `..` for an exclusive range
[INFO] [stdout]   |
[INFO] [stdout] 3 | let mut lines: Vec<String> = ..;
[INFO] [stdout]   |                              ~~
[INFO] [stdout] help: or `..=` for an inclusive range
[INFO] [stdout]   |
[INFO] [stdout] 3 | let mut lines: Vec<String> = ..=;
[INFO] [stdout]   |                              ~~~
[INFO] [stdout] 
[INFO] [stdout] error[E0586]: inclusive range with no end
[INFO] [stdout]  --> src/lib.rs:205:30
[INFO] [stdout]   |
[INFO] [stdout] 3 | let mut lines: Vec<String> = ...;
[INFO] [stdout]   |                              ^^^ help: use `..` instead
[INFO] [stdout]   |
[INFO] [stdout]   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextArea`
[INFO] [stdout]  --> src/lib.rs:206:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | let mut textarea = TextArea::new(lines);
[INFO] [stdout]   |                    ^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 | use tui_textarea::TextArea;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0586.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 212) stdout ----
[INFO] [stdout] error: unexpected token: `...`
[INFO] [stdout]   --> src/lib.rs:221:24
[INFO] [stdout]    |
[INFO] [stdout] 11 | let mut text: String = ...;
[INFO] [stdout]    |                        ^^^
[INFO] [stdout]    |
[INFO] [stdout] help: use `..` for an exclusive range
[INFO] [stdout]    |
[INFO] [stdout] 11 | let mut text: String = ..;
[INFO] [stdout]    |                        ~~
[INFO] [stdout] help: or `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout] 11 | let mut text: String = ..=;
[INFO] [stdout]    |                        ~~~
[INFO] [stdout] 
[INFO] [stdout] error[E0586]: inclusive range with no end
[INFO] [stdout]   --> src/lib.rs:221:24
[INFO] [stdout]    |
[INFO] [stdout] 11 | let mut text: String = ...;
[INFO] [stdout]    |                        ^^^ help: use `..` instead
[INFO] [stdout]    |
[INFO] [stdout]    = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextARea`
[INFO] [stdout]   --> src/lib.rs:222:20
[INFO] [stdout]    |
[INFO] [stdout] 12 | let mut textarea = TextARea::from(text.lines());
[INFO] [stdout]    |                    ^^^^^^^^ use of undeclared type `TextARea`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextArea`
[INFO] [stdout]  --> src/lib.rs:214:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | let mut textarea = TextArea::from([
[INFO] [stdout]   |                    ^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 | use tui_textarea::TextArea;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0586.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 228) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io`
[INFO] [stdout]  --> src/lib.rs:230:73
[INFO] [stdout]   |
[INFO] [stdout] 4 | let mut textarea: TextArea = io::BufReader::new(file).lines().collect::<io::Result<_>>()?;
[INFO] [stdout]   |                                                                         ^^ use of undeclared crate or module `io`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fs`
[INFO] [stdout]  --> src/lib.rs:229:16
[INFO] [stdout]   |
[INFO] [stdout] 3 | let file = fs::File::open(path)?;
[INFO] [stdout]   |                ^^^^ not found in `fs`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::File;
[INFO] [stdout]   |
[INFO] [stdout] help: if you import `File`, refer to it directly
[INFO] [stdout]   |
[INFO] [stdout] 3 - let file = fs::File::open(path)?;
[INFO] [stdout] 3 + let file = File::open(path)?;
[INFO] [stdout]   | 
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found built-in attribute `path`
[INFO] [stdout]  --> src/lib.rs:229:27
[INFO] [stdout]   |
[INFO] [stdout] 3 | let file = fs::File::open(path)?;
[INFO] [stdout]   |                           ^^^^ not a value
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `TextArea` in this scope
[INFO] [stdout]  --> src/lib.rs:230:19
[INFO] [stdout]   |
[INFO] [stdout] 4 | let mut textarea: TextArea = io::BufReader::new(file).lines().collect::<io::Result<_>>()?;
[INFO] [stdout]   |                   ^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 | use tui_textarea::TextArea;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io`
[INFO] [stdout]  --> src/lib.rs:230:34
[INFO] [stdout]   |
[INFO] [stdout] 4 | let mut textarea: TextArea = io::BufReader::new(file).lines().collect::<io::Result<_>>()?;
[INFO] [stdout]   |                                  ^^^^^^^^^ not found in `io`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::BufReader;
[INFO] [stdout]   |
[INFO] [stdout] help: if you import `BufReader`, refer to it directly
[INFO] [stdout]   |
[INFO] [stdout] 4 - let mut textarea: TextArea = io::BufReader::new(file).lines().collect::<io::Result<_>>()?;
[INFO] [stdout] 4 + let mut textarea: TextArea = BufReader::new(file).lines().collect::<io::Result<_>>()?;
[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:229:32
[INFO] [stdout]   |
[INFO] [stdout] 2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_228_0() {
[INFO] [stdout]   |  ______________________________________-
[INFO] [stdout] 3 | | let file = fs::File::open(path)?;
[INFO] [stdout]   | |                                ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] 4 | | let mut textarea: TextArea = io::BufReader::new(file).lines().collect::<io::Result<_>>()?;
[INFO] [stdout] 5 | | } _doctest_main_src_lib_rs_228_0() }
[INFO] [stdout]   | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[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:230:89
[INFO] [stdout]   |
[INFO] [stdout] 2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_228_0() {
[INFO] [stdout]   |  ______________________________________-
[INFO] [stdout] 3 | | let file = fs::File::open(path)?;
[INFO] [stdout] 4 | | let mut textarea: TextArea = io::BufReader::new(file).lines().collect::<io::Result<_>>()?;
[INFO] [stdout]   | |                                                                                         ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] 5 | | } _doctest_main_src_lib_rs_228_0() }
[INFO] [stdout]   | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0423, 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 244) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `textarea` in this scope
[INFO] [stdout]  --> src/lib.rs:245:26
[INFO] [stdout]   |
[INFO] [stdout] 3 | let lines: Vec<String> = textarea.into_lines();
[INFO] [stdout]   |                          ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 237) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `textarea` in this scope
[INFO] [stdout]  --> src/lib.rs:238:20
[INFO] [stdout]   |
[INFO] [stdout] 3 | let text: String = textarea.lines().join("\n");
[INFO] [stdout]   |                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 262) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `textarea` in this scope
[INFO] [stdout]  --> src/lib.rs:266:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | textarea.set_line_number_style(style);
[INFO] [stdout]   | ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 251) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextArea`
[INFO] [stdout]  --> src/lib.rs:252:16
[INFO] [stdout]   |
[INFO] [stdout] 3 | let textarea = TextArea::default();
[INFO] [stdout]   |                ^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 | use tui_textarea::TextArea;
[INFO] [stdout]   |
[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/lib.rs - (line 275) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `textarea` in this scope
[INFO] [stdout]  --> src/lib.rs:279:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | textarea.set_line_number_style(style);
[INFO] [stdout]   | ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 284) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `textarea` in this scope
[INFO] [stdout]  --> src/lib.rs:287:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | textarea.set_line_number_style(Style::default());
[INFO] [stdout]   | ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 304) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `textarea` in this scope
[INFO] [stdout]  --> src/lib.rs:305:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | textarea.set_max_histories(1000);
[INFO] [stdout]   | ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 295) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `textarea` in this scope
[INFO] [stdout]  --> src/lib.rs:296:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | textarea.set_tab_length(2);
[INFO] [stdout]   | ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 326) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `textarea` in this scope
[INFO] [stdout]  --> src/lib.rs:329:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | textarea.set_search_pattern("(hello|hi)").unwrap();
[INFO] [stdout]   | ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `textarea` in this scope
[INFO] [stdout]  --> src/lib.rs:331:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | textarea.search_forward(false); // Move cursor to the next match
[INFO] [stdout]   | ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `textarea` in this scope
[INFO] [stdout]  --> src/lib.rs:332:1
[INFO] [stdout]   |
[INFO] [stdout] 8 | textarea.search_back(false);    // Move cursor to the previous match
[INFO] [stdout]   | ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `textarea` in this scope
[INFO] [stdout]   --> src/lib.rs:335:1
[INFO] [stdout]    |
[INFO] [stdout] 11 | textarea.set_search_pattern("").unwrap();
[INFO] [stdout]    | ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 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/lib.rs - (line 310) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `textarea` in this scope
[INFO] [stdout]  --> src/lib.rs:311:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | textarea.set_max_histories(0);
[INFO] [stdout]   | ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 358) stdout ----
[INFO] [stdout] error: unexpected token: `...`
[INFO] [stdout]  --> src/lib.rs:362:26
[INFO] [stdout]   |
[INFO] [stdout] 7 | let default_text: &str = ...;
[INFO] [stdout]   |                          ^^^
[INFO] [stdout]   |
[INFO] [stdout] help: use `..` for an exclusive range
[INFO] [stdout]   |
[INFO] [stdout] 7 | let default_text: &str = ..;
[INFO] [stdout]   |                          ~~
[INFO] [stdout] help: or `..=` for an inclusive range
[INFO] [stdout]   |
[INFO] [stdout] 7 | let default_text: &str = ..=;
[INFO] [stdout]   |                          ~~~
[INFO] [stdout] 
[INFO] [stdout] error[E0586]: inclusive range with no end
[INFO] [stdout]  --> src/lib.rs:362:26
[INFO] [stdout]   |
[INFO] [stdout] 7 | let default_text: &str = ...;
[INFO] [stdout]   |                          ^^^ help: use `..` instead
[INFO] [stdout]   |
[INFO] [stdout]   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextArea`
[INFO] [stdout]  --> src/lib.rs:364:20
[INFO] [stdout]   |
[INFO] [stdout] 9 | let mut textarea = TextArea::new(vec![default_text]);
[INFO] [stdout]   |                    ^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 | use tui_textarea::TextArea;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `key` in this scope
[INFO] [stdout]   --> src/lib.rs:376:28
[INFO] [stdout]    |
[INFO] [stdout] 21 |             textarea.input(key);
[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 `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:372:29
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_358_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 4  | | use crossterm::event::{Event, read};
[INFO] [stdout] 5  | | use tui_textarea::{Input, Key};
[INFO] [stdout] 6  | |
[INFO] [stdout] ...  |
[INFO] [stdout] 17 | |     match Input::from(read()?) {
[INFO] [stdout]    | |                             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] ...  |
[INFO] [stdout] 26 | | let text = textarea.into_lines().remove(0); // Get input text
[INFO] [stdout] 27 | | } _doctest_main_src_lib_rs_358_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<Result<Infallible, std::io::Error>>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433, E0586.
[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 482) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Input`
[INFO] [stdout]  --> src/lib.rs:483:7
[INFO] [stdout]   |
[INFO] [stdout] 3 | match Input::from(read()?) {
[INFO] [stdout]   |       ^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 | use tui_textarea::Input;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `read` in this scope
[INFO] [stdout]  --> src/lib.rs:483:19
[INFO] [stdout]   |
[INFO] [stdout] 3 | match Input::from(read()?) {
[INFO] [stdout]   |                   ^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 | use core::ptr::read;
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crossterm::event::read;
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::read;
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::ptr::read;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `textarea` in this scope
[INFO] [stdout]  --> src/lib.rs:486:14
[INFO] [stdout]   |
[INFO] [stdout] 6 |     input => textarea.input_without_shortcuts(input),
[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 `FromResidual`)
[INFO] [stdout]  --> src/lib.rs:483:25
[INFO] [stdout]   |
[INFO] [stdout] 2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_482_0() {
[INFO] [stdout]   |  ______________________________________-
[INFO] [stdout] 3 | | match Input::from(read()?) {
[INFO] [stdout]   | |                         ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] 4 | |     // Handle your own key mappings here
[INFO] [stdout] 5 | |     // ...
[INFO] [stdout] 6 | |     input => textarea.input_without_shortcuts(input),
[INFO] [stdout] 7 | | }
[INFO] [stdout] 8 | | } _doctest_main_src_lib_rs_482_0() }
[INFO] [stdout]   | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[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 423) stdout ----
[INFO] [stdout] error: unexpected token: `...`
[INFO] [stdout]  --> src/lib.rs:427:20
[INFO] [stdout]   |
[INFO] [stdout] 7 | let mut textarea = ...;
[INFO] [stdout]   |                    ^^^
[INFO] [stdout]   |
[INFO] [stdout] help: use `..` for an exclusive range
[INFO] [stdout]   |
[INFO] [stdout] 7 | let mut textarea = ..;
[INFO] [stdout]   |                    ~~
[INFO] [stdout] help: or `..=` for an inclusive range
[INFO] [stdout]   |
[INFO] [stdout] 7 | let mut textarea = ..=;
[INFO] [stdout]   |                    ~~~
[INFO] [stdout] 
[INFO] [stdout] error[E0586]: inclusive range with no end
[INFO] [stdout]  --> src/lib.rs:427:20
[INFO] [stdout]   |
[INFO] [stdout] 7 | let mut textarea = ...;
[INFO] [stdout]   |                    ^^^ help: use `..` instead
[INFO] [stdout]   |
[INFO] [stdout]   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
[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:442:49
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_423_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 4  | | use crossterm::event::{Event, read};
[INFO] [stdout] 5  | | use tui_textarea::{Input, Key, CursorMove};
[INFO] [stdout] 6  | |
[INFO] [stdout] ...  |
[INFO] [stdout] 22 | |         Mode::Normal => match Input::from(read()?) {
[INFO] [stdout]    | |                                                 ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] ...  |
[INFO] [stdout] 55 | | }
[INFO] [stdout] 56 | | } _doctest_main_src_lib_rs_423_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<Result<Infallible, std::io::Error>>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant or associated item named `Home` found for enum `CursorMove` in the current scope
[INFO] [stdout]   --> src/lib.rs:449:83
[INFO] [stdout]    |
[INFO] [stdout] 29 |             Input { key: Key::Char('^'), .. } => textarea.move_cursor(CursorMove::Home),
[INFO] [stdout]    |                                                                                   ^^^^ variant or associated item not found in `CursorMove`
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant or associated item named `Home` found for enum `CursorMove` in the current scope
[INFO] [stdout]   --> src/lib.rs:461:50
[INFO] [stdout]    |
[INFO] [stdout] 41 |                 textarea.move_cursor(CursorMove::Home);
[INFO] [stdout]    |                                                  ^^^^ variant or associated item not found in `CursorMove`
[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:466:49
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_423_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 4  | | use crossterm::event::{Event, read};
[INFO] [stdout] 5  | | use tui_textarea::{Input, Key, CursorMove};
[INFO] [stdout] 6  | |
[INFO] [stdout] ...  |
[INFO] [stdout] 46 | |         Mode::Insert => match Input::from(read()?) {
[INFO] [stdout]    | |                                                 ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] ...  |
[INFO] [stdout] 55 | | }
[INFO] [stdout] 56 | | } _doctest_main_src_lib_rs_423_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<Result<Infallible, std::io::Error>>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0586, E0599.
[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 526) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `your_backend`
[INFO] [stdout]  --> src/lib.rs:528:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use your_backend::KeyDown;
[INFO] [stdout]   |     ^^^^^^^^^^^^ use of undeclared crate or module `your_backend`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 507) stdout ----
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib.rs:519:27
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub fn read_next_key() -> (KeyDown, bool, bool) {
[INFO] [stdout]    |        -------------      ^^^^^^^^^^^^^^^^^^^^^ expected tuple, found `()`
[INFO] [stdout]    |        |
[INFO] [stdout]    |        implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:  expected tuple `(KeyDown, bool, bool)`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 547) stdout ----
[INFO] [stdout] error: unexpected token: `...`
[INFO] [stdout]  --> src/lib.rs:548:20
[INFO] [stdout]   |
[INFO] [stdout] 3 | let mut textarea = ...;
[INFO] [stdout]   |                    ^^^
[INFO] [stdout]   |
[INFO] [stdout] help: use `..` for an exclusive range
[INFO] [stdout]   |
[INFO] [stdout] 3 | let mut textarea = ..;
[INFO] [stdout]   |                    ~~
[INFO] [stdout] help: or `..=` for an inclusive range
[INFO] [stdout]   |
[INFO] [stdout] 3 | let mut textarea = ..=;
[INFO] [stdout]   |                    ~~~
[INFO] [stdout] 
[INFO] [stdout] error[E0586]: inclusive range with no end
[INFO] [stdout]  --> src/lib.rs:548:20
[INFO] [stdout]   |
[INFO] [stdout] 3 | let mut textarea = ...;
[INFO] [stdout]   |                    ^^^ help: use `..` instead
[INFO] [stdout]   |
[INFO] [stdout]   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `your_backend`
[INFO] [stdout]  --> src/lib.rs:554:28
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let (key, ctrl, alt) = your_backend::read_next_key();
[INFO] [stdout]   |                            ^^^^^^^^^^^^ use of undeclared crate or module `your_backend`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `your_backend`
[INFO] [stdout]   --> src/lib.rs:555:15
[INFO] [stdout]    |
[INFO] [stdout] 10 |     if key == your_backend::KeyDown::Esc {
[INFO] [stdout]    |               ^^^^^^^^^^^^ use of undeclared crate or module `your_backend`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `keydown_to_input` in this scope
[INFO] [stdout]   --> src/lib.rs:558:20
[INFO] [stdout]    |
[INFO] [stdout] 13 |     textarea.input(keydown_to_input(key, ctrl, alt));
[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, E0586.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 568) stdout ----
[INFO] [stdout] error: unexpected token: `...`
[INFO] [stdout]   --> src/lib.rs:581:21
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let rects = ...;
[INFO] [stdout]    |                     ^^^
[INFO] [stdout]    |
[INFO] [stdout] help: use `..` for an exclusive range
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let rects = ..;
[INFO] [stdout]    |                     ~~
[INFO] [stdout] help: or `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let rects = ..=;
[INFO] [stdout]    |                     ~~~
[INFO] [stdout] 
[INFO] [stdout] error[E0586]: inclusive range with no end
[INFO] [stdout]   --> src/lib.rs:581:21
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let rects = ...;
[INFO] [stdout]    |                     ^^^ help: use `..` instead
[INFO] [stdout]    |
[INFO] [stdout]    = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
[INFO] [stdout] 
[INFO] [stdout] error: `match` arm body without braces
[INFO] [stdout]   --> src/lib.rs:591:58
[INFO] [stdout]    |
[INFO] [stdout] 26 |         Input { key: Key::Char('s'), ctrl: true, .. } => focused = (focused + 1) % 2;
[INFO] [stdout]    |                                                       -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: use a comma to end a `match` arm expression: `,`
[INFO] [stdout]    |                                                       |  |
[INFO] [stdout]    |                                                       |  this statement is not surrounded by a body
[INFO] [stdout]    |                                                       while parsing the `match` arm starting here
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `term` in this scope
[INFO] [stdout]   --> src/lib.rs:580:5
[INFO] [stdout]    |
[INFO] [stdout] 15 |     term.draw(|f| {
[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 `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:587:7
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_568_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 4  | | use tui_textarea::{TextArea, Input, Key};
[INFO] [stdout] 5  | | use crossterm::event::{Event, read};
[INFO] [stdout] 6  | |
[INFO] [stdout] ...  |
[INFO] [stdout] 22 | |     })?;
[INFO] [stdout]    | |       ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] ...  |
[INFO] [stdout] 30 | | }
[INFO] [stdout] 31 | | } _doctest_main_src_lib_rs_568_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<_>` is not implemented for `()`
[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:589:29
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_568_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 4  | | use tui_textarea::{TextArea, Input, Key};
[INFO] [stdout] 5  | | use crossterm::event::{Event, read};
[INFO] [stdout] 6  | |
[INFO] [stdout] ...  |
[INFO] [stdout] 24 | |     match Input::from(read()?) {
[INFO] [stdout]    | |                             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] ...  |
[INFO] [stdout] 30 | | }
[INFO] [stdout] 31 | | } _doctest_main_src_lib_rs_568_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<Result<Infallible, std::io::Error>>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0586.
[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/lib.rs - (line 116)
[INFO] [stdout]     src/lib.rs - (line 198)
[INFO] [stdout]     src/lib.rs - (line 204)
[INFO] [stdout]     src/lib.rs - (line 212)
[INFO] [stdout]     src/lib.rs - (line 228)
[INFO] [stdout]     src/lib.rs - (line 237)
[INFO] [stdout]     src/lib.rs - (line 244)
[INFO] [stdout]     src/lib.rs - (line 251)
[INFO] [stdout]     src/lib.rs - (line 262)
[INFO] [stdout]     src/lib.rs - (line 275)
[INFO] [stdout]     src/lib.rs - (line 284)
[INFO] [stdout]     src/lib.rs - (line 295)
[INFO] [stdout]     src/lib.rs - (line 304)
[INFO] [stdout]     src/lib.rs - (line 310)
[INFO] [stdout]     src/lib.rs - (line 326)
[INFO] [stdout]     src/lib.rs - (line 358)
[INFO] [stdout]     src/lib.rs - (line 423)
[INFO] [stdout]     src/lib.rs - (line 482)
[INFO] [stdout]     src/lib.rs - (line 507)
[INFO] [stdout]     src/lib.rs - (line 526)
[INFO] [stdout]     src/lib.rs - (line 547)
[INFO] [stdout]     src/lib.rs - (line 568)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 54 passed; 22 failed; 1 ignored; 0 measured; 0 filtered out; finished in 8.69s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass '--doc'
[INFO] running `Command { std: "docker" "inspect" "e4c33886bef45242bc813d20d4836011470848fa77aaa67881342919269fb889", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e4c33886bef45242bc813d20d4836011470848fa77aaa67881342919269fb889", kill_on_drop: false }`
[INFO] [stdout] e4c33886bef45242bc813d20d4836011470848fa77aaa67881342919269fb889
