the rust compiler is just lovely
❯ cargo test --bin day01
Compiling advent-2023 v0.1.0 (/Users/rob/src/adventofcode/2023)
error[E0608]: cannot index into a value of type `(&str, Vec<{integer}>)`
--> src/bin/day01.rs:76:42
|
76 | assert_eq!(convert(parse(pair[0])), pair[1]);
| ^^^ help: to access tuple elements, use: `.0`
error[E0608]: cannot index into a value of type `(&str, Vec<{integer}>)`
--> src/bin/day01.rs:76:53
|
76 | assert_eq!(convert(parse(pair[0])), pair[1]);
| ^^^ help: to access tuple elements, use: `.1`
For more information about this error, try `rustc --explain E0608`.
error: could not compile `advent-2023` (bin "day01" test) due to 2 previous errors
There really is just something special about how much effort people
have put in to making rustc not only give good errors, but in a lot
of cases just figure out what you wanted to do and tell you how,
instead of just an inscrutable PARSE ERROR: git gud.