3 ms·
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 ht
by noncoml 8y ago
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 https://godbolt.org/g/qUuETC
- steveklabnik 8y agoArrays are Copy when T is Copy. u8 is Copy.
- noncoml 8y agoAh.. 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 https://godbolt.org/g/1ugxcW) a inefficiency of the optimizer that we should hope to see fixed at some point?
- steveklabnik 8y agoI think so, yes.