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
It prints 1, but aren't they meant to bind the same memory location?
...
I mean, ok, in line with the above this here doesn't compile:
structS(u8);let a @ b @ c = S(123);
So in a sense this doesn't really bind the underlying thing trice, but just creates 3 copies. This is probably the ugliest language concept I've come across but I like your example for outlining this weird behavior. I'd love if someone could sleuth a good (authoritative) link we can add for further reading.
Since Rust 1.56.0 you can run this code:
PR
playground
The text was updated successfully, but these errors were encountered: