chromium/third_party/rust/chromium_crates_io/vendor/bitflags-1.3.2/tests/compile-pass/impls/inherent_methods.rs

use bitflags::bitflags;

bitflags! {
    struct Flags: u32 {
        const A = 0b00000001;
    }
}

impl Flags {
    pub fn new() -> Flags {
        Flags::A
    }
}

fn main() {}