]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unique/unique-cmp.rs
Pin panic-in-drop=abort test to old pass manager
[rust.git] / src / test / ui / unique / unique-cmp.rs
1 // run-pass
2 #![allow(unused_allocation)]
3 #![feature(box_syntax)]
4
5 pub fn main() {
6     let i: Box<_> = box 100;
7     assert_eq!(i, box 100);
8     assert!(i < box 101);
9     assert!(i <= box 100);
10     assert!(i > box 99);
11     assert!(i >= box 99);
12 }