Y
Hacker News
new
|
ask
|
show
|
jobs
by
lpghatguy
2446 days ago
This code compiles just fine. It doesn't do anything since immutable references are Copy, and so dropping them doesn't do anything.
https://play.rust-lang.org/?version=stable&mode=debug&editio...
1 comments
hathawsh
2446 days ago
Oh right, I forgot about the interaction with generics in this case. Semantically, I suppose it's creating and dropping a reference 4 times.
link