Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think something else is going on here, because I shouldn't be allowed to call `hello(name)` twice if it was a move, should I?

https://godbolt.org/g/qUuETC



Arrays are Copy when T is Copy. u8 is Copy.


Ah.. I see, thanks for correcting me! Obviously I don't know enough Rust to argue about this.

So, is something like this(https://godbolt.org/g/1ugxcW) a inefficiency of the optimizer that we should hope to see fixed at some point?


I think so, yes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: