Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
issues
/
issue-44216-add-instant.rs
blob: 78cfecf2f32f049d4882bb2e9b1a8d3e1292991d [
file
] [
log
] [
blame
]
// 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
);
}