(expected: T::Bits, inherent: impl FnOnce() -> T)
| 15 | |
| 16 | #[track_caller] |
| 17 | fn case<T: Flags>(expected: T::Bits, inherent: impl FnOnce() -> T) |
| 18 | where |
| 19 | <T as Flags>::Bits: std::fmt::Debug + PartialEq, |
| 20 | { |
| 21 | assert_eq!(expected, inherent().bits(), "T::empty()"); |
| 22 | assert_eq!(expected, T::empty().bits(), "Flags::empty()"); |
| 23 | } |