diff --git a/library/core/tests/ptr.rs b/library/core/tests/ptr.rs index 84d3ae03ef4..750e7295fb5 100644 --- a/library/core/tests/ptr.rs +++ b/library/core/tests/ptr.rs @@ -289,7 +289,7 @@ fn test_const_nonnull_new() { } #[test] -#[cfg(any(unix, windows))] // printf may not be available on other platforms +#[cfg(unix)] // printf may not be available on other platforms #[allow(deprecated)] // For SipHasher pub fn test_variadic_fnptr() { use core::ffi;