error[E0277]: the trait bound `String: ref_cast::trivial::Trivial` is not satisfied --> tests/ui/not-trivial.rs:8:10 | 8 | two: String, | ^^^^^^ the trait `ref_cast::trivial::Trivial` is not implemented for `String` | help: the following other types implement trait `ref_cast::trivial::Trivial` --> src/trivial.rs | | impl Trivial for () {} | ^^^^^^^^^^^^^^^^^^^ `()` | impl Trivial for PhantomData {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `PhantomData` ... | impl Trivial for PhantomPinned {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `PhantomPinned` note: required by a bound in `ref_cast::__private25::assert_trivial` --> src/trivial.rs | | pub fn assert_trivial() {} | ^^^^^^^ required by this bound in `assert_trivial`