| 1 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 2 | fn test_non_static_type_idrust-analyzer cargo typeid 1.0.3 test_non_static_type_id().() { |
| 3 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<usize>(), typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<usize>()); |
| 4 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<&str>(), typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<&'static str>()); |
| 5 | |
| 6 | assert_nerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_ne!!(typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<u32>(), typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<[u8; 4]>()); |
| 7 | assert_nerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_ne!!(typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<u32>(), typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<[u32; 2]>()); |
| 8 | |
| 9 | assert_nerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_ne!!(typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<usize>(), typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<isize>()); |
| 10 | assert_nerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_ne!!(typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<usize>(), typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<&usize>()); |
| 11 | assert_nerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_ne!!(typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<&usize>(), typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<&&usize>()); |
| 12 | assert_nerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_ne!!(typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<&usize>(), typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<&mut usize>()); |
| 13 | |
| 14 | assert_nerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_ne!!(typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<fn(&str)>(), typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<fn(&'static str)>()); |
| 15 | |
| 16 | trait Traitrust-analyzer cargo typeid 1.0.3 Trait#<'a> {} |
| 17 | assert_nerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_ne!!( |
| 18 | typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<dyn for<'a> Traitrust-analyzer cargo typeid 1.0.3 Trait#<'a>>(), |
| 19 | typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<dyn Traitrust-analyzer cargo typeid 1.0.3 Trait#<'static>>(), |
| 20 | ); |
| 21 | |
| 22 | struct Arust-analyzer cargo typeid 1.0.3 A#; |
| 23 | struct Brust-analyzer cargo typeid 1.0.3 B#; |
| 24 | assert_nerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_ne!!(typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<Arust-analyzer cargo typeid 1.0.3 A#>(), typeidrust-analyzer cargo typeid 1.0.3 crate/::ofrust-analyzer cargo typeid 1.0.3 of().::<Brust-analyzer cargo typeid 1.0.3 B#>()); |
| 25 | } |