diff options
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/error.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstd/error.rs b/src/libstd/error.rs index c44a4bfe0f1..ee367193e45 100644 --- a/src/libstd/error.rs +++ b/src/libstd/error.rs @@ -182,6 +182,13 @@ impl Error for string::FromUtf16Error { } } +#[stable(feature = "str_parse_error2", since = "1.8.0")] +impl Error for string::ParseError { + fn description(&self) -> &str { + match *self {} + } +} + // copied from any.rs impl Error + 'static { /// Returns true if the boxed type is the same as `T` |
