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 f762c70 commit d5de67aCopy full SHA for d5de67a
tests/run-pass/time.rs
@@ -25,7 +25,7 @@ fn main() {
25
let now2 = Instant::now();
26
assert!(now2 > now1);
27
28
- #[cfg(target_os = "linux")] // TODO: macOS does not support Instant subtraction
+ #[cfg(not(target_os = "macos"))] // TODO: macOS does not support Instant subtraction
29
{
30
let diff = now2.duration_since(now1);
31
assert_eq!(now1 + diff, now2);
0 commit comments