diff options
Diffstat (limited to 'src/test/ui/auxiliary/typeid-intrinsic-aux2.rs')
-rw-r--r-- | src/test/ui/auxiliary/typeid-intrinsic-aux2.rs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/test/ui/auxiliary/typeid-intrinsic-aux2.rs b/src/test/ui/auxiliary/typeid-intrinsic-aux2.rs deleted file mode 100644 index 281c07968..000000000 --- a/src/test/ui/auxiliary/typeid-intrinsic-aux2.rs +++ /dev/null @@ -1,29 +0,0 @@ -use std::any::{Any, TypeId}; - -pub struct A; -pub struct B(Option<A>); -pub struct C(Option<isize>); -pub struct D(Option<&'static str>); -pub struct E(Result<&'static str, isize>); - -pub type F = Option<isize>; -pub type G = usize; -pub type H = &'static str; -pub type I = Box<Fn()>; -pub type I32Iterator = Iterator<Item=i32>; -pub type U32Iterator = Iterator<Item=u32>; - -pub fn id_A() -> TypeId { TypeId::of::<A>() } -pub fn id_B() -> TypeId { TypeId::of::<B>() } -pub fn id_C() -> TypeId { TypeId::of::<C>() } -pub fn id_D() -> TypeId { TypeId::of::<D>() } -pub fn id_E() -> TypeId { TypeId::of::<E>() } -pub fn id_F() -> TypeId { TypeId::of::<F>() } -pub fn id_G() -> TypeId { TypeId::of::<G>() } -pub fn id_H() -> TypeId { TypeId::of::<H>() } -pub fn id_I() -> TypeId { TypeId::of::<I>() } - -pub fn foo<T: Any>() -> TypeId { TypeId::of::<T>() } - -pub fn id_i32_iterator() -> TypeId { TypeId::of::<I32Iterator>() } -pub fn id_u32_iterator() -> TypeId { TypeId::of::<U32Iterator>() } |