]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unique/unique-cmp.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[rust.git] / src / test / ui / unique / unique-cmp.rs
1 // run-pass
2 #![allow(unused_allocation)]
3
4 pub fn main() {
5     let i: Box<_> = Box::new(100);
6     assert_eq!(i, Box::new(100));
7     assert!(i < Box::new(101));
8     assert!(i <= Box::new(100));
9     assert!(i > Box::new(99));
10     assert!(i >= Box::new(99));
11 }