pub fn parse_rustc_version( version: impl AsRef<str>, ) -> Result<(String, RustChannel), String>
Parses the output of rustc --version.
rustc --version
Returns an error when version has an unexpected format.
version