mina86

joined 2 weeks ago
[–] [email protected] 1 points 2 weeks ago

This is too simplistic example to give any meaningful answer. What’s Type? What’s value? If it’s i32 and 42 than they both compile to the exact same thing. But if Type is Drop than the second will call the destructor on each iteration. (I’ve also written previously about similar example with BorrowedBuf^1^).

view more: ‹ prev next ›