mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
12 lines
257 B
Rust
12 lines
257 B
Rust
// run-pass
|
|
#![allow(unused_allocation)]
|
|
|
|
pub fn main() {
|
|
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));
|
|
}
|