temporary value dropped while borrowed ONLY if closure captures

前端 未结 0 1415
南笙
南笙 2021-02-01 06:24

Please consider the following example (playground):

struct Animal<\'a> {
    format: &\'a dyn Fn() -> (),
}
         


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