Skip to content

Commit

Permalink
Test attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanzab committed Sep 4, 2014
1 parent f3f038c commit ca60b74
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/libstd/bitflags.rs
Expand Up @@ -235,10 +235,18 @@ mod tests {
use ops::{BitOr, BitAnd, Sub, Not};

bitflags!(
#[doc = "> The first principle is that you must not fool yourself — and"]
#[doc = "> you are the easiest person to fool."]
#[doc = "> "]
#[doc = "> - Richard Feynman"]
flags Flags: u32 {
static FlagA = 0x00000001,
#[doc = "<pcwalton> macros are way better at generating code than trans is"]
static FlagB = 0x00000010,
static FlagC = 0x00000100,
#[doc = "* cmr bed"]
#[doc = "* strcat table"]
#[doc = "<strcat> wait what?"]
static FlagABC = FlagA.bits
| FlagB.bits
| FlagC.bits,
Expand Down

0 comments on commit ca60b74

Please sign in to comment.