Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
iterators
/
skip-count-overflow.rs
blob: 64dee3e3c8b2029770789648d4c81966c8fe6f26 [
file
] [
log
] [
blame
]
// run-pass
// only-32bit too impatient for 2⁶⁴ items
// compile-flags: -C overflow-checks -C opt-level=3
fn
main
()
{
let
i
=
(
0.
.
usize
::
MAX
).
chain
(
0.
.
10
).
skip
(
usize
::
MAX
);
assert_eq
!(
i
.
count
(),
10
);
}