We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2e3ab6 commit f4a95d3Copy full SHA for f4a95d3
2 files changed
library/std/src/sys/io/error/windows.rs
@@ -1,6 +1,9 @@
1
use crate::sys::pal::{api, c};
2
use crate::{io, ptr};
3
4
+#[cfg(test)]
5
+mod tests;
6
+
7
pub fn errno() -> i32 {
8
api::get_last_error().code as i32
9
}
…rary/std/src/sys/pal/windows/os/tests.rs …ry/std/src/sys/io/error/windows/tests.rslibrary/std/src/sys/pal/windows/os/tests.rs renamed to library/std/src/sys/io/error/windows/tests.rs
@@ -1,5 +1,5 @@
use crate::io::Error;
-use crate::sys::c;
+use crate::sys::pal::c;
// tests `error_string` above
#[test]
0 commit comments