summaryrefslogtreecommitdiffstats
path: root/vendor/erased-serde/tests/traitobject.rs
blob: 03919f346810351a902beda0b1445e8368fea73b (plain)
1
2
3
4
5
6
7
8
9
use erased_serde::serialize_trait_object;

pub trait MyTrait: erased_serde::Serialize {}

serialize_trait_object!(MyTrait);

pub trait MyGenericTrait<'a, T>: erased_serde::Serialize {}

serialize_trait_object!(<'a, T> MyGenericTrait<'a, T>);