Sha256: 2ce4235802aa4e9c96c4e77d9e31d8401ef58dcda4741325184f0764ab1fe393

Contents?: true

Size: 325 Bytes

Versions: 30

Compression:

Stored size: 325 Bytes

Contents

mod example {
    use bitflags::bitflags;

    bitflags! {
        pub struct Flags1: u32 {
            const FLAG_A = 0b00000001;
        }

        struct Flags2: u32 {
            const FLAG_B = 0b00000010;
        }
    }
}

fn main() {
    let flag1 = example::Flags1::FLAG_A;
    let flag2 = example::Flags2::FLAG_B;
}

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
wasmtime-10.0.0 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-9.0.4 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-9.0.1 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-8.0.0 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-7.0.0 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-6.0.1 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-6.0.0 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-5.0.0 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-0.4.1 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-0.4.0 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs