error[E0277]: the trait bound `u16: From<&str>` is not satisfied --> tests/compile_fail/invalid_header.rs:3:10 | 3 | #[derive(Encode, Debug)] | ^^^^^^ the trait `From<&str>` is not implemented for `u16` | = help: the following other types implement trait `From`: `u16` implements `From` `u16` implements `From` `u16` implements `From` = note: this error originates in the derive macro `Encode` (in Nightly builds, run with -Z macro-backtrace for more info)