about summary refs log tree commit diff
path: root/tests/ui/issues/issue-44216-sub-instant.rs
blob: 19cd12e685fd156f30e5decdf48f980c9773a584 (plain)
1
2
3
4
5
6
7
8
9
10
//@ run-fail
//@ error-pattern:overflow
//@ needs-subprocess

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

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