]> git.lizzy.rs Git - rust.git/blob - src/test/ui/iterators/iter-count-overflow-ndebug.rs
Update tests to remove old numeric constants
[rust.git] / src / test / ui / iterators / iter-count-overflow-ndebug.rs
1 // run-pass
2 // only-32bit too impatient for 2⁶⁴ items
3 // compile-flags: -C debug_assertions=no -C opt-level=3
4
5 fn main() {
6     assert_eq!((0..usize::MAX).by_ref().count(), usize::MAX);
7     assert_eq!((0..=usize::MAX).by_ref().count(), 0);
8 }