diff options
Diffstat (limited to 'vendor/bitflags-1.3.2/tests/compile-fail/visibility/pub_const.rs')
-rw-r--r-- | vendor/bitflags-1.3.2/tests/compile-fail/visibility/pub_const.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/bitflags-1.3.2/tests/compile-fail/visibility/pub_const.rs b/vendor/bitflags-1.3.2/tests/compile-fail/visibility/pub_const.rs new file mode 100644 index 0000000..b90f0ce --- /dev/null +++ b/vendor/bitflags-1.3.2/tests/compile-fail/visibility/pub_const.rs @@ -0,0 +1,9 @@ +use bitflags::bitflags; + +bitflags! { + pub struct Flags1: u32 { + pub const FLAG_A = 0b00000001; + } +} + +fn main() {} |