Asserts that the type implements all of the given traits.
assert_not_impl_all! for achieving the opposite effect.
assert_impl_all!(u32: Copy, Send); assert_impl_all!(&str: Into<String>);
The following example fails to compile because raw pointers do not implement
Send since they cannot be moved between threads safely:
ⓘThis example deliberately fails to compile
assert_impl_all!(*const u8: Send);