2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2016-09-12 10:23:02 -05:00
|
|
|
// compile-flags: -C debug_assertions=no
|
|
|
|
|
|
|
|
fn main() {
|
2020-06-02 02:59:11 -05:00
|
|
|
let mut it = u8::MAX..;
|
2016-11-02 09:11:53 -05:00
|
|
|
assert_eq!(it.next().unwrap(), 255);
|
2020-06-02 02:59:11 -05:00
|
|
|
assert_eq!(it.next().unwrap(), u8::MIN);
|
2016-09-12 10:23:02 -05:00
|
|
|
|
2020-06-02 02:59:11 -05:00
|
|
|
let mut it = i8::MAX..;
|
2016-11-02 09:11:53 -05:00
|
|
|
assert_eq!(it.next().unwrap(), 127);
|
2020-06-02 02:59:11 -05:00
|
|
|
assert_eq!(it.next().unwrap(), i8::MIN);
|
2016-09-12 10:23:02 -05:00
|
|
|
}
|