-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Ref<T> and &T have different lifetime requirements #37785
Comments
Ref has the drop-check rule because it has a destructor (Essentially issue #22321) |
Dear @bluss, |
Triage: now compiles on 2018.
edit: removing fixed-by-nll tag as I am not certain how it affects drop glue. pointing this out in another triage thread. |
FYI @memoryruins The use of NLL should not affect the dynamic semantics, at least in terms of when values are dropped. Therefore the use of NLL-fixed-by-NLL might remain appropriate here. I'm investigating now. |
Closing since the code now compiles on both editions on nightly |
This does not compile: https://is.gd/aNuNEg
This compiles: https://is.gd/lInFDJ
Found when trying to solve servo/servo#13418 (comment)
The text was updated successfully, but these errors were encountered: