From bdb0c7f427c2be88e77b28cf21452cefc847b009 Mon Sep 17 00:00:00 2001 From: Lukas Markeffsky <@> Date: Thu, 30 Mar 2023 22:19:28 +0200 Subject: [PATCH] add comment to `impl !Error for &str` --- library/core/src/str/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs index 2b23f64732b..04169429949 100644 --- a/library/core/src/str/mod.rs +++ b/library/core/src/str/mod.rs @@ -2655,5 +2655,6 @@ impl_fn_for_zst! { }; } +// This is required to make `impl From<&str> for Box` and `impl From for Box` not overlap. #[stable(feature = "rust1", since = "1.0.0")] impl !crate::error::Error for &str {}