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

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

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