Skip to content

Commit bdb0c7f

Browse files
author
Lukas Markeffsky
committed
add comment to impl !Error for &str
1 parent 789ee5e commit bdb0c7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/str/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2655,5 +2655,6 @@ impl_fn_for_zst! {
26552655
};
26562656
}
26572657

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

0 commit comments

Comments
 (0)