1
Fork 0
rust/tests/ui/issues/issue-44216-add-instant.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
155 B
Rust
Raw Normal View History

2020-04-16 15:50:32 +09:00
//@ run-fail
//@ error-pattern:overflow
use std::time::{Duration, Instant};
fn main() {
let now = Instant::now();
let _ = now + Duration::MAX;
}