Skip to content

Commit

Permalink
add test for deriving Zeroable on enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Dohrmann committed Apr 4, 2024
1 parent c5f7c69 commit 3d97dda
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions derive/tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ struct ZeroGeneric<T: bytemuck::Zeroable> {
a: T,
}

#[derive(Zeroable)]
#[repr(u8)]
enum ZeroEnum {
A = 0,
B = 1,
C = 2,
}

#[derive(TransparentWrapper)]
#[repr(transparent)]
struct TransparentSingle {
Expand Down

0 comments on commit 3d97dda

Please sign in to comment.