diff options
Diffstat (limited to 'third_party/rust/bitflags/tests/compile-pass/impls/default.rs')
-rw-r--r-- | third_party/rust/bitflags/tests/compile-pass/impls/default.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/third_party/rust/bitflags/tests/compile-pass/impls/default.rs b/third_party/rust/bitflags/tests/compile-pass/impls/default.rs new file mode 100644 index 0000000000..a97b6536f2 --- /dev/null +++ b/third_party/rust/bitflags/tests/compile-pass/impls/default.rs @@ -0,0 +1,10 @@ +use bitflags::bitflags; + +bitflags! { + #[derive(Default)] + struct Flags: u32 { + const A = 0b00000001; + } +} + +fn main() {} |