-
Notifications
You must be signed in to change notification settings - Fork 41
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
Current scoped API is unsound #59
Comments
Indeed, you define a smart way to leak the local reference to a thread. However this is not a normal use case for I think we should enforce the scoped coroutine type not forgettable, but currently rust doesn't support that mechenism. |
That's how I have come to this code sample, I've assumed the generator should implement negative of any auto trait due to inability to analyze local variables within a generator, which would include the missing
I use roughly the same mechanism as with
Hey, that's actually my proposal! 😄 I appreciate this reference. |
Prints out:
Similar to Amanieu/corosensei#27
The text was updated successfully, but these errors were encountered: