summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-44216-add-instant.rs
blob: 78cfecf2f32f049d4882bb2e9b1a8d3e1292991d (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);
}