1 2 3 4 5 6 7 8 9 10 11 12
impl_tools::impl_scope! { #[derive(Clone, Debug)] struct A<T: Clone + Debug>(T); impl () { fn new(t: T) -> A { A(t) } } } fn main() {}