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

#[repr(...)] not allowed on c-like univariant enums #20146

Closed
Aatch opened this issue Dec 22, 2014 · 1 comment
Closed

#[repr(...)] not allowed on c-like univariant enums #20146

Aatch opened this issue Dec 22, 2014 · 1 comment
Labels
A-FFI Area: Foreign function interface (FFI) A-type-system Area: Type system

Comments

@Aatch
Copy link
Contributor

Aatch commented Dec 22, 2014

This is currently an error:

#[repr(C)]
enum Foo {
    Foo
}

which is odd because it looks like a c-like enum. However it also looks like a univariant enum. We should specify which behaviour is correct.

More generally, should this be considered a c-like enum, or should it be a univariant enum. This affects several other aspects of the compiler.

@Aatch Aatch changed the title #[repr(...)] not allowed on c-like univariant enums #[repr(...)] not allowed on c-like univariant enums Dec 22, 2014
@kmcallister kmcallister added A-type-system Area: Type system A-FFI Area: Foreign function interface (FFI) labels Jan 16, 2015
@bluss
Copy link
Member

bluss commented May 20, 2015

Duplicate of #10292

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-FFI Area: Foreign function interface (FFI) A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

4 participants