You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you remove bar(a.a) it will compile. The machine code produced for the X86_64 target is actually passing a reference to consume which modifies it through the pointer, and then a.a = 3 modifies the same stack instance (stack instance on main stack) but bar(a.a) errors on usage of moved value.
I think it should disallow the assignment of a.a = 3 because of a being moved.
The text was updated successfully, but these errors were encountered:
If you remove
bar(a.a)
it will compile. The machine code produced for the X86_64 target is actually passing a reference toconsume
which modifies it through the pointer, and thena.a = 3
modifies the same stack instance (stack instance on main stack) butbar(a.a)
errors on usage of moved value.I think it should disallow the assignment of
a.a = 3
because ofa
being moved.The text was updated successfully, but these errors were encountered: