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

Compiler crashes when using std::cast::transmute() with an enum #8043

Closed
slaren opened this issue Jul 25, 2013 · 1 comment
Closed

Compiler crashes when using std::cast::transmute() with an enum #8043

slaren opened this issue Jul 25, 2013 · 1 comment

Comments

@slaren
Copy link

slaren commented Jul 25, 2013

enum test { a }; let t: i64 = unsafe { std::cast::transmute(a) };

rustc output: https://gist.github.com/slaren/6078846

@dotdash
Copy link
Contributor

dotdash commented Jul 25, 2013

Duplicate of #7988 which was fixed by #7982

@huonw huonw closed this as completed Jul 25, 2013
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

3 participants