summaryrefslogtreecommitdiffstats
path: root/tests/ui/unique/unique-cmp.rs
blob: ee05dd5a31d5b5b268f2b014dff5b264e942aa49 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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));
}