2020-04-16 01:50:32 -05:00
|
|
|
// run-fail
|
2017-09-09 12:48:43 -05:00
|
|
|
// error-pattern:overflow
|
2020-05-07 10:39:02 -05:00
|
|
|
// ignore-emscripten no processes
|
2017-08-31 12:16:24 -05:00
|
|
|
|
2017-09-09 12:48:43 -05:00
|
|
|
use std::time::{Duration, SystemTime};
|
2017-08-31 12:16:24 -05:00
|
|
|
|
|
|
|
fn main() {
|
2017-09-09 12:48:43 -05:00
|
|
|
let now = SystemTime::now();
|
2020-06-02 02:59:11 -05:00
|
|
|
let _ = now + Duration::from_secs(u64::MAX);
|
2017-08-31 12:16:24 -05:00
|
|
|
}
|