Skip to content

Commit f4a95d3

Browse files
committed
std: move leftover Windows error test
1 parent d2e3ab6 commit f4a95d3

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

library/std/src/sys/io/error/windows.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
use crate::sys::pal::{api, c};
22
use crate::{io, ptr};
33

4+
#[cfg(test)]
5+
mod tests;
6+
47
pub fn errno() -> i32 {
58
api::get_last_error().code as i32
69
}

library/std/src/sys/pal/windows/os/tests.rs renamed to library/std/src/sys/io/error/windows/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::io::Error;
2-
use crate::sys::c;
2+
use crate::sys::pal::c;
33

44
// tests `error_string` above
55
#[test]

0 commit comments

Comments
 (0)