How to find generic bounds for producer that creates objects with trait-lifetime bounds

后端 未结 0 1768
情话喂你
情话喂你 2020-12-14 01:44

I have reduced my actual code to this minimal example:

trait Producer

where P: Something { fn produce(&self) -> Box

; } struct P1

相关标签:
回答
  • 消灭零回复
提交回复
热议问题