It's a Rust compile time Sudoku solver. It solves the almost complete puzzle, not the "real" puzzle.
[0]: https://play.rust-lang.org/?version=nightly&mode=debug&editi...
while grid[index] == 9 || grid[index] != 0 {
while grid[index] != 0 {
I think you want
while grid[index] == 9 || initial_grid[index] != 0 { grid[index] = initial_grid[index];
It's a Rust compile time Sudoku solver. It solves the almost complete puzzle, not the "real" puzzle.
[0]: https://play.rust-lang.org/?version=nightly&mode=debug&editi...
I think you want
or something to that effect.