Sign in
fuchsia
/
third_party
/
rust
/
97d936423c914c4e3402bfecfd6943e1edf23815
/
.
/
src
/
test
/
run-fail
/
issue-44216-sub-instant.rs
blob: 8bc1f47ae2d967c7582af6347a37f953abb556b8 [
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
());
}