This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,20 @@ pub fn main() {
78
78
assert_eq ! ( TypeId :: of:: <other1:: U32Iterator >( ) , other1:: id_u32_iterator( ) ) ;
79
79
assert_eq ! ( other1:: id_i32_iterator( ) , other2:: id_i32_iterator( ) ) ;
80
80
assert_eq ! ( other1:: id_u32_iterator( ) , other2:: id_u32_iterator( ) ) ;
81
- assert ! ( other1:: id_i32_iterator( ) != other1:: id_u32_iterator( ) ) ;
82
- assert ! ( TypeId :: of:: <other1:: I32Iterator >( ) != TypeId :: of:: <other1:: U32Iterator >( ) ) ;
81
+ assert_ne ! ( other1:: id_i32_iterator( ) , other1:: id_u32_iterator( ) ) ;
82
+ assert_ne ! ( TypeId :: of:: <other1:: I32Iterator >( ) , TypeId :: of:: <other1:: U32Iterator >( ) ) ;
83
83
84
84
// Check fn pointer against collisions
85
- assert ! ( TypeId :: of:: <fn ( fn ( A ) -> A ) -> A >( ) !=
86
- TypeId :: of:: <fn ( fn ( ) -> A , A ) -> A >( ) ) ;
85
+ assert_ne ! (
86
+ TypeId :: of:: <fn ( fn ( A ) -> A ) -> A >( ) ,
87
+ TypeId :: of:: <fn ( fn ( ) -> A , A ) -> A >( )
88
+ ) ;
89
+ assert_ne ! (
90
+ TypeId :: of:: <for <' a> fn ( & ' a i32 ) -> & ' a i32 >( ) ,
91
+ TypeId :: of:: <for <' a> fn ( & ' a i32 ) -> & ' static i32 >( )
92
+ ) ;
93
+ assert_ne ! (
94
+ TypeId :: of:: <for <' a, ' b> fn ( & ' a i32 , & ' b i32 ) -> & ' a i32 >( ) ,
95
+ TypeId :: of:: <for <' a, ' b> fn ( & ' b i32 , & ' a i32 ) -> & ' a i32 >( )
96
+ ) ;
87
97
}
You can’t perform that action at this time.
0 commit comments