batch-impl 0.7.2

A proc-macro library for batch generating trait impls with a powerful DSL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// A normal pass case that compiles: keeps trybuild's pass path non-empty.
use batch_impl::batch_impl;

#[batch_impl(usize, isize)]
trait Numeric {}

#[test]
fn numeric_for_usize_and_isize() {
    fn check<T: Numeric>(_: &T) {}
    check(&0usize);
    check(&0isize);
}

fn main() {}