use impl_template::impl_template; trait Foo { } struct Bar; #[impl_template] impl Foo for Bar { } fn main() { }