diff --git a/tests/compile-fail/invalid_offset.rs b/tests/compile-fail/invalid_offset.rs index fc0f81744..b33cf498b 100644 --- a/tests/compile-fail/invalid_offset.rs +++ b/tests/compile-fail/invalid_offset.rs @@ -1,7 +1,7 @@ use time::macros::offset; fn main() { - let _ = offset!(+24); + let _ = offset!(+26); let _ = offset!(+0:60); let _ = offset!(+0:00:60); let _ = offset!(0); diff --git a/tests/compile-fail/invalid_offset.stderr b/tests/compile-fail/invalid_offset.stderr index 743719850..7b66393aa 100644 --- a/tests/compile-fail/invalid_offset.stderr +++ b/tests/compile-fail/invalid_offset.stderr @@ -1,3 +1,9 @@ +error: invalid component: hour was 26 + --> ../tests/compile-fail/invalid_offset.rs:4:22 + | +4 | let _ = offset!(+26); + | ^^ + error: invalid component: minute was 60 --> ../tests/compile-fail/invalid_offset.rs:5:24 |