Skip to content

Commit

Permalink
Add compile-pass test
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev committed Dec 18, 2023
1 parent a316bc1 commit 843cc04
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/compile-pass/bitflags_impl_repr_packed.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
extern crate bitflags;

#[repr(packed)]
struct Example(u64);

bitflags::bitflags! {
impl Example: u64 {
const FLAG_1 = 0b01;
const FLAG_2 = 0b10;
}
}

fn main() {}

0 comments on commit 843cc04

Please sign in to comment.