Compile and test the visibility example code

This commit is contained in:
David Tolnay
2017-10-22 12:48:00 -07:00
parent fbf7b62921
commit 90fdabbb00
+2 -1
View File
@@ -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;
//! }