Add a test

This commit is contained in:
Ben Kimock 2024-09-14 17:30:07 -04:00
parent f827364a95
commit c547f51de1

View File

@ -154,3 +154,12 @@ fn no_niche() {
assert::is_transmutable::<Pair<V1, MaybeUninit<u8>>, OptionLike>(); assert::is_transmutable::<Pair<V1, MaybeUninit<u8>>, OptionLike>();
assert::is_transmutable::<Pair<V2, MaybeUninit<u8>>, OptionLike>(); assert::is_transmutable::<Pair<V2, MaybeUninit<u8>>, OptionLike>();
} }
fn niche_fields() {
enum Kind {
A(bool, bool),
B(bool),
}
assert::is_transmutable::<u16, Kind>();
}