This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a bigger error exercise than the previous ones! | |
// You can do it! | |
// | |
// Edit the `read_and_validate` function so that it compiles and | |
// passes the tests... so many things could go wrong! | |
// | |
// - Reading from stdin could produce an io::Error | |
// - Parsing the input could produce a num::ParseIntError | |
// - Validating the input could produce a CreationError (defined below) | |
// |