use impl_template::impl_template; trait Foo {} mod types { pub struct Bar; pub struct Baz; } #[impl_template] impl Foo for ((types::Bar, types::Baz)) {} fn main() { assert_impls_foo::(); assert_impls_foo::(); } fn assert_impls_foo() {}