Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
iterators
/
iter-count-overflow-ndebug.rs
blob: b755bb554f4418da870a96d5426d8c0fc2fddd69 [
file
] [
log
] [
blame
]
// run-pass
// only-32bit too impatient for 2⁶⁴ items
// compile-flags: -C debug_assertions=no -C opt-level=3
use
std
::
panic
;
use
std
::
usize
::
MAX
;
fn
main
()
{
assert_eq
!((
0.
.
MAX
).
by_ref
().
count
(),
MAX
);
assert_eq
!((
0.
.=
MAX
).
by_ref
().
count
(),
0
);
}