Borrow checker complains for closure inside loop if type not provided explicitly

前端 未结 0 835
说谎
说谎 2021-02-09 13:05

I have this code, for which borrow checker shows error:

https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=55d050b6f25410ce0e17ef9e844b04

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