Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
box
/
unit
/
unique-cmp.rs
blob: 1bf3ec0bef403346e05830de08bab93e675f8a69 [
file
] [
log
] [
blame
] [
edit
]
//@ 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
));
}