added FromStr Impl for char

This commit is contained in:
tinaun
2017-05-27 18:12:16 -04:00
parent 557967766b
commit fd9d7aa2cf
6 changed files with 85 additions and 1 deletions

View File

@@ -321,6 +321,14 @@ impl Error for char::CharTryFromError {
}
}
#[stable(feature = "char_from_str", since = "1.19.0")]
impl Error for char::ParseCharError {
fn description(&self) -> &str {
self.__description()
}
}
// copied from any.rs
impl Error + 'static {
/// Returns true if the boxed type is the same as `T`