summary refs log tree commit diff
path: root/src/test/ui/unique/unique-cmp.rs
blob: 7bbc61d25ac780665a8db9ce4503eb26ab296f83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass
#![allow(unused_allocation)]
#![feature(box_syntax)]

pub fn main() {
    let i: Box<_> = box 100;
    assert_eq!(i, box 100);
    assert!(i < box 101);
    assert!(i <= box 100);
    assert!(i > box 99);
    assert!(i >= box 99);
}