error: unchecked subtraction of a 'Duration' from an 'Instant'
--> $DIR/unchecked_duration_subtraction.rs:9:13
|
error: unchecked subtraction of a 'Duration' from an 'Instant'
--> $DIR/unchecked_duration_subtraction.rs:9:13
|
error: unchecked subtraction of a 'Duration' from an 'Instant'
--> $DIR/unchecked_duration_subtraction.rs:11:13
|
LL | let _ = Instant::now() - Duration::from_secs(5);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Instant::now().checked_sub(Duration::from_secs(5)).unwrap();`
error: unchecked subtraction of a 'Duration' from an 'Instant'
--> $DIR/unchecked_duration_subtraction.rs:11:13
|
LL | let _ = Instant::now() - Duration::from_secs(5);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Instant::now().checked_sub(Duration::from_secs(5)).unwrap();`
error: unchecked subtraction of a 'Duration' from an 'Instant'
--> $DIR/unchecked_duration_subtraction.rs:13:13
|
LL | let _ = _first - Duration::from_secs(5);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `_first.checked_sub(Duration::from_secs(5)).unwrap();`
error: unchecked subtraction of a 'Duration' from an 'Instant'
--> $DIR/unchecked_duration_subtraction.rs:13:13
|
LL | let _ = _first - Duration::from_secs(5);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `_first.checked_sub(Duration::from_secs(5)).unwrap();`
error: unchecked subtraction of a 'Duration' from an 'Instant'
--> $DIR/unchecked_duration_subtraction.rs:15:13
|
error: unchecked subtraction of a 'Duration' from an 'Instant'
--> $DIR/unchecked_duration_subtraction.rs:15:13
|