You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use std::marker::PhantomData;#[macro_use]externcrate serde_derive;macro_rules!T{() => {()};}// generates impl<T> Serialize for A<T>#[derive(Serialize)]structA<T>{f:(),t:PhantomData<T>,}// generates impl<T> Serialize for A<T> where T: Serialize#[derive(Serialize)]structB<T>{f:T!(),t:PhantomData<T>,}fnmain(){}
When expanding B<T> we see T being used as a "path" in the macro and mistakenly conclude that the type parameter needs to be serializable.
The text was updated successfully, but these errors were encountered:
When expanding B<T> we see
T
being used as a "path" in the macro and mistakenly conclude that the type parameter needs to be serializable.The text was updated successfully, but these errors were encountered: