11 trait ProductConsumer<P> {
12 fn consume(self, product: P);
15 impl<P> ProductConsumer<P> for () {
16 fn consume(self, _: P) {}
19 fn make_product_consumer<F: Factory>(_: F) -> impl ProductConsumer<F::Product> {
24 let consumer = make_product_consumer(());