Skip to content

Commit ca60b74

Browse files
committed
Test attributes
1 parent f3f038c commit ca60b74

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/libstd/bitflags.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,18 @@ mod tests {
235235
use ops::{BitOr, BitAnd, Sub, Not};
236236

237237
bitflags!(
238+
#[doc = "> The first principle is that you must not fool yourself — and"]
239+
#[doc = "> you are the easiest person to fool."]
240+
#[doc = "> "]
241+
#[doc = "> - Richard Feynman"]
238242
flags Flags: u32 {
239243
static FlagA = 0x00000001,
244+
#[doc = "<pcwalton> macros are way better at generating code than trans is"]
240245
static FlagB = 0x00000010,
241246
static FlagC = 0x00000100,
247+
#[doc = "* cmr bed"]
248+
#[doc = "* strcat table"]
249+
#[doc = "<strcat> wait what?"]
242250
static FlagABC = FlagA.bits
243251
| FlagB.bits
244252
| FlagC.bits,

0 commit comments

Comments
 (0)