#[derive(Deserialize)]
struct S<'d, T>
where T: Deserialize<'d>
{
foo: T,
other_field: String
}
The above code fails to compile, complaining unused lifetime parameter,
but if I remove it, Deserialize
would missing lifetime.
Can the above code be made correct without using phantom marker or DeserializeOwned
?