add comment to impl !Error for &str

This commit is contained in:
Lukas Markeffsky 2023-03-30 22:19:28 +02:00
parent 789ee5e433
commit bdb0c7f427

View File

@ -2655,5 +2655,6 @@ impl_fn_for_zst! {
};
}
// This is required to make `impl From<&str> for Box<dyn Error>` and `impl<E> From<E> for Box<dyn Error>` not overlap.
#[stable(feature = "rust1", since = "1.0.0")]
impl !crate::error::Error for &str {}