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
Can't define types as resources #601
Comments
Resources are nominal types. The use case you show just isn't how they work. |
Ah, ok. Patrick straightened me out on the resource use case. |
keeperofdakeys
pushed a commit
to keeperofdakeys/rust
that referenced
this issue
Dec 12, 2017
Added the sync() function from unistd.h This fixes rust-lang#601.
pdietl
pushed a commit
to pdietl/rust
that referenced
this issue
Apr 23, 2020
Remove unneeded | from AssignmentExpression
ZuseZ4
pushed a commit
to EnzymeAD/rust
that referenced
this issue
Mar 7, 2023
* Don't overflow bit size * Improve activity analysis * Fixup * Fix activity * Fix enzyme test * Handle pointer return
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following doesn't work:
Then I would expect to be able to:
Currently I don't see any way to make polymorphic resources.
The text was updated successfully, but these errors were encountered: