Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new type of reference: "&own" #2852

Closed
aristarh2704 opened this issue Jan 18, 2020 · 2 comments
Closed

Add a new type of reference: "&own" #2852

aristarh2704 opened this issue Jan 18, 2020 · 2 comments

Comments

@aristarh2704
Copy link

Transfer of ownership by reference is carried out through Box. There is a lot of magic associated with this structure in the compiler. I think it's better to use a new reference type for this purpose: &own, or special syntax: move &/&mut

@kennytm
Copy link
Member

kennytm commented Jan 18, 2020

This issue is a duplicate of #998.

@Centril Centril closed this as completed Jan 18, 2020
@shepmaster
Copy link
Member

See also the tangentially related #997

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants