]> git.proxmox.com Git - rustc.git/blame - src/test/ui/unique/unique-cmp.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / unique / unique-cmp.rs
CommitLineData
b7449926 1// run-pass
0bf4aa26 2#![allow(unused_allocation)]
1a4d82fc 3
223e47cc 4pub fn main() {
c295e0f8
XL
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));
223e47cc 11}