1 2 3 4 5 6 7 8 9 10 11
use depcon::*; trait Interface<A> {} #[derive(Injectable)] struct Implementation; #[auto_provide] impl<A> Interface<A> for Implementation {} fn main() {}