mirror of
https://github.com/openharmony/third_party_rust_bitflags.git
synced 2026-07-19 20:03:32 -04:00
Compile and test the visibility example code
This commit is contained in:
+2
-1
@@ -90,7 +90,7 @@
|
||||
//! out of the current module by default. A definition can be exported out of
|
||||
//! the current module by adding `pub` before `flags`:
|
||||
//!
|
||||
//! ```ignore
|
||||
//! ```
|
||||
//! #[macro_use]
|
||||
//! extern crate bitflags;
|
||||
//!
|
||||
@@ -101,6 +101,7 @@
|
||||
//! }
|
||||
//! }
|
||||
//! bitflags! {
|
||||
//! # pub
|
||||
//! struct Flags2: u32 {
|
||||
//! const B = 0b00000010;
|
||||
//! }
|
||||
|
||||
Reference in New Issue
Block a user