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

"discriminator values can only be used with a c-like enum" wrong span #17383

Closed
mahkoh opened this issue Sep 19, 2014 · 0 comments · Fixed by #17415
Closed

"discriminator values can only be used with a c-like enum" wrong span #17383

mahkoh opened this issue Sep 19, 2014 · 0 comments · Fixed by #17415

Comments

@mahkoh
Copy link
Contributor

mahkoh commented Sep 19, 2014

#[repr(u8)]
enum X {
    A = b'a',
    B(int),
}

fn main() {
}
test.rs:7:1: 7:3 error: discriminator values can only be used with a c-like enum
test.rs:7 fn main() {
          ^~
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

Successfully merging a pull request may close this issue.

1 participant