()
| 4 | |
| 5 | #[test] |
| 6 | fn cases() { |
| 7 | case(1 | 1 << 1 | 1 << 2, TestFlags::all_named); |
| 8 | |
| 9 | case(1 | 1 << 1 | 1 << 2, TestExternal::all_named); |
| 10 | |
| 11 | case(0, TestExternalFull::all_named); |
| 12 | } |
| 13 | |
| 14 | #[track_caller] |
| 15 | fn case<T: Flags>(expected: T::Bits, inherent: impl FnOnce() -> T) |