Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
issues
/
issue-44216-sub-instant.rs
blob: e40f80d449d96fed59794c8b97ca5b57ffdaa6ad [
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
);
}