Skip to content

Commit

Permalink
Mark SingleVariant as repr(u8) in c-style-enum
Browse files Browse the repository at this point in the history
I should rather properly fix debuginfo but I have no clue how to do that.
  • Loading branch information
nox committed Apr 26, 2018
1 parent 8f36804 commit 1c09977
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/debuginfo/c-style-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ enum ManualDiscriminant {
}

#[derive(Copy, Clone)]
#[repr(u8)]
enum SingleVariant {
TheOnlyVariant
}
Expand Down

0 comments on commit 1c09977

Please sign in to comment.