[INFO] updating cached repository HarrisonMc555/connect-four [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/HarrisonMc555/connect-four [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/HarrisonMc555/connect-four" "work/ex/clippy-test-run/sources/stable/gh/HarrisonMc555/connect-four"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/HarrisonMc555/connect-four'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/HarrisonMc555/connect-four" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/HarrisonMc555/connect-four"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/HarrisonMc555/connect-four'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] a7ee9cd308e95c0fef448ae423b7314a3427ef79 [INFO] sha for GitHub repo HarrisonMc555/connect-four: a7ee9cd308e95c0fef448ae423b7314a3427ef79 [INFO] validating manifest of HarrisonMc555/connect-four on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of HarrisonMc555/connect-four on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing HarrisonMc555/connect-four [INFO] finished frobbing HarrisonMc555/connect-four [INFO] frobbed toml for HarrisonMc555/connect-four written to work/ex/clippy-test-run/sources/stable/gh/HarrisonMc555/connect-four/Cargo.toml [INFO] started frobbing HarrisonMc555/connect-four [INFO] finished frobbing HarrisonMc555/connect-four [INFO] frobbed toml for HarrisonMc555/connect-four written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/HarrisonMc555/connect-four/Cargo.toml [INFO] crate HarrisonMc555/connect-four has a lockfile. skipping [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting HarrisonMc555/connect-four against stable+rustflags=-Dclippy::into_iter_on_array for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-0/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/HarrisonMc555/connect-four:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dclippy::into_iter_on_array" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] d3387cd1c4adf2155f041ee79b05104fa812232ac704880c86188b65f90d7654 [INFO] running `"docker" "start" "-a" "d3387cd1c4adf2155f041ee79b05104fa812232ac704880c86188b65f90d7654"` [INFO] [stderr] Checking connect-four v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: redundant closure found [INFO] [stderr] --> src/game.rs:121:18 [INFO] [stderr] | [INFO] [stderr] 121 | .map(|team_num| Team(team_num)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove closure as shown: `Team` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_closure)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stderr] [INFO] [stderr] warning: an inclusive range would be more readable [INFO] [stderr] --> src/game.rs:151:13 [INFO] [stderr] | [INFO] [stderr] 151 | (0..self.num_cols - self.num_in_row + 1).any(|offset| { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0..=self.num_cols - self.num_in_row)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::range_plus_one)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#range_plus_one [INFO] [stderr] [INFO] [stderr] warning: you probably are missing some parameter in your format string [INFO] [stderr] --> src/game.rs:165:24 [INFO] [stderr] | [INFO] [stderr] 165 | panic!("Cannot convert team {} to a char"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::panic_params)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#panic_params [INFO] [stderr] [INFO] [stderr] warning: redundant closure found [INFO] [stderr] --> src/game.rs:121:18 [INFO] [stderr] | [INFO] [stderr] 121 | .map(|team_num| Team(team_num)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove closure as shown: `Team` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_closure)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stderr] [INFO] [stderr] warning: an inclusive range would be more readable [INFO] [stderr] --> src/game.rs:151:13 [INFO] [stderr] | [INFO] [stderr] 151 | (0..self.num_cols - self.num_in_row + 1).any(|offset| { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0..=self.num_cols - self.num_in_row)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::range_plus_one)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#range_plus_one [INFO] [stderr] [INFO] [stderr] warning: you probably are missing some parameter in your format string [INFO] [stderr] --> src/game.rs:165:24 [INFO] [stderr] | [INFO] [stderr] 165 | panic!("Cannot convert team {} to a char"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::panic_params)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#panic_params [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GameState` [INFO] [stderr] --> tests/connect_four.rs:7:17 [INFO] [stderr] | [INFO] [stderr] 7 | let _game = GameState::default(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `GameState` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GameState` [INFO] [stderr] --> tests/connect_four.rs:13:20 [INFO] [stderr] | [INFO] [stderr] 13 | let mut game = GameState::default(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `GameState` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GameState` [INFO] [stderr] --> tests/connect_four.rs:20:20 [INFO] [stderr] | [INFO] [stderr] 20 | let mut game = GameState::default(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `GameState` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:24:24 [INFO] [stderr] | [INFO] [stderr] 24 | game.drop_chip(Team::new(0), col1)?; [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:25:24 [INFO] [stderr] | [INFO] [stderr] 25 | game.drop_chip(Team::new(1), col2)?; [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GameState` [INFO] [stderr] --> tests/connect_four.rs:32:20 [INFO] [stderr] | [INFO] [stderr] 32 | let mut game = GameState::default(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `GameState` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:35:24 [INFO] [stderr] | [INFO] [stderr] 35 | game.drop_chip(Team::new(0), i)?; [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:38:28 [INFO] [stderr] | [INFO] [stderr] 38 | game.drop_chip(Team::new(1), i)?; [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:43:26 [INFO] [stderr] | [INFO] [stderr] 43 | assert!(game.has_won(Team::new(0))); [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:44:37 [INFO] [stderr] | [INFO] [stderr] 44 | assert_eq!(game.who_won(), Some(Team::new(0))); [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GameState` [INFO] [stderr] --> tests/connect_four.rs:50:20 [INFO] [stderr] | [INFO] [stderr] 50 | let mut game = GameState::default(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `GameState` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:53:24 [INFO] [stderr] | [INFO] [stderr] 53 | game.drop_chip(Team::new(0), 0)?; [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:56:28 [INFO] [stderr] | [INFO] [stderr] 56 | game.drop_chip(Team::new(1), 1)?; [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:61:26 [INFO] [stderr] | [INFO] [stderr] 61 | assert!(game.has_won(Team::new(0))); [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:62:37 [INFO] [stderr] | [INFO] [stderr] 62 | assert_eq!(game.who_won(), Some(Team::new(0))); [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GameState` [INFO] [stderr] --> tests/connect_four.rs:68:20 [INFO] [stderr] | [INFO] [stderr] 68 | let mut game = GameState::default(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `GameState` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:70:20 [INFO] [stderr] | [INFO] [stderr] 70 | game.drop_chip(Team::new(0), 0)?; // Team 0 (0, 0) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:71:20 [INFO] [stderr] | [INFO] [stderr] 71 | game.drop_chip(Team::new(1), 1)?; // Team 1 (0, 1) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:72:20 [INFO] [stderr] | [INFO] [stderr] 72 | game.drop_chip(Team::new(0), 1)?; // Team 0 (1, 1) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:73:20 [INFO] [stderr] | [INFO] [stderr] 73 | game.drop_chip(Team::new(1), 2)?; // Team 1 (0, 2) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:74:20 [INFO] [stderr] | [INFO] [stderr] 74 | game.drop_chip(Team::new(0), 2)?; // Team 0 (1, 2) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:75:20 [INFO] [stderr] | [INFO] [stderr] 75 | game.drop_chip(Team::new(1), DEFAULT_NUM_COLS - 1)?; // Team 1 (0, -1) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:76:20 [INFO] [stderr] | [INFO] [stderr] 76 | game.drop_chip(Team::new(0), 2)?; // Team 0 (2, 2) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:77:20 [INFO] [stderr] | [INFO] [stderr] 77 | game.drop_chip(Team::new(1), 3)?; // Team 1 (0, 3) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:78:20 [INFO] [stderr] | [INFO] [stderr] 78 | game.drop_chip(Team::new(0), 3)?; // Team 0 (1, 3) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:79:20 [INFO] [stderr] | [INFO] [stderr] 79 | game.drop_chip(Team::new(1), 3)?; // Team 1 (2, 3) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:80:20 [INFO] [stderr] | [INFO] [stderr] 80 | game.drop_chip(Team::new(0), 3)?; // Team 0 (3, 3) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:84:26 [INFO] [stderr] | [INFO] [stderr] 84 | assert!(game.has_won(Team::new(0))); [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:85:37 [INFO] [stderr] | [INFO] [stderr] 85 | assert_eq!(game.who_won(), Some(Team::new(0))); [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GameState` [INFO] [stderr] --> tests/connect_four.rs:91:20 [INFO] [stderr] | [INFO] [stderr] 91 | let mut game = GameState::default(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `GameState` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:93:20 [INFO] [stderr] | [INFO] [stderr] 93 | game.drop_chip(Team::new(0), 3)?; // Team 0 (0, 3) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:94:20 [INFO] [stderr] | [INFO] [stderr] 94 | game.drop_chip(Team::new(1), 2)?; // Team 1 (0, 2) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:95:20 [INFO] [stderr] | [INFO] [stderr] 95 | game.drop_chip(Team::new(0), 2)?; // Team 0 (1, 2) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:96:20 [INFO] [stderr] | [INFO] [stderr] 96 | game.drop_chip(Team::new(1), 1)?; // Team 1 (0, 1) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:97:20 [INFO] [stderr] | [INFO] [stderr] 97 | game.drop_chip(Team::new(0), 1)?; // Team 0 (1, 1) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:98:20 [INFO] [stderr] | [INFO] [stderr] 98 | game.drop_chip(Team::new(1), DEFAULT_NUM_COLS - 1)?; // Team 1 (0, -1) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:99:20 [INFO] [stderr] | [INFO] [stderr] 99 | game.drop_chip(Team::new(0), 1)?; // Team 0 (2, 1) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:100:20 [INFO] [stderr] | [INFO] [stderr] 100 | game.drop_chip(Team::new(1), 0)?; // Team 1 (0, 0) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:101:20 [INFO] [stderr] | [INFO] [stderr] 101 | game.drop_chip(Team::new(0), 0)?; // Team 0 (1, 0) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:102:20 [INFO] [stderr] | [INFO] [stderr] 102 | game.drop_chip(Team::new(1), 0)?; // Team 1 (2, 0) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:103:20 [INFO] [stderr] | [INFO] [stderr] 103 | game.drop_chip(Team::new(0), 0)?; // Team 0 (3, 0) [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:108:26 [INFO] [stderr] | [INFO] [stderr] 108 | assert!(game.has_won(Team::new(0))); [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:109:37 [INFO] [stderr] | [INFO] [stderr] 109 | assert_eq!(game.who_won(), Some(Team::new(0))); [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GameState` [INFO] [stderr] --> tests/connect_four.rs:115:20 [INFO] [stderr] | [INFO] [stderr] 115 | let mut game = GameState::default(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `GameState` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:116:33 [INFO] [stderr] | [INFO] [stderr] 116 | let result = game.drop_chip(Team::new(0), DEFAULT_NUM_COLS); [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Error` [INFO] [stderr] --> tests/connect_four.rs:117:28 [INFO] [stderr] | [INFO] [stderr] 117 | assert_eq!(result, Err(Error::OutOfBounds)); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Error` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:118:33 [INFO] [stderr] | [INFO] [stderr] 118 | let result = game.drop_chip(Team::new(0), DEFAULT_NUM_COLS + 1); [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Error` [INFO] [stderr] --> tests/connect_four.rs:119:28 [INFO] [stderr] | [INFO] [stderr] 119 | assert_eq!(result, Err(Error::OutOfBounds)); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Error` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:120:33 [INFO] [stderr] | [INFO] [stderr] 120 | let result = game.drop_chip(Team::new(0), DEFAULT_NUM_COLS * 2 + 1); [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Error` [INFO] [stderr] --> tests/connect_four.rs:121:28 [INFO] [stderr] | [INFO] [stderr] 121 | assert_eq!(result, Err(Error::OutOfBounds)); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Error` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GameState` [INFO] [stderr] --> tests/connect_four.rs:126:20 [INFO] [stderr] | [INFO] [stderr] 126 | let mut game = GameState::default(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `GameState` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Error` [INFO] [stderr] --> tests/connect_four.rs:135:28 [INFO] [stderr] | [INFO] [stderr] 135 | assert_eq!(result, Err(Error::ColumnFull)); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Error` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Error` [INFO] [stderr] --> tests/connect_four.rs:139:28 [INFO] [stderr] | [INFO] [stderr] 139 | assert_eq!(result, Err(Error::ColumnFull)); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Error` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GameState` [INFO] [stderr] --> tests/connect_four.rs:148:20 [INFO] [stderr] | [INFO] [stderr] 148 | let mut game = GameState::default(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `GameState` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:151:24 [INFO] [stderr] | [INFO] [stderr] 151 | game.drop_chip(Team::new(0), i)?; [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:154:28 [INFO] [stderr] | [INFO] [stderr] 154 | game.drop_chip(Team::new(1), i)?; [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:157:33 [INFO] [stderr] | [INFO] [stderr] 157 | let result = game.drop_chip(Team::new(1), 0); [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Error` [INFO] [stderr] --> tests/connect_four.rs:158:28 [INFO] [stderr] | [INFO] [stderr] 158 | assert_eq!(result, Err(Error::GameOver)); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Error` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GameState` [INFO] [stderr] --> tests/connect_four.rs:164:20 [INFO] [stderr] | [INFO] [stderr] 164 | let mut game = GameState::new(Team::new(2), 3, 10, 9, 6)?; [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `GameState` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:164:35 [INFO] [stderr] | [INFO] [stderr] 164 | let mut game = GameState::new(Team::new(2), 3, 10, 9, 6)?; [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:166:20 [INFO] [stderr] | [INFO] [stderr] 166 | game.drop_chip(Team::new(2), 0)?; [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:168:24 [INFO] [stderr] | [INFO] [stderr] 168 | game.drop_chip(Team::new(0), i)?; [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:169:24 [INFO] [stderr] | [INFO] [stderr] 169 | game.drop_chip(Team::new(1), i)?; [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Team` [INFO] [stderr] --> tests/connect_four.rs:170:24 [INFO] [stderr] | [INFO] [stderr] 170 | game.drop_chip(Team::new(2), i + 1)?; [INFO] [stderr] | ^^^^ use of undeclared type or module `Team` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GameState` [INFO] [stderr] --> tests/connect_four.rs:180:20 [INFO] [stderr] | [INFO] [stderr] 180 | let mut game = GameState::default(); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `GameState` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Error` in this scope [INFO] [stderr] --> tests/connect_four.rs:12:30 [INFO] [stderr] | [INFO] [stderr] 12 | fn drop_chip() -> Result<(), Error> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::error::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::fmt::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::io::Error; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_FIRST_TURN` in this scope [INFO] [stderr] --> tests/connect_four.rs:14:20 [INFO] [stderr] | [INFO] [stderr] 14 | game.drop_chip(DEFAULT_FIRST_TURN, 0)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_FIRST_TURN; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Error` in this scope [INFO] [stderr] --> tests/connect_four.rs:19:40 [INFO] [stderr] | [INFO] [stderr] 19 | fn drop_multiple_chips() -> Result<(), Error> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::error::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::fmt::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::io::Error; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_NUM_COLS` in this scope [INFO] [stderr] --> tests/connect_four.rs:21:17 [INFO] [stderr] | [INFO] [stderr] 21 | for i in 0..DEFAULT_NUM_COLS { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_NUM_COLS; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_NUM_COLS` in this scope [INFO] [stderr] --> tests/connect_four.rs:22:30 [INFO] [stderr] | [INFO] [stderr] 22 | let col1 = (i * 2) % DEFAULT_NUM_COLS; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_NUM_COLS; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_NUM_COLS` in this scope [INFO] [stderr] --> tests/connect_four.rs:23:34 [INFO] [stderr] | [INFO] [stderr] 23 | let col2 = (i * 2 + 1) % DEFAULT_NUM_COLS; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_NUM_COLS; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Error` in this scope [INFO] [stderr] --> tests/connect_four.rs:31:37 [INFO] [stderr] | [INFO] [stderr] 31 | fn win_horizontally() -> Result<(), Error> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::error::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::fmt::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::io::Error; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_NUM_IN_ROW` in this scope [INFO] [stderr] --> tests/connect_four.rs:33:17 [INFO] [stderr] | [INFO] [stderr] 33 | for i in 0..DEFAULT_NUM_IN_ROW { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_NUM_IN_ROW; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_NUM_IN_ROW` in this scope [INFO] [stderr] --> tests/connect_four.rs:37:16 [INFO] [stderr] | [INFO] [stderr] 37 | if i < DEFAULT_NUM_IN_ROW - 1 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_NUM_IN_ROW; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Error` in this scope [INFO] [stderr] --> tests/connect_four.rs:49:35 [INFO] [stderr] | [INFO] [stderr] 49 | fn win_vertically() -> Result<(), Error> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::error::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::fmt::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::io::Error; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_NUM_IN_ROW` in this scope [INFO] [stderr] --> tests/connect_four.rs:51:17 [INFO] [stderr] | [INFO] [stderr] 51 | for i in 0..DEFAULT_NUM_IN_ROW { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_NUM_IN_ROW; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_NUM_IN_ROW` in this scope [INFO] [stderr] --> tests/connect_four.rs:55:16 [INFO] [stderr] | [INFO] [stderr] 55 | if i < DEFAULT_NUM_IN_ROW - 1 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_NUM_IN_ROW; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Error` in this scope [INFO] [stderr] --> tests/connect_four.rs:67:44 [INFO] [stderr] | [INFO] [stderr] 67 | fn win_diagonally_up_right() -> Result<(), Error> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::error::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::fmt::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::io::Error; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_NUM_COLS` in this scope [INFO] [stderr] --> tests/connect_four.rs:75:34 [INFO] [stderr] | [INFO] [stderr] 75 | game.drop_chip(Team::new(1), DEFAULT_NUM_COLS - 1)?; // Team 1 (0, -1) [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_NUM_COLS; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Error` in this scope [INFO] [stderr] --> tests/connect_four.rs:90:43 [INFO] [stderr] | [INFO] [stderr] 90 | fn win_diagonally_up_left() -> Result<(), Error> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::error::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::fmt::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::io::Error; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_NUM_COLS` in this scope [INFO] [stderr] --> tests/connect_four.rs:98:34 [INFO] [stderr] | [INFO] [stderr] 98 | game.drop_chip(Team::new(1), DEFAULT_NUM_COLS - 1)?; // Team 1 (0, -1) [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_NUM_COLS; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_NUM_COLS` in this scope [INFO] [stderr] --> tests/connect_four.rs:116:47 [INFO] [stderr] | [INFO] [stderr] 116 | let result = game.drop_chip(Team::new(0), DEFAULT_NUM_COLS); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_NUM_COLS; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_NUM_COLS` in this scope [INFO] [stderr] --> tests/connect_four.rs:118:47 [INFO] [stderr] | [INFO] [stderr] 118 | let result = game.drop_chip(Team::new(0), DEFAULT_NUM_COLS + 1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_NUM_COLS; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_NUM_COLS` in this scope [INFO] [stderr] --> tests/connect_four.rs:120:47 [INFO] [stderr] | [INFO] [stderr] 120 | let result = game.drop_chip(Team::new(0), DEFAULT_NUM_COLS * 2 + 1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_NUM_COLS; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_NUM_ROWS` in this scope [INFO] [stderr] --> tests/connect_four.rs:127:17 [INFO] [stderr] | [INFO] [stderr] 127 | for _ in 0..DEFAULT_NUM_ROWS { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_NUM_ROWS; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Error` in this scope [INFO] [stderr] --> tests/connect_four.rs:147:45 [INFO] [stderr] | [INFO] [stderr] 147 | fn no_drops_after_game_over() -> Result<(), Error> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::error::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::fmt::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::io::Error; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_NUM_IN_ROW` in this scope [INFO] [stderr] --> tests/connect_four.rs:149:17 [INFO] [stderr] | [INFO] [stderr] 149 | for i in 0..DEFAULT_NUM_IN_ROW { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_NUM_IN_ROW; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_NUM_IN_ROW` in this scope [INFO] [stderr] --> tests/connect_four.rs:152:16 [INFO] [stderr] | [INFO] [stderr] 152 | if i < DEFAULT_NUM_IN_ROW - 1 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_NUM_IN_ROW; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Error` in this scope [INFO] [stderr] --> tests/connect_four.rs:163:32 [INFO] [stderr] | [INFO] [stderr] 163 | fn custom_game() -> Result<(), Error> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::error::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::fmt::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::io::Error; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Error` in this scope [INFO] [stderr] --> tests/connect_four.rs:179:32 [INFO] [stderr] | [INFO] [stderr] 179 | fn sample_game() -> Result<(), Error> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::error::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::fmt::Error; [INFO] [stderr] | [INFO] [stderr] 3 | use std::io::Error; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_NUM_IN_ROW` in this scope [INFO] [stderr] --> tests/connect_four.rs:181:17 [INFO] [stderr] | [INFO] [stderr] 181 | for i in 0..DEFAULT_NUM_IN_ROW { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_NUM_IN_ROW; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DEFAULT_NUM_IN_ROW` in this scope [INFO] [stderr] --> tests/connect_four.rs:191:16 [INFO] [stderr] | [INFO] [stderr] 191 | if i < DEFAULT_NUM_IN_ROW - 1 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::DEFAULT_NUM_IN_ROW; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> tests/connect_four.rs:207:22 [INFO] [stderr] | [INFO] [stderr] 207 | fn print_grid(game: &GameState, prefix: &str) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::GameState; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `GameState` in this scope [INFO] [stderr] --> tests/connect_four.rs:211:23 [INFO] [stderr] | [INFO] [stderr] 211 | fn grid_string(game: &GameState, prefix: &str) -> String { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::game::GameState; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `connect_four::*` [INFO] [stderr] --> tests/connect_four.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use connect_four::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stderr] --> tests/connect_four.rs:215:15 [INFO] [stderr] | [INFO] [stderr] 215 | .map(|s| prefix.to_owned() + &s) [INFO] [stderr] | ^ doesn't have a size known at compile-time [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Sized` is not implemented for `str` [INFO] [stderr] = note: to learn more, visit [INFO] [stderr] = note: all local variables must have a statically known size [INFO] [stderr] = help: unsized locals are gated as an unstable feature [INFO] [stderr] [INFO] [stderr] error: aborting due to 95 previous errors [INFO] [stderr] [INFO] [stderr] Some errors occurred: E0277, E0412, E0425, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: Could not compile `connect-four`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "d3387cd1c4adf2155f041ee79b05104fa812232ac704880c86188b65f90d7654"` [INFO] running `"docker" "rm" "-f" "d3387cd1c4adf2155f041ee79b05104fa812232ac704880c86188b65f90d7654"` [INFO] [stdout] d3387cd1c4adf2155f041ee79b05104fa812232ac704880c86188b65f90d7654