[INFO] cloning repository https://github.com/AdrianChallinorOsiris/TrainR
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AdrianChallinorOsiris/TrainR" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAdrianChallinorOsiris%2FTrainR", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAdrianChallinorOsiris%2FTrainR'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 3f018240f25b5bb9603472dd834c0b114591751d
[INFO] testing AdrianChallinorOsiris/TrainR against master#2fd6efc32704647e64d3d646d21c4c68eae100e4 for pr-149852-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAdrianChallinorOsiris%2FTrainR" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-4-tc1/source/.cargo/config.toml
[INFO] started tweaking git repo https://github.com/AdrianChallinorOsiris/TrainR
[INFO] finished tweaking git repo https://github.com/AdrianChallinorOsiris/TrainR
[INFO] tweaked toml for git repo https://github.com/AdrianChallinorOsiris/TrainR written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/AdrianChallinorOsiris/TrainR on toolchain 2fd6efc32704647e64d3d646d21c4c68eae100e4
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/AdrianChallinorOsiris/TrainR already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded zmij v1.0.10
[INFO] [stderr]   Downloaded gpio-cdev v0.6.0
[INFO] [stderr]   Downloaded syn v2.0.113
[INFO] [stderr]   Downloaded tower-http v0.5.2
[INFO] [stderr]   Downloaded libc v0.2.179
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 64c1ae0b410c5232a8d3b8bc854ac48b1598ee87dca9cf6a5ec92b4d6d5238e9
[INFO] running `Command { std: "docker" "start" "-a" "64c1ae0b410c5232a8d3b8bc854ac48b1598ee87dca9cf6a5ec92b4d6d5238e9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "64c1ae0b410c5232a8d3b8bc854ac48b1598ee87dca9cf6a5ec92b4d6d5238e9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "64c1ae0b410c5232a8d3b8bc854ac48b1598ee87dca9cf6a5ec92b4d6d5238e9", kill_on_drop: false }`
[INFO] [stdout] 64c1ae0b410c5232a8d3b8bc854ac48b1598ee87dca9cf6a5ec92b4d6d5238e9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9f4b8813278adf11f714113d40c507333ccdfb4f63e0b9b0c8465db5fc8fb0dd
[INFO] running `Command { std: "docker" "start" "-a" "9f4b8813278adf11f714113d40c507333ccdfb4f63e0b9b0c8465db5fc8fb0dd", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.179
[INFO] [stderr]    Compiling proc-macro2 v1.0.104
[INFO] [stderr]    Compiling itoa v1.0.17
[INFO] [stderr]    Compiling tracing-core v0.1.36
[INFO] [stderr]    Compiling log v0.4.29
[INFO] [stderr]    Compiling zerocopy v0.8.31
[INFO] [stderr]    Compiling zmij v1.0.10
[INFO] [stderr]    Compiling anstyle-parse v0.2.7
[INFO] [stderr]    Compiling anstyle v1.0.13
[INFO] [stderr]    Compiling colorchoice v1.0.4
[INFO] [stderr]    Compiling anstyle-query v1.1.5
[INFO] [stderr]    Compiling is_terminal_polyfill v1.70.2
[INFO] [stderr]    Compiling serde_json v1.0.148
[INFO] [stderr]    Compiling clap_lex v0.7.6
[INFO] [stderr]    Compiling ryu v1.0.22
[INFO] [stderr]    Compiling http-range-header v0.4.2
[INFO] [stderr]    Compiling http v1.4.0
[INFO] [stderr]    Compiling anstream v0.6.21
[INFO] [stderr]    Compiling serde_path_to_error v0.1.20
[INFO] [stderr]    Compiling tracing v0.1.44
[INFO] [stderr]    Compiling clap_builder v4.5.54
[INFO] [stderr]    Compiling tower v0.4.13
[INFO] [stderr]    Compiling quote v1.0.42
[INFO] [stderr]    Compiling syn v2.0.113
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling http-body-util v0.1.3
[INFO] [stderr]    Compiling errno v0.3.14
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling mio v1.1.1
[INFO] [stderr]    Compiling socket2 v0.6.1
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]    Compiling nix v0.27.1
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling signal-hook-registry v1.4.8
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling gpio-cdev v0.6.0
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling clap_derive v4.5.49
[INFO] [stderr]    Compiling tokio v1.49.0
[INFO] [stderr]    Compiling axum-core v0.4.5
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling clap v4.5.54
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling hyper v1.8.1
[INFO] [stderr]    Compiling tower v0.5.2
[INFO] [stderr]    Compiling tokio-util v0.7.18
[INFO] [stderr]    Compiling tower-http v0.5.2
[INFO] [stderr]    Compiling hyper-util v0.1.19
[INFO] [stderr]    Compiling axum v0.7.9
[INFO] [stderr]    Compiling train v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]   --> src/server.rs:56:29
[INFO] [stdout]    |
[INFO] [stdout] 56 | async fn get_all_leds(State(state): State<AppState>) -> Result<Json<Vec<LedResponse>>, StatusCode> {
[INFO] [stdout]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AMBER_LEDS`, `GREEN_LEDS`, and `RED_LEDS`
[INFO] [stdout]  --> src/main.rs:1:53
[INFO] [stdout]   |
[INFO] [stdout] 1 | use train::{LedController, AppState, create_router, GREEN_LEDS, AMBER_LEDS, RED_LEDS};
[INFO] [stdout]   |                                                     ^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 32.21s
[INFO] running `Command { std: "docker" "inspect" "9f4b8813278adf11f714113d40c507333ccdfb4f63e0b9b0c8465db5fc8fb0dd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9f4b8813278adf11f714113d40c507333ccdfb4f63e0b9b0c8465db5fc8fb0dd", kill_on_drop: false }`
[INFO] [stdout] 9f4b8813278adf11f714113d40c507333ccdfb4f63e0b9b0c8465db5fc8fb0dd
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0e4202d1754eb7c0e0a46a4d4a296c873570327c5a3da9ec4bf085861e5f109c
[INFO] running `Command { std: "docker" "start" "-a" "0e4202d1754eb7c0e0a46a4d4a296c873570327c5a3da9ec4bf085861e5f109c", kill_on_drop: false }`
[INFO] [stderr]    Compiling train v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]   --> src/server.rs:56:29
[INFO] [stdout]    |
[INFO] [stdout] 56 | async fn get_all_leds(State(state): State<AppState>) -> Result<Json<Vec<LedResponse>>, StatusCode> {
[INFO] [stdout]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AMBER_LEDS`, `GREEN_LEDS`, and `RED_LEDS`
[INFO] [stdout]  --> src/main.rs:1:53
[INFO] [stdout]   |
[INFO] [stdout] 1 | use train::{LedController, AppState, create_router, GREEN_LEDS, AMBER_LEDS, RED_LEDS};
[INFO] [stdout]   |                                                     ^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `state`
[INFO] [stdout]   --> src/server.rs:56:29
[INFO] [stdout]    |
[INFO] [stdout] 56 | async fn get_all_leds(State(state): State<AppState>) -> Result<Json<Vec<LedResponse>>, StatusCode> {
[INFO] [stdout]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.03s
[INFO] running `Command { std: "docker" "inspect" "0e4202d1754eb7c0e0a46a4d4a296c873570327c5a3da9ec4bf085861e5f109c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0e4202d1754eb7c0e0a46a4d4a296c873570327c5a3da9ec4bf085861e5f109c", kill_on_drop: false }`
[INFO] [stdout] 0e4202d1754eb7c0e0a46a4d4a296c873570327c5a3da9ec4bf085861e5f109c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 03ab1fc51943fe6e0385aaf72f1461ac691264f8d33d2ee9246a8ffc7fc00e21
[INFO] running `Command { std: "docker" "start" "-a" "03ab1fc51943fe6e0385aaf72f1461ac691264f8d33d2ee9246a8ffc7fc00e21", kill_on_drop: false }`
[INFO] [stderr] warning: unused variable: `state`
[INFO] [stderr]   --> src/server.rs:56:29
[INFO] [stderr]    |
[INFO] [stderr] 56 | async fn get_all_leds(State(state): State<AppState>) -> Result<Json<Vec<LedResponse>>, StatusCode> {
[INFO] [stderr]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `train` (lib) generated 1 warning (run `cargo fix --lib -p train` to apply 1 suggestion)
[INFO] [stderr] warning: unused imports: `AMBER_LEDS`, `GREEN_LEDS`, and `RED_LEDS`
[INFO] [stderr]  --> src/main.rs:1:53
[INFO] [stderr]   |
[INFO] [stderr] 1 | use train::{LedController, AppState, create_router, GREEN_LEDS, AMBER_LEDS, RED_LEDS};
[INFO] [stderr]   |                                                     ^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `train` (bin "train" test) generated 1 warning (run `cargo fix --bin "train" -p train --tests` to apply 1 suggestion)
[INFO] [stderr] warning: `train` (lib test) generated 1 warning (1 duplicate)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/train-00bcf10dc3de80c4)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/train-27f1535d4af81219)
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stderr]    Doc-tests train
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 4 tests
[INFO] [stdout] test src/leds.rs - leds::LedController::get_led_from_subset (line 196) ... FAILED
[INFO] [stdout] test src/leds.rs - leds::LedController::blink_by_color (line 282) ... FAILED
[INFO] [stdout] test src/leds.rs - leds::LedController::green_on (line 246) ... FAILED
[INFO] [stdout] test src/leds.rs - leds::LedController::set_led_by_color (line 223) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/leds.rs - leds::LedController::get_led_from_subset (line 196) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `RED_LEDS` in this scope
[INFO] [stdout]    --> src/leds.rs:198:31
[INFO] [stdout]     |
[INFO] [stdout] 198 | let led = get_led_from_subset(RED_LEDS, 2);
[INFO] [stdout]     |                               ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this constant
[INFO] [stdout]     |
[INFO] [stdout] 196 + use train::RED_LEDS;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_led_from_subset` in this scope
[INFO] [stdout]    --> src/leds.rs:198:11
[INFO] [stdout]     |
[INFO] [stdout] 198 | let led = get_led_from_subset(RED_LEDS, 2);
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/leds.rs - leds::LedController::blink_by_color (line 282) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `controller` in this scope
[INFO] [stdout]    --> src/leds.rs:284:1
[INFO] [stdout]     |
[INFO] [stdout] 284 | controller.blink_by_color(RED_LEDS, 1, 500).await?;
[INFO] [stdout]     | ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `RED_LEDS` in this scope
[INFO] [stdout]    --> src/leds.rs:284:27
[INFO] [stdout]     |
[INFO] [stdout] 284 | controller.blink_by_color(RED_LEDS, 1, 500).await?;
[INFO] [stdout]     |                           ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this constant
[INFO] [stdout]     |
[INFO] [stdout] 282 + use train::RED_LEDS;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/leds.rs:284:45
[INFO] [stdout]     |
[INFO] [stdout] 282 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_leds_rs_282_0() {
[INFO] [stdout]     |                                      ------------------------------------ this is not `async`
[INFO] [stdout] 283 | // Blink the 1st red LED (LED 13) at 500ms interval
[INFO] [stdout] 284 | controller.blink_by_color(RED_LEDS, 1, 500).await?;
[INFO] [stdout]     |                                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/leds.rs - leds::LedController::green_on (line 246) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `controller` in this scope
[INFO] [stdout]    --> src/leds.rs:248:1
[INFO] [stdout]     |
[INFO] [stdout] 248 | controller.green_on(2).await?;
[INFO] [stdout]     | ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/leds.rs:248:24
[INFO] [stdout]     |
[INFO] [stdout] 246 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_leds_rs_246_0() {
[INFO] [stdout]     |                                      ------------------------------------ this is not `async`
[INFO] [stdout] 247 | // Turn on the 2nd amber LED (LED 8)
[INFO] [stdout] 248 | controller.green_on(2).await?;
[INFO] [stdout]     |                        ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/leds.rs - leds::LedController::set_led_by_color (line 223) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `controller` in this scope
[INFO] [stdout]    --> src/leds.rs:225:1
[INFO] [stdout]     |
[INFO] [stdout] 225 | controller.set_led_by_color(RED_LEDS, 2, LedState::Off).await?;
[INFO] [stdout]     | ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `RED_LEDS` in this scope
[INFO] [stdout]    --> src/leds.rs:225:29
[INFO] [stdout]     |
[INFO] [stdout] 225 | controller.set_led_by_color(RED_LEDS, 2, LedState::Off).await?;
[INFO] [stdout]     |                             ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this constant
[INFO] [stdout]     |
[INFO] [stdout] 223 + use train::RED_LEDS;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LedState`
[INFO] [stdout]    --> src/leds.rs:225:42
[INFO] [stdout]     |
[INFO] [stdout] 225 | controller.set_led_by_color(RED_LEDS, 2, LedState::Off).await?;
[INFO] [stdout]     |                                          ^^^^^^^^ use of undeclared type `LedState`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout] 223 + use train::LedState;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `controller` in this scope
[INFO] [stdout]    --> src/leds.rs:228:1
[INFO] [stdout]     |
[INFO] [stdout] 228 | controller.set_led_by_color(GREEN_LEDS, 3, LedState::On).await?;
[INFO] [stdout]     | ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `GREEN_LEDS` in this scope
[INFO] [stdout]    --> src/leds.rs:228:29
[INFO] [stdout]     |
[INFO] [stdout] 228 | controller.set_led_by_color(GREEN_LEDS, 3, LedState::On).await?;
[INFO] [stdout]     |                             ^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this constant
[INFO] [stdout]     |
[INFO] [stdout] 223 + use train::GREEN_LEDS;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LedState`
[INFO] [stdout]    --> src/leds.rs:228:44
[INFO] [stdout]     |
[INFO] [stdout] 228 | controller.set_led_by_color(GREEN_LEDS, 3, LedState::On).await?;
[INFO] [stdout]     |                                            ^^^^^^^^ use of undeclared type `LedState`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout] 223 + use train::LedState;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/leds.rs:225:57
[INFO] [stdout]     |
[INFO] [stdout] 223 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_leds_rs_223_0() {
[INFO] [stdout]     |                                      ------------------------------------ this is not `async`
[INFO] [stdout] 224 | // Turn off the 2nd red LED (LED 14)
[INFO] [stdout] 225 | controller.set_led_by_color(RED_LEDS, 2, LedState::Off).await?;
[INFO] [stdout]     |                                                         ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/leds.rs:228:58
[INFO] [stdout]     |
[INFO] [stdout] 223 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_leds_rs_223_0() {
[INFO] [stdout]     |                                      ------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 228 | controller.set_led_by_color(GREEN_LEDS, 3, LedState::On).await?;
[INFO] [stdout]     |                                                          ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728.
[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/leds.rs - leds::LedController::blink_by_color (line 282)
[INFO] [stdout]     src/leds.rs - leds::LedController::get_led_from_subset (line 196)
[INFO] [stdout]     src/leds.rs - leds::LedController::green_on (line 246)
[INFO] [stdout]     src/leds.rs - leds::LedController::set_led_by_color (line 223)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.23s
[INFO] [stdout] 
[INFO] [stdout] all doctests ran in 0.49s; merged doctests compilation took 0.25s
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "03ab1fc51943fe6e0385aaf72f1461ac691264f8d33d2ee9246a8ffc7fc00e21", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "03ab1fc51943fe6e0385aaf72f1461ac691264f8d33d2ee9246a8ffc7fc00e21", kill_on_drop: false }`
[INFO] [stdout] 03ab1fc51943fe6e0385aaf72f1461ac691264f8d33d2ee9246a8ffc7fc00e21
