diff --git a/library/core/src/error.rs b/library/core/src/error.rs index 8b2e538e87f1d..1dc213237aa78 100644 --- a/library/core/src/error.rs +++ b/library/core/src/error.rs @@ -208,7 +208,7 @@ pub trait Error: Debug + Display { #[unstable(feature = "error_generic_member_access", issue = "99301")] impl Provider for E where - E: Error, + E: Error + ?Sized, { fn provide<'a>(&'a self, req: &mut Demand<'a>) { self.provide(req)