2013-05-18 01:47:51 +10:00
|
|
|
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2014-04-14 21:00:31 +05:30
|
|
|
#![deny(type_limits)]
|
2013-05-18 01:47:51 +10:00
|
|
|
|
2013-09-25 00:43:37 -07:00
|
|
|
pub fn main() {
|
2013-05-18 01:47:51 +10:00
|
|
|
let i: uint = 0;
|
2015-03-03 10:42:26 +02:00
|
|
|
assert!(i <= 0xFFFF_FFFF);
|
2013-05-18 01:47:51 +10:00
|
|
|
|
|
|
|
let i: int = 0;
|
2015-03-03 10:42:26 +02:00
|
|
|
assert!(i >= -0x8000_0000);
|
|
|
|
assert!(i <= 0x7FFF_FFFF);
|
2013-05-18 01:47:51 +10:00
|
|
|
}
|