2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(unused_allocation)]
|
2015-01-08 02:25:56 +01:00
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2021-08-25 02:39:40 +02:00
|
|
|
let i: Box<_> = Box::new(100);
|
|
|
|
|
assert_eq!(i, Box::new(100));
|
|
|
|
|
assert!(i < Box::new(101));
|
|
|
|
|
assert!(i <= Box::new(100));
|
|
|
|
|
assert!(i > Box::new(99));
|
|
|
|
|
assert!(i >= Box::new(99));
|
2013-02-14 11:47:00 -08:00
|
|
|
}
|