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.
core::time
1 parent 3ddd67b commit 10ab98dCopy full SHA for 10ab98d
src/libcore/tests/time.rs
@@ -77,14 +77,16 @@ fn checked_sub() {
77
assert_eq!(zero.checked_sub(one_sec), None);
78
}
79
80
-#[test] #[should_panic]
+#[test]
81
+#[should_panic]
82
fn sub_bad1() {
- Duration::new(0, 0) - Duration::new(0, 1);
83
+ let _ = Duration::new(0, 0) - Duration::new(0, 1);
84
85
86
87
88
fn sub_bad2() {
- Duration::new(0, 0) - Duration::new(1, 0);
89
+ let _ = Duration::new(0, 0) - Duration::new(1, 0);
90
91
92
#[test]
0 commit comments