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-23.0.2 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-22.0.0 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-21.0.1 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-20.0.2 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-20.0.0 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-18.0.3 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-17.0.1 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-17.0.0 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-16.0.0 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-15.0.1 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-15.0.0 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-14.0.4 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-14.0.3 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-14.0.1 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-14.0.0 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-13.0.0 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-12.0.1 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-12.0.0 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-11.0.0 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs
wasmtime-10.0.1 ./ext/cargo-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_flags.rs