diff --git a/library/std/src/error.rs b/library/std/src/error.rs index 526a1b92b19e2..93af0202deff8 100644 --- a/library/std/src/error.rs +++ b/library/std/src/error.rs @@ -516,6 +516,9 @@ impl Error for Box { } } +#[stable(feature = "box_error", since = "1.8.0")] +impl !Error for Box {} + #[stable(feature = "error_by_ref", since = "1.51.0")] impl<'a, T: Error + ?Sized> Error for &'a T { #[allow(deprecated, deprecated_in_future)]