Files
tubestation/third_party/rust/bitflags/tests/external.rs
Kartikaya Gupta cbdf0c332f Bug 1335525 - Add webrender dependencies to third_party/rust. r=gfx
MozReview-Commit-ID: L77ffKqR5QU
2017-02-06 11:42:53 -05:00

22 lines
374 B
Rust

#![allow(dead_code)]
#[macro_use]
extern crate bitflags;
bitflags! {
/// baz
flags Flags: u32 {
const A = 0b00000001,
#[doc = "bar"]
const B = 0b00000010,
const C = 0b00000100,
#[doc = "foo"]
const ABC = A.bits | B.bits | C.bits,
}
}
#[test]
fn smoke() {
assert_eq!(ABC, A | B | C);
}