]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/iterators/iter-count-overflow-debug.rs
2 // only-32bit too impatient for 2⁶⁴ items
4 // compile-flags: -C debug_assertions=yes -C opt-level=3
9 assert_eq
!((0..usize::MAX
).by_ref().count(), usize::MAX
);
11 let r
= panic
::catch_unwind(|| {
12 (0..=usize::MAX
).by_ref().count()