error[E0277]: the trait bound `Password: Serialize` is not satisfied --> tests/ui/fail/serde/serialize_secret.rs:12:22 | 12 | assert_serialize(password); | ---------------- ^^^^^^^^ the trait `Serialize` is not implemented for `Password` | | | required by a bound introduced by this call | = help: the following other types implement trait `Serialize`: &'a T &'a mut T () (T0, T1) (T0, T1, T2) (T0, T1, T2, T3) (T0, T1, T2, T3, T4) (T0, T1, T2, T3, T4, T5) and 125 others note: required by a bound in `assert_serialize` --> tests/ui/fail/serde/serialize_secret.rs:15:24 | 15 | fn assert_serialize(_t: T) {} | ^^^^^^^^^^^^^^^^ required by this bound in `assert_serialize`