1 2 3 4 5 6 7 8
use traitful::seal; pub struct Newtype<T>(T); impl<T> Generic<T> for Newtype<T> {} #[seal(Newtype<T>)] pub trait Generic<T> {}