☰
Debian Codegraph
@
0.12.0-1
0.10.0-1
/
/
debian
/
rust-vendor
/
bitflags-1.3.2
/
tests
/
compile-fail
/
visibility
/
private_field.rs
☽
☼
debian/rust-vendor/bitflags-1.3.2/tests/compile-fail/visibility/private_field.rs
code
plain
raw
MIT
or
Apache-2.0
the respective crate authors
debian/copyright
1
mod example {
2
use bitflags::bitflags;
3
4
bitflags! {
5
pub struct Flags1: u32 {
6
const FLAG_A = 0b00000001;
7
}
8
}
9
}
10
11
fn main() {
12
let flag1 = example::Flags1::FLAG_A.bits;
13
}