blob: 76ad0a3d41bf82e0fda4119fff7c2e1e0fa1a6c1 [file] [log] [blame]
// error-pattern:overflow
use std::time::{Instant, Duration};
fn main() {
let now = Instant::now();
let _ = now + Duration::from_secs(u64::max_value());
}