We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e3bcddb + f9f2981 commit 3c9442fCopy full SHA for 3c9442f
src/libstd/error.rs
@@ -189,6 +189,17 @@ impl Error for string::ParseError {
189
}
190
191
192
+#[stable(feature = "box_error", since = "1.7.0")]
193
+impl<T: Error> Error for Box<T> {
194
+ fn description(&self) -> &str {
195
+ Error::description(&**self)
196
+ }
197
+
198
+ fn cause(&self) -> Option<&Error> {
199
+ Error::cause(&**self)
200
201
+}
202
203
// copied from any.rs
204
impl Error + 'static {
205
/// Returns true if the boxed type is the same as `T`
0 commit comments