Sign in
fuchsia
/
third_party
/
rust
/
7dbfb0a8ca4ab74ee3111e57a024f9e6257ce37c
/
.
/
src
/
test
/
run-fail
/
issue-44216-add-instant.rs
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
());
}