extern crate ambassador; use ambassador::*; #[delegatable_trait] pub trait Target {} pub struct SubTarget; impl Target for SubTarget {} #[derive(Delegate)] #[delegate(Target, generics = "T, U")] pub struct SuperTarget(SubTarget); pub fn main() {}