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