Asserts that the type implements any of the given traits.
assert_not_impl_any! for achieving the opposite effect.
u8 cannot be converted from
u16, but it can be converted into
assert_impl_any!(u8: From<u16>, Into<u16>);
The unit type cannot be converted from
u16, but it does implement
assert_impl_any!((): From<u8>, From<u16>, Send);
The following example fails to compile because raw pointers do not implement
Sync since they cannot be moved or shared between threads
ⓘThis example deliberately fails to compile
assert_impl_any!(*const u8: Send, Sync);