We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
http://is.gd/DOkUCJ Playground with backtrace
#[repr(C)] pub enum CPOption<T> { PSome(T), } fn main() { println!("sizeof CPOption<i32> {}", std::mem::size_of::<CPOption<i32>>()); }
Versions affected: stable, beta, nightly.
The text was updated successfully, but these errors were encountered:
Here's a debug trace from rustc 1.9.0-dev (470ca1c3f 2016-04-07)
rustc 1.9.0-dev (470ca1c3f 2016-04-07)
Sorry, something went wrong.
This is not limited to generic enums. Just an oversight in typeck that we allow it to get to trans at all.
Auto merge of #33355 - luqmana:33202-repr-ice, r=nrc
33a5c9d
adt: Allow repr attribute on single variant enum. Fixes #33202.
No branches or pull requests
http://is.gd/DOkUCJ Playground with backtrace
Versions affected: stable, beta, nightly.
The text was updated successfully, but these errors were encountered: