PR feedback

This commit is contained in:
Ben Kimock
2023-09-11 18:12:25 -04:00
parent 01e9798148
commit 6cee6b0bde
3 changed files with 56 additions and 36 deletions

View File

@@ -511,6 +511,7 @@ impl Error {
/// let eof_error = Error::from(ErrorKind::UnexpectedEof);
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[inline(never)]
pub fn new<E>(kind: ErrorKind, error: E) -> Error
where
E: Into<Box<dyn error::Error + Send + Sync>>,