Skip to content
Permalink
Browse files

Test attributes

  • Loading branch information...
brendanzab committed Sep 4, 2014
1 parent f3f038c commit ca60b743d7755f486158318212d33f0cc99a81ed
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/libstd/bitflags.rs
@@ -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,

0 comments on commit ca60b74

Please sign in to comment.
You can’t perform that action at this time.