]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unique/unique-cmp.rs
Rollup merge of #86984 - Smittyvb:ipv4-octal-zero, r=m-ou-se
[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 }