Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
unique
/
unique-cmp.rs
blob: ee05dd5a31d5b5b268f2b014dff5b264e942aa49 [
file
]
// 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
));
}