blob: ca2c52b99a82a05b06db3e4e8863af8394bd0c3c [file] [log] [blame] [edit]
//@ run-fail
//@ error-pattern:overflow
use std::time::{Duration, Instant};
fn main() {
let now = Instant::now();
let _ = now + Duration::MAX;
}