[INFO] fetching crate nrf24-rs 0.1.1... [INFO] testing nrf24-rs-0.1.1 against 1.60.0 for beta-1.61-1 [INFO] extracting crate nrf24-rs 0.1.1 into /workspace/builds/worker-1/source [INFO] validating manifest of crates.io crate nrf24-rs 0.1.1 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate nrf24-rs 0.1.1 [INFO] finished tweaking crates.io crate nrf24-rs 0.1.1 [INFO] tweaked toml for crates.io crate nrf24-rs 0.1.1 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9cc00d93969ae8257a1f85d0c70ec459180a4470ba9e5fbcf602ea8cefe9ad3b [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "9cc00d93969ae8257a1f85d0c70ec459180a4470ba9e5fbcf602ea8cefe9ad3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9cc00d93969ae8257a1f85d0c70ec459180a4470ba9e5fbcf602ea8cefe9ad3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9cc00d93969ae8257a1f85d0c70ec459180a4470ba9e5fbcf602ea8cefe9ad3b", kill_on_drop: false }` [INFO] [stdout] 9cc00d93969ae8257a1f85d0c70ec459180a4470ba9e5fbcf602ea8cefe9ad3b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef0c43ee7ddf0b14e0d3a089a3a3dd352643cbc304077cd2c63419387b676fbf [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ef0c43ee7ddf0b14e0d3a089a3a3dd352643cbc304077cd2c63419387b676fbf", kill_on_drop: false }` [INFO] [stderr] Compiling nrf24-rs v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.38s [INFO] running `Command { std: "docker" "inspect" "ef0c43ee7ddf0b14e0d3a089a3a3dd352643cbc304077cd2c63419387b676fbf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef0c43ee7ddf0b14e0d3a089a3a3dd352643cbc304077cd2c63419387b676fbf", kill_on_drop: false }` [INFO] [stdout] ef0c43ee7ddf0b14e0d3a089a3a3dd352643cbc304077cd2c63419387b676fbf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 5355f2530828d6c31d696f33fb965810bba369c5239089cb573cdd40eea45323 [INFO] running `Command { std: "docker" "start" "-a" "5355f2530828d6c31d696f33fb965810bba369c5239089cb573cdd40eea45323", kill_on_drop: false }` [INFO] [stderr] Compiling nrf24-rs v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.82s [INFO] running `Command { std: "docker" "inspect" "5355f2530828d6c31d696f33fb965810bba369c5239089cb573cdd40eea45323", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5355f2530828d6c31d696f33fb965810bba369c5239089cb573cdd40eea45323", kill_on_drop: false }` [INFO] [stdout] 5355f2530828d6c31d696f33fb965810bba369c5239089cb573cdd40eea45323 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 169757e0e27c50d1f27e59a7ae2c7dc367e83d2bdb49af1b72c1142b629f0c18 [INFO] running `Command { std: "docker" "start" "-a" "169757e0e27c50d1f27e59a7ae2c7dc367e83d2bdb49af1b72c1142b629f0c18", kill_on_drop: false }` [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stdout] running 0 tests [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/nrf24_rs-cbc87007aaaeadfd) [INFO] [stdout] [INFO] [stderr] Doc-tests nrf24-rs [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 29 tests [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::is_connected (line 155) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::new (line 63) ... FAILED [INFO] [stdout] test src/config.rs - config::NrfConfig (line 30) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::open_reading_pipe (line 172) ... FAILED [INFO] [stdout] test src/config.rs - config::NrfConfig (line 40) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::flush_rx (line 590) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::enable_crc (line 602) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::data_available (line 281) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::data_available_on_pipe (line 302) ... FAILED [INFO] [stdout] test src/lib.rs - (line 19) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::channel (line 523) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::data_rate (line 554) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::payload_size (line 665) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::power_down (line 709) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01 (line 25) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::power_amp_level (line 567) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::power_up (line 681) ... FAILED [INFO] [stdout] test src/lib.rs - (line 84) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::flush_tx (line 580) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::open_writing_pipe (line 207) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::retries (line 491) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::set_address_width (line 540) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::set_payload_size (line 622) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::set_retries (line 472) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::read (line 331) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::stop_listening (line 259) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::start_listening (line 233) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::set_channel (line 512) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::write (line 385) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::is_connected (line 155) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 3 | if !chip.is_connected()? { [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/nrf24.rs:156:24 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_155_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | if !chip.is_connected()? { [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | // Handle disconnection [INFO] [stdout] 5 | | } [INFO] [stdout] 6 | | } _doctest_main_src_nrf24_rs_155_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 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::new (line 63) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `else`, or an operator, found `::` [INFO] [stdout] --> src/nrf24.rs:65:29 [INFO] [stdout] | [INFO] [stdout] 5 | let dp = Peripherals::take()::unwrap(); [INFO] [stdout] | ^^ expected one of `.`, `;`, `?`, `else`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/config.rs - config::NrfConfig (line 30) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `nrf24` [INFO] [stdout] --> src/config.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 4 | use nrf24::config::NrfConfig; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `nrf24` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `nrf24` [INFO] [stdout] --> src/config.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24::Nrf24l01; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `nrf24` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NrfConfig` [INFO] [stdout] --> src/config.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 6 | let config = NrfConfig::default(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use nrf24_rs::config::NrfConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi` in this scope [INFO] [stdout] --> src/config.rs:36:30 [INFO] [stdout] | [INFO] [stdout] 8 | let mut chip = Nrf24l01::new(spi, ce, ncs, delay, config)?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce` in this scope [INFO] [stdout] --> src/config.rs:36:35 [INFO] [stdout] | [INFO] [stdout] 8 | let mut chip = Nrf24l01::new(spi, ce, ncs, delay, config)?; [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ncs` in this scope [INFO] [stdout] --> src/config.rs:36:39 [INFO] [stdout] | [INFO] [stdout] 8 | let mut chip = Nrf24l01::new(spi, ce, ncs, delay, config)?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/config.rs:36:44 [INFO] [stdout] | [INFO] [stdout] 8 | let mut chip = Nrf24l01::new(spi, ce, ncs, delay, config)?; [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/config.rs:36:58 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_30_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | use nrf24::Nrf24l01; [INFO] [stdout] 4 | | use nrf24::config::NrfConfig; [INFO] [stdout] 5 | | [INFO] [stdout] ... | [INFO] [stdout] 8 | | let mut chip = Nrf24l01::new(spi, ce, ncs, delay, config)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 9 | | } _doctest_main_src_config_rs_30_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 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::open_reading_pipe (line 172) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataPipe` [INFO] [stdout] --> src/nrf24.rs:173:24 [INFO] [stdout] | [INFO] [stdout] 3 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataPipe` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:173:1 [INFO] [stdout] | [INFO] [stdout] 3 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [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/nrf24.rs:173:48 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_172_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_nrf24_rs_172_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 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/config.rs - config::NrfConfig (line 40) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `else`, or an operator, found `,` [INFO] [stdout] --> src/config.rs:47:19 [INFO] [stdout] | [INFO] [stdout] 9 | .addr_width(3), [INFO] [stdout] | ^ expected one of `.`, `;`, `?`, `else`, or an operator [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `nrf24` [INFO] [stdout] --> src/config.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 4 | use nrf24::config::{PALevel, DataRate, NrfConfig, PayloadSize}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `nrf24` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `nrf24` [INFO] [stdout] --> src/config.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24::Nrf24l01; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `nrf24` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::flush_rx (line 590) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `nrf24l01` in this scope [INFO] [stdout] --> src/nrf24.rs:591:1 [INFO] [stdout] | [INFO] [stdout] 3 | nrf24l01.flush_rx()?; [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/nrf24.rs:591:20 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_590_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | nrf24l01.flush_rx()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_nrf24_rs_590_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 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::enable_crc (line 602) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EncodingScheme` [INFO] [stdout] --> src/nrf24.rs:603:17 [INFO] [stdout] | [INFO] [stdout] 3 | chip.enable_crc(EncodingScheme::R2Bytes)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `EncodingScheme` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:603:1 [INFO] [stdout] | [INFO] [stdout] 3 | chip.enable_crc(EncodingScheme::R2Bytes)?; [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/nrf24.rs:603:41 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_602_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | chip.enable_crc(EncodingScheme::R2Bytes)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_nrf24_rs_602_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 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::data_available (line 281) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataPipe` [INFO] [stdout] --> src/nrf24.rs:283:24 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataPipe` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:283:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:284:1 [INFO] [stdout] | [INFO] [stdout] 5 | chip.start_listening()?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:286:7 [INFO] [stdout] | [INFO] [stdout] 7 | while chip.data_available()? { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 9 | delay.delay_ms(50); // small delay between calls of data_available [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/nrf24.rs:283:48 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_281_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | chip.start_listening()?; [INFO] [stdout] 6 | | // Check if there is any data to read [INFO] [stdout] ... | [INFO] [stdout] 10 | | } [INFO] [stdout] 11 | | } _doctest_main_src_nrf24_rs_281_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/nrf24.rs:284:23 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_281_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] 5 | | chip.start_listening()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | // Check if there is any data to read [INFO] [stdout] ... | [INFO] [stdout] 10 | | } [INFO] [stdout] 11 | | } _doctest_main_src_nrf24_rs_281_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/nrf24.rs:286:28 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_281_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] 5 | | chip.start_listening()?; [INFO] [stdout] 6 | | // Check if there is any data to read [INFO] [stdout] 7 | | while chip.data_available()? { [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 10 | | } [INFO] [stdout] 11 | | } _doctest_main_src_nrf24_rs_281_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 8 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/nrf24.rs - nrf24::Nrf24l01::data_available_on_pipe (line 302) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataPipe` [INFO] [stdout] --> src/nrf24.rs:304:24 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataPipe` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataPipe` [INFO] [stdout] --> src/nrf24.rs:308:16 [INFO] [stdout] | [INFO] [stdout] 8 | if pipe == DataPipe::DP1 { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataPipe` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:304:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:305:1 [INFO] [stdout] | [INFO] [stdout] 5 | chip.start_listening()?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:307:24 [INFO] [stdout] | [INFO] [stdout] 7 | while let Some(pipe) = chip.data_available_on_pipe()? { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:310:9 [INFO] [stdout] | [INFO] [stdout] 10 | delay.delay_ms(50); // small delay between calls of data_available [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/nrf24.rs:304:48 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_302_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | chip.start_listening()?; [INFO] [stdout] 6 | | // Check if there is any data to read on pipe 1 [INFO] [stdout] ... | [INFO] [stdout] 12 | | } [INFO] [stdout] 13 | | } _doctest_main_src_nrf24_rs_302_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/nrf24.rs:305:23 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_302_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] 5 | | chip.start_listening()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | // Check if there is any data to read on pipe 1 [INFO] [stdout] ... | [INFO] [stdout] 12 | | } [INFO] [stdout] 13 | | } _doctest_main_src_nrf24_rs_302_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/nrf24.rs:307:53 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_302_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] 5 | | chip.start_listening()?; [INFO] [stdout] 6 | | // Check if there is any data to read on pipe 1 [INFO] [stdout] 7 | | while let Some(pipe) = chip.data_available_on_pipe()? { [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 12 | | } [INFO] [stdout] 13 | | } _doctest_main_src_nrf24_rs_302_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 9 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 19) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `hal` [INFO] [stdout] --> src/lib.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 6 | use hal::prelude::*; [INFO] [stdout] | ^^^ use of undeclared crate or module `hal` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `panic_halt` [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 3 | use panic_halt as _; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `panic_halt` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `atmega168_hal`, `hal::spi` [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 5 | use atmega168_hal as hal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ no external crate `atmega168_hal` [INFO] [stdout] 6 | use hal::prelude::*; [INFO] [stdout] 7 | use hal::spi; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `atmega168_hal` [INFO] [stdout] --> src/lib.rs:28:3 [INFO] [stdout] | [INFO] [stdout] 11 | #[atmega168_hal::entry] [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared crate or module `atmega168_hal` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `spi` [INFO] [stdout] --> src/lib.rs:41:20 [INFO] [stdout] | [INFO] [stdout] 24 | let settings = spi::Settings { [INFO] [stdout] | ^^^ use of undeclared crate or module `spi` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `spi` [INFO] [stdout] --> src/lib.rs:42:21 [INFO] [stdout] | [INFO] [stdout] 25 | data_order: spi::DataOrder::MostSignificantFirst, [INFO] [stdout] | ^^^ use of undeclared crate or module `spi` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `spi` [INFO] [stdout] --> src/lib.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 26 | clock: spi::SerialClockRate::OscfOver4, [INFO] [stdout] | ^^^ use of undeclared crate or module `spi` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `spi` [INFO] [stdout] --> src/lib.rs:46:22 [INFO] [stdout] | [INFO] [stdout] 29 | let (spi, ncs) = spi::Spi::new(dp.SPI, sclk, mosi, miso, ncs, settings); [INFO] [stdout] | ^^^ use of undeclared crate or module `spi` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce` in this scope [INFO] [stdout] --> src/lib.rs:60:43 [INFO] [stdout] | [INFO] [stdout] 43 | let mut nrf_chip = Nrf24l01::New(spi, ce, ncs, &mut delay, config).unwrap(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `nrf` in this scope [INFO] [stdout] --> src/lib.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 51 | nrf.open_writing_pipe(b"Node1").unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `nrf` in this scope [INFO] [stdout] --> src/lib.rs:71:24 [INFO] [stdout] | [INFO] [stdout] 54 | while let Err(e) = nrf.write(&mut delay, &message) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PayloadSize: From` is not satisfied [INFO] [stdout] --> src/lib.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 40 | .payload_size(message.len()); [INFO] [stdout] | ------------ ^^^^^^^^^^^^^ the trait `From` is not implemented for `PayloadSize` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] = note: required because of the requirements on the impl of `Into` for `usize` [INFO] [stdout] note: required by a bound in `NrfConfig::payload_size` [INFO] [stdout] --> /opt/rustwide/workdir/src/config.rs:72:28 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn payload_size>(mut self, payload_size: T) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ required by this bound in `NrfConfig::payload_size` [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `New` found for struct `Nrf24l01` in the current scope [INFO] [stdout] --> src/lib.rs:60:34 [INFO] [stdout] | [INFO] [stdout] 43 | let mut nrf_chip = Nrf24l01::New(spi, ce, ncs, &mut delay, config).unwrap(); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | associated item not found in `Nrf24l01<_, _, _>` [INFO] [stdout] | help: there is an associated function with a similar name: `new` [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::channel (line 523) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nrf24l01` [INFO] [stdout] --> src/nrf24.rs:525:16 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24_rs::Nrf24l01; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi_struct` in this scope [INFO] [stdout] --> src/nrf24.rs:525:30 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce_pin` in this scope [INFO] [stdout] --> src/nrf24.rs:525:42 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ncs_pin` in this scope [INFO] [stdout] --> src/nrf24.rs:525:50 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:525:59 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NrfConfig` [INFO] [stdout] --> src/nrf24.rs:525:66 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24_rs::config::NrfConfig; [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/nrf24.rs:525:87 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_523_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | // Default is channel 76 [INFO] [stdout] 6 | | assert_eq!(chip.channel()?, 76); [INFO] [stdout] 7 | | } _doctest_main_src_nrf24_rs_523_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/nrf24.rs:527:26 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_523_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] 5 | | // Default is channel 76 [INFO] [stdout] 6 | | assert_eq!(chip.channel()?, 76); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } _doctest_main_src_nrf24_rs_523_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 8 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/nrf24.rs - nrf24::Nrf24l01::data_rate (line 554) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataRate` [INFO] [stdout] --> src/nrf24.rs:558:31 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(chip.data_rate()?, DataRate::R2Mbps); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataRate` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nrf24l01` [INFO] [stdout] --> src/nrf24.rs:556:16 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24_rs::Nrf24l01; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi_struct` in this scope [INFO] [stdout] --> src/nrf24.rs:556:30 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce_pin` in this scope [INFO] [stdout] --> src/nrf24.rs:556:42 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ncs_pin` in this scope [INFO] [stdout] --> src/nrf24.rs:556:50 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:556:59 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NrfConfig` [INFO] [stdout] --> src/nrf24.rs:556:66 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24_rs::config::NrfConfig; [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/nrf24.rs:556:87 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_554_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | // Default is 2 Mb/s [INFO] [stdout] 6 | | assert_eq!(chip.data_rate()?, DataRate::R2Mbps); [INFO] [stdout] 7 | | } _doctest_main_src_nrf24_rs_554_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/nrf24.rs:558:28 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_554_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] 5 | | // Default is 2 Mb/s [INFO] [stdout] 6 | | assert_eq!(chip.data_rate()?, DataRate::R2Mbps); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } _doctest_main_src_nrf24_rs_554_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 9 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/nrf24.rs - nrf24::Nrf24l01::payload_size (line 665) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nrf24l01` [INFO] [stdout] --> src/nrf24.rs:667:16 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24_rs::Nrf24l01; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi_struct` in this scope [INFO] [stdout] --> src/nrf24.rs:667:30 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce_pin` in this scope [INFO] [stdout] --> src/nrf24.rs:667:42 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ncs_pin` in this scope [INFO] [stdout] --> src/nrf24.rs:667:50 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:667:59 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NrfConfig` [INFO] [stdout] --> src/nrf24.rs:667:66 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24_rs::config::NrfConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PayloadSize` [INFO] [stdout] --> src/nrf24.rs:669:34 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(chip.payload_size()?, PayloadSize::Static(MAX_PAYLOAD_SIZE)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24_rs::config::PayloadSize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PAYLOAD_SIZE` in this scope [INFO] [stdout] --> src/nrf24.rs:669:54 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(chip.payload_size()?, PayloadSize::Static(MAX_PAYLOAD_SIZE)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24_rs::MAX_PAYLOAD_SIZE; [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/nrf24.rs:667:87 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_665_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | // Default payload size is MAX_PAYLOAD_SIZE [INFO] [stdout] 6 | | assert_eq!(chip.payload_size()?, PayloadSize::Static(MAX_PAYLOAD_SIZE)); [INFO] [stdout] 7 | | } _doctest_main_src_nrf24_rs_665_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/nrf24.rs:669:31 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_665_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] 5 | | // Default payload size is MAX_PAYLOAD_SIZE [INFO] [stdout] 6 | | assert_eq!(chip.payload_size()?, PayloadSize::Static(MAX_PAYLOAD_SIZE)); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } _doctest_main_src_nrf24_rs_665_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 10 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/nrf24.rs - nrf24::Nrf24l01::power_down (line 709) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:711:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.power_down(&mut delay)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:711:22 [INFO] [stdout] | [INFO] [stdout] 4 | chip.power_down(&mut delay)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:714:1 [INFO] [stdout] | [INFO] [stdout] 7 | chip.power_up(&mut delay)?; // power back up [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:714:20 [INFO] [stdout] | [INFO] [stdout] 7 | chip.power_up(&mut delay)?; // power back up [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/nrf24.rs:711:28 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_709_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.power_down(&mut delay)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | // Zzz [INFO] [stdout] 6 | | // ... [INFO] [stdout] 7 | | chip.power_up(&mut delay)?; // power back up [INFO] [stdout] 8 | | } _doctest_main_src_nrf24_rs_709_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/nrf24.rs:714:26 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_709_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.power_down(&mut delay)?; [INFO] [stdout] 5 | | // Zzz [INFO] [stdout] 6 | | // ... [INFO] [stdout] 7 | | chip.power_up(&mut delay)?; // power back up [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 8 | | } _doctest_main_src_nrf24_rs_709_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 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01 (line 25) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `nrf24` [INFO] [stdout] --> src/nrf24.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 4 | use nrf24::config::NrfConfig; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `nrf24` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `nrf24` [INFO] [stdout] --> src/nrf24.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24::Nrf24l01; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `nrf24` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi` in this scope [INFO] [stdout] --> src/nrf24.rs:30:27 [INFO] [stdout] | [INFO] [stdout] 7 | let nrf24 = Nrf24l01::new(spi, ce, ncs, &mut delay, NrfConfig::default()).unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce` in this scope [INFO] [stdout] --> src/nrf24.rs:30:32 [INFO] [stdout] | [INFO] [stdout] 7 | let nrf24 = Nrf24l01::new(spi, ce, ncs, &mut delay, NrfConfig::default()).unwrap(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ncs` in this scope [INFO] [stdout] --> src/nrf24.rs:30:36 [INFO] [stdout] | [INFO] [stdout] 7 | let nrf24 = Nrf24l01::new(spi, ce, ncs, &mut delay, NrfConfig::default()).unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:30:46 [INFO] [stdout] | [INFO] [stdout] 7 | let nrf24 = Nrf24l01::new(spi, ce, ncs, &mut delay, NrfConfig::default()).unwrap(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NrfConfig` [INFO] [stdout] --> src/nrf24.rs:30:53 [INFO] [stdout] | [INFO] [stdout] 7 | let nrf24 = Nrf24l01::new(spi, ce, ncs, &mut delay, NrfConfig::default()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use nrf24_rs::config::NrfConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::power_amp_level (line 567) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PALevel` [INFO] [stdout] --> src/nrf24.rs:571:37 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(chip.power_amp_level()?, PALevel::Min); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PALevel` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nrf24l01` [INFO] [stdout] --> src/nrf24.rs:569:16 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24_rs::Nrf24l01; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi_struct` in this scope [INFO] [stdout] --> src/nrf24.rs:569:30 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce_pin` in this scope [INFO] [stdout] --> src/nrf24.rs:569:42 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ncs_pin` in this scope [INFO] [stdout] --> src/nrf24.rs:569:50 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:569:59 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NrfConfig` [INFO] [stdout] --> src/nrf24.rs:569:66 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24_rs::config::NrfConfig; [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/nrf24.rs:569:87 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_567_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | // Default is Min PALevel [INFO] [stdout] 6 | | assert_eq!(chip.power_amp_level()?, PALevel::Min); [INFO] [stdout] 7 | | } _doctest_main_src_nrf24_rs_567_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/nrf24.rs:571:34 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_567_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] 5 | | // Default is Min PALevel [INFO] [stdout] 6 | | assert_eq!(chip.power_amp_level()?, PALevel::Min); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } _doctest_main_src_nrf24_rs_567_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 9 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/nrf24.rs - nrf24::Nrf24l01::power_up (line 681) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:683:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.power_down(&mut delay)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:683:22 [INFO] [stdout] | [INFO] [stdout] 4 | chip.power_down(&mut delay)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:686:1 [INFO] [stdout] | [INFO] [stdout] 7 | chip.power_up(&mut delay)?; // power back up [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:686:20 [INFO] [stdout] | [INFO] [stdout] 7 | chip.power_up(&mut delay)?; // power back up [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/nrf24.rs:683:28 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_681_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.power_down(&mut delay)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | // Zzz [INFO] [stdout] 6 | | // ... [INFO] [stdout] 7 | | chip.power_up(&mut delay)?; // power back up [INFO] [stdout] 8 | | } _doctest_main_src_nrf24_rs_681_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/nrf24.rs:686:26 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_681_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.power_down(&mut delay)?; [INFO] [stdout] 5 | | // Zzz [INFO] [stdout] 6 | | // ... [INFO] [stdout] 7 | | chip.power_up(&mut delay)?; // power back up [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 8 | | } _doctest_main_src_nrf24_rs_681_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 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 84) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `hal` [INFO] [stdout] --> src/lib.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 6 | use hal::prelude::*; [INFO] [stdout] | ^^^ use of undeclared crate or module `hal` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `panic_halt` [INFO] [stdout] --> src/lib.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 3 | use panic_halt as _; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no external crate `panic_halt` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `atmega168_hal`, `hal::spi` [INFO] [stdout] --> src/lib.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 5 | use atmega168_hal as hal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ no external crate `atmega168_hal` [INFO] [stdout] 6 | use hal::prelude::*; [INFO] [stdout] 7 | use hal::spi; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `atmega168_hal` [INFO] [stdout] --> src/lib.rs:93:3 [INFO] [stdout] | [INFO] [stdout] 11 | #[atmega168_hal::entry] [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared crate or module `atmega168_hal` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `spi` [INFO] [stdout] --> src/lib.rs:106:20 [INFO] [stdout] | [INFO] [stdout] 24 | let settings = spi::Settings { [INFO] [stdout] | ^^^ use of undeclared crate or module `spi` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `spi` [INFO] [stdout] --> src/lib.rs:107:21 [INFO] [stdout] | [INFO] [stdout] 25 | data_order: spi::DataOrder::MostSignificantFirst, [INFO] [stdout] | ^^^ use of undeclared crate or module `spi` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `spi` [INFO] [stdout] --> src/lib.rs:108:16 [INFO] [stdout] | [INFO] [stdout] 26 | clock: spi::SerialClockRate::OscfOver4, [INFO] [stdout] | ^^^ use of undeclared crate or module `spi` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `spi` [INFO] [stdout] --> src/lib.rs:111:22 [INFO] [stdout] | [INFO] [stdout] 29 | let (spi, ncs) = spi::Spi::new(dp.SPI, sclk, mosi, miso, ncs, settings); [INFO] [stdout] | ^^^ use of undeclared crate or module `spi` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce` in this scope [INFO] [stdout] --> src/lib.rs:123:43 [INFO] [stdout] | [INFO] [stdout] 41 | let mut nrf_chip = Nrf24l01::New(spi, ce, ncs, &mut delay, config).unwrap(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PayloadSize: From` is not satisfied [INFO] [stdout] --> src/lib.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 38 | .payload_size(b"Hello world!".len()); [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^^^ the trait `From` is not implemented for `PayloadSize` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] = note: required because of the requirements on the impl of `Into` for `usize` [INFO] [stdout] note: required by a bound in `NrfConfig::payload_size` [INFO] [stdout] --> /opt/rustwide/workdir/src/config.rs:72:28 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn payload_size>(mut self, payload_size: T) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ required by this bound in `NrfConfig::payload_size` [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `New` found for struct `Nrf24l01` in the current scope [INFO] [stdout] --> src/lib.rs:123:34 [INFO] [stdout] | [INFO] [stdout] 41 | let mut nrf_chip = Nrf24l01::New(spi, ce, ncs, &mut delay, config).unwrap(); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | associated item not found in `Nrf24l01<_, _, _>` [INFO] [stdout] | help: there is an associated function with a similar name: `new` [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `[{integer}; 12]` with `&[u8; 12]` [INFO] [stdout] --> src/lib.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 64 | assert_eq!(buffer, b"Hello world!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `[{integer}; 12] == &[u8; 12]` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&[u8; 12]>` is not implemented for `[{integer}; 12]` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::flush_tx (line 580) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:581:1 [INFO] [stdout] | [INFO] [stdout] 3 | chip.flush_tx()?; [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/nrf24.rs:581:16 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_580_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | chip.flush_tx()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_nrf24_rs_580_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 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::open_writing_pipe (line 207) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:209:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_writing_pipe(b"Node1")?; [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/nrf24.rs:209:33 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_207_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.open_writing_pipe(b"Node1")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } _doctest_main_src_nrf24_rs_207_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 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::retries (line 491) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nrf24l01` [INFO] [stdout] --> src/nrf24.rs:493:16 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24_rs::Nrf24l01; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi_struct` in this scope [INFO] [stdout] --> src/nrf24.rs:493:30 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce_pin` in this scope [INFO] [stdout] --> src/nrf24.rs:493:42 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ncs_pin` in this scope [INFO] [stdout] --> src/nrf24.rs:493:50 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:493:59 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NrfConfig` [INFO] [stdout] --> src/nrf24.rs:493:66 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24_rs::config::NrfConfig; [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/nrf24.rs:493:87 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_491_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let retries_config = chip.retries()?; [INFO] [stdout] ... | [INFO] [stdout] 9 | | assert_eq!(retries_config.count(), 15); [INFO] [stdout] 10 | | } _doctest_main_src_nrf24_rs_491_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/nrf24.rs:495:36 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_491_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let mut chip = Nrf24l01::new(spi_struct, ce_pin, ncs_pin, delay, NrfConfig::default())?; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let retries_config = chip.retries()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 9 | | assert_eq!(retries_config.count(), 15); [INFO] [stdout] 10 | | } _doctest_main_src_nrf24_rs_491_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 8 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/nrf24.rs - nrf24::Nrf24l01::set_address_width (line 540) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `nrf24l01` in this scope [INFO] [stdout] --> src/nrf24.rs:541:1 [INFO] [stdout] | [INFO] [stdout] 3 | nrf24l01.set_address_width(5)?; [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/nrf24.rs:541:30 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_540_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | nrf24l01.set_address_width(5)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_nrf24_rs_540_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 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::set_payload_size (line 622) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PayloadSize` [INFO] [stdout] --> src/nrf24.rs:624:23 [INFO] [stdout] | [INFO] [stdout] 4 | chip.set_payload_size(PayloadSize::Dynamic)?; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PayloadSize` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:624:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.set_payload_size(PayloadSize::Dynamic)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:625:1 [INFO] [stdout] | [INFO] [stdout] 5 | chip.set_payload_size(0)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:627:1 [INFO] [stdout] | [INFO] [stdout] 7 | chip.set_payload_size(12)?; // Messages will be 12 bytes [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:628:1 [INFO] [stdout] | [INFO] [stdout] 8 | chip.set_payload_size(PayloadSize::Static(12))?; // Same as previous [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PayloadSize` [INFO] [stdout] --> src/nrf24.rs:628:23 [INFO] [stdout] | [INFO] [stdout] 8 | chip.set_payload_size(PayloadSize::Static(12))?; // Same as previous [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24_rs::config::PayloadSize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:629:1 [INFO] [stdout] | [INFO] [stdout] 9 | chip.set_payload_size(49)?; // Messages will be `MAX_PAYLOAD_SIZE` [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/nrf24.rs:624:44 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_622_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.set_payload_size(PayloadSize::Dynamic)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | chip.set_payload_size(0)?; [INFO] [stdout] 6 | | // Following methods set a static payload size. [INFO] [stdout] ... | [INFO] [stdout] 9 | | chip.set_payload_size(49)?; // Messages will be `MAX_PAYLOAD_SIZE` [INFO] [stdout] 10 | | } _doctest_main_src_nrf24_rs_622_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/nrf24.rs:625:25 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_622_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.set_payload_size(PayloadSize::Dynamic)?; [INFO] [stdout] 5 | | chip.set_payload_size(0)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | // Following methods set a static payload size. [INFO] [stdout] ... | [INFO] [stdout] 9 | | chip.set_payload_size(49)?; // Messages will be `MAX_PAYLOAD_SIZE` [INFO] [stdout] 10 | | } _doctest_main_src_nrf24_rs_622_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/nrf24.rs:627:26 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_622_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.set_payload_size(PayloadSize::Dynamic)?; [INFO] [stdout] 5 | | chip.set_payload_size(0)?; [INFO] [stdout] 6 | | // Following methods set a static payload size. [INFO] [stdout] 7 | | chip.set_payload_size(12)?; // Messages will be 12 bytes [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 8 | | chip.set_payload_size(PayloadSize::Static(12))?; // Same as previous [INFO] [stdout] 9 | | chip.set_payload_size(49)?; // Messages will be `MAX_PAYLOAD_SIZE` [INFO] [stdout] 10 | | } _doctest_main_src_nrf24_rs_622_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/nrf24.rs:628:47 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_622_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.set_payload_size(PayloadSize::Dynamic)?; [INFO] [stdout] 5 | | chip.set_payload_size(0)?; [INFO] [stdout] 6 | | // Following methods set a static payload size. [INFO] [stdout] 7 | | chip.set_payload_size(12)?; // Messages will be 12 bytes [INFO] [stdout] 8 | | chip.set_payload_size(PayloadSize::Static(12))?; // Same as previous [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 9 | | chip.set_payload_size(49)?; // Messages will be `MAX_PAYLOAD_SIZE` [INFO] [stdout] 10 | | } _doctest_main_src_nrf24_rs_622_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/nrf24.rs:629:26 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_622_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.set_payload_size(PayloadSize::Dynamic)?; [INFO] [stdout] 5 | | chip.set_payload_size(0)?; [INFO] [stdout] 6 | | // Following methods set a static payload size. [INFO] [stdout] ... | [INFO] [stdout] 9 | | chip.set_payload_size(49)?; // Messages will be `MAX_PAYLOAD_SIZE` [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 10 | | } _doctest_main_src_nrf24_rs_622_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 12 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/nrf24.rs - nrf24::Nrf24l01::set_retries (line 472) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `nrf24l01` in this scope [INFO] [stdout] --> src/nrf24.rs:475:1 [INFO] [stdout] | [INFO] [stdout] 5 | nrf24l01.set_retries((5, 15))?; [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/nrf24.rs:475:30 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_472_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 5 | | nrf24l01.set_retries((5, 15))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | } _doctest_main_src_nrf24_rs_472_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 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::read (line 331) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataPipe` [INFO] [stdout] --> src/nrf24.rs:337:24 [INFO] [stdout] | [INFO] [stdout] 8 | chip.open_reading_pipe(DataPipe::DP0, b"Node1"); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataPipe` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NrfConfig` [INFO] [stdout] --> src/nrf24.rs:334:14 [INFO] [stdout] | [INFO] [stdout] 5 | let config = NrfConfig::default().payload_size(PayloadSize::Static(4)); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use nrf24_rs::config::NrfConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PayloadSize` [INFO] [stdout] --> src/nrf24.rs:334:48 [INFO] [stdout] | [INFO] [stdout] 5 | let config = NrfConfig::default().payload_size(PayloadSize::Static(4)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 4 | use nrf24_rs::config::PayloadSize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nrf24l01` [INFO] [stdout] --> src/nrf24.rs:335:12 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, ncs, &mut delay, config).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use nrf24_rs::Nrf24l01; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi` in this scope [INFO] [stdout] --> src/nrf24.rs:335:26 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, ncs, &mut delay, config).unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce` in this scope [INFO] [stdout] --> src/nrf24.rs:335:31 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, ncs, &mut delay, config).unwrap(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ncs` in this scope [INFO] [stdout] --> src/nrf24.rs:335:35 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, ncs, &mut delay, config).unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:335:45 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, ncs, &mut delay, config).unwrap(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:357:5 [INFO] [stdout] | [INFO] [stdout] 28 | delay.delay_us(50u16); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::stop_listening (line 259) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataPipe` [INFO] [stdout] --> src/nrf24.rs:261:24 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataPipe` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:261:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:262:1 [INFO] [stdout] | [INFO] [stdout] 5 | chip.start_listening()?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 8 | chip.stop_listening()?; [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/nrf24.rs:261:48 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_259_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | chip.start_listening()?; [INFO] [stdout] 6 | | // ... read data [INFO] [stdout] 7 | | // Reading is done, now we can stop listening [INFO] [stdout] 8 | | chip.stop_listening()?; [INFO] [stdout] 9 | | } _doctest_main_src_nrf24_rs_259_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/nrf24.rs:262:23 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_259_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] 5 | | chip.start_listening()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | // ... read data [INFO] [stdout] 7 | | // Reading is done, now we can stop listening [INFO] [stdout] 8 | | chip.stop_listening()?; [INFO] [stdout] 9 | | } _doctest_main_src_nrf24_rs_259_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/nrf24.rs:265:22 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_259_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] 5 | | chip.start_listening()?; [INFO] [stdout] 6 | | // ... read data [INFO] [stdout] 7 | | // Reading is done, now we can stop listening [INFO] [stdout] 8 | | chip.stop_listening()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 9 | | } _doctest_main_src_nrf24_rs_259_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, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::start_listening (line 233) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataPipe` [INFO] [stdout] --> src/nrf24.rs:235:24 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataPipe` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:235:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:237:1 [INFO] [stdout] | [INFO] [stdout] 6 | chip.start_listening() [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/nrf24.rs:235:48 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_233_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | // Configure the chip to listening modes (non blocking) [INFO] [stdout] 6 | | chip.start_listening() [INFO] [stdout] 7 | | // Now we can check for available messages and read them [INFO] [stdout] 8 | | } _doctest_main_src_nrf24_rs_233_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/nrf24.rs - nrf24::Nrf24l01::set_channel (line 512) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `nrf24l01` in this scope [INFO] [stdout] --> src/nrf24.rs:513:1 [INFO] [stdout] | [INFO] [stdout] 3 | nrf24l01.set_channel(74)?; [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/nrf24.rs:513:25 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nrf24_rs_512_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | nrf24l01.set_channel(74)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_nrf24_rs_512_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 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::write (line 385) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NrfConfig` [INFO] [stdout] --> src/nrf24.rs:388:14 [INFO] [stdout] | [INFO] [stdout] 5 | let config = NrfConfig::default().payload_size(PayloadSize::Static(4)); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use nrf24_rs::config::NrfConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PayloadSize` [INFO] [stdout] --> src/nrf24.rs:388:48 [INFO] [stdout] | [INFO] [stdout] 5 | let config = NrfConfig::default().payload_size(PayloadSize::Static(4)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 4 | use nrf24_rs::config::PayloadSize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nrf24l01` [INFO] [stdout] --> src/nrf24.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, ncs, &mut delay, config).unwrap(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use nrf24_rs::Nrf24l01; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi` in this scope [INFO] [stdout] --> src/nrf24.rs:389:26 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, ncs, &mut delay, config).unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce` in this scope [INFO] [stdout] --> src/nrf24.rs:389:31 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, ncs, &mut delay, config).unwrap(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ncs` in this scope [INFO] [stdout] --> src/nrf24.rs:389:35 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, ncs, &mut delay, config).unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:389:45 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, ncs, &mut delay, config).unwrap(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_reading` in this scope [INFO] [stdout] --> src/nrf24.rs:397:13 [INFO] [stdout] | [INFO] [stdout] 14 | let f = get_reading(); // data from some sensor [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:401:27 [INFO] [stdout] | [INFO] [stdout] 18 | match chip.write(&mut delay, &buffer) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:408:5 [INFO] [stdout] | [INFO] [stdout] 25 | delay.delay_us(50u16); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/config.rs - config::NrfConfig (line 30) [INFO] [stdout] src/config.rs - config::NrfConfig (line 40) [INFO] [stdout] src/lib.rs - (line 19) [INFO] [stdout] src/lib.rs - (line 84) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01 (line 25) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::channel (line 523) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::data_available (line 281) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::data_available_on_pipe (line 302) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::data_rate (line 554) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::enable_crc (line 602) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::flush_rx (line 590) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::flush_tx (line 580) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::is_connected (line 155) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::new (line 63) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::open_reading_pipe (line 172) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::open_writing_pipe (line 207) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::payload_size (line 665) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::power_amp_level (line 567) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::power_down (line 709) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::power_up (line 681) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::read (line 331) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::retries (line 491) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::set_address_width (line 540) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::set_channel (line 512) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::set_payload_size (line 622) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::set_retries (line 472) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::start_listening (line 233) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::stop_listening (line 259) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::write (line 385) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 29 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.83s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "169757e0e27c50d1f27e59a7ae2c7dc367e83d2bdb49af1b72c1142b629f0c18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "169757e0e27c50d1f27e59a7ae2c7dc367e83d2bdb49af1b72c1142b629f0c18", kill_on_drop: false }` [INFO] [stdout] 169757e0e27c50d1f27e59a7ae2c7dc367e83d2bdb49af1b72c1142b629f0c18