2020-04-16 01:50:32 -05:00
|
|
|
// run-fail
|
2017-09-09 12:48:43 -05:00
|
|
|
// error-pattern:overflow
|
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();
|
2017-08-31 12:16:24 -05:00
|
|
|
let _ = now + Duration::from_secs(u64::max_value());
|
|
|
|
}
|