summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-44216-add-system-time.rs
blob: 7e9a3f802ec89a28b89150f1c4bf2b8e7653672d (plain)
1
2
3
4
5
6
7
8
9
10
// run-fail
// error-pattern:overflow
// ignore-emscripten no processes

use std::time::{Duration, SystemTime};

fn main() {
    let now = SystemTime::now();
    let _ = now + Duration::from_secs(u64::MAX);
}