]>
git.proxmox.com Git - rustc.git/blob - src/libcore/tests/intrinsics.rs
4 fn test_typeid_sized_types() {
8 assert_eq
!(TypeId
::of
::<X
>(), TypeId
::of
::<X
>());
9 assert_eq
!(TypeId
::of
::<Y
>(), TypeId
::of
::<Y
>());
10 assert
!(TypeId
::of
::<X
>() != TypeId
::of
::<Y
>());
14 fn test_typeid_unsized_types() {
17 struct Y(dyn Z
+ '
static);
19 assert_eq
!(TypeId
::of
::<X
>(), TypeId
::of
::<X
>());
20 assert_eq
!(TypeId
::of
::<Y
>(), TypeId
::of
::<Y
>());
21 assert
!(TypeId
::of
::<X
>() != TypeId
::of
::<Y
>());