]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-48006.rs
Update tests to remove old numeric constants
[rust.git] / src / test / ui / issues / issue-48006.rs
1 // run-pass
2
3 #![feature(step_trait)]
4
5 use std::iter::Step;
6
7 #[cfg(target_pointer_width = "16")]
8 fn main() {
9     assert!(Step::steps_between(&0u32, &u32::MAX).is_none());
10 }
11
12 #[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))]
13 fn main() {
14     assert!(Step::steps_between(&0u32, &u32::MAX).is_some());
15 }