()
| 19 | } |
| 20 | |
| 21 | const U32_TYPE_ID: core::any::TypeId = core::any::TypeId::of::<u32>(); |
| 22 | const U64_TYPE_ID: core::any::TypeId = core::any::TypeId::of::<u64>(); |
| 23 | |
| 24 | // Check some core stuff to check it's compiling right |
| 25 | fn check_core_constants() { |
| 26 | assert!(U32_TYPE_ID == U32_TYPE_ID); |
| 27 | assert!(!(U32_TYPE_ID == U64_TYPE_ID)); |
| 28 | |
| 29 | let increment = &|value: u32| value + 1; |
| 30 | assert!((*increment)(41) == 42); |
nothing calls this directly
no test coverage detected