summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-44216-sub-system-time.rs
blob: 2c5a000fab692d42b3de9ac92029b1b594b9b083 (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);
}