summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-44216-sub-instant.rs
blob: e40f80d449d96fed59794c8b97ca5b57ffdaa6ad (plain)
1
2
3
4
5
6
7
8
9
10
// run-fail
// error-pattern:overflow
// ignore-emscripten no processes

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

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