We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb1a03c commit 3a7fd1aCopy full SHA for 3a7fd1a
library/std/src/error.rs
@@ -637,6 +637,14 @@ impl Error for core::ffi::FromBytesWithNulError {
637
}
638
639
640
+#[unstable(feature = "todo", issue = "none")]
641
+impl From<core::ffi::FromBytesWithNulError> for io::Error {
642
+ /// Converts a [`NulError`] into an [`io::Error`].
643
+ fn from(e: core::ffi::FromBytesWithNulError) -> io::Error {
644
+ io::Error::new(io::ErrorKind::InvalidInput, e)
645
+ }
646
+}
647
+
648
#[unstable(feature = "cstr_from_bytes_until_nul", issue = "95027")]
649
impl Error for core::ffi::FromBytesUntilNulError {}
650
0 commit comments