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