Debian Codegraph @

.cargo/vendor/bitflags-1.3.2/tests/compile-pass/visibility/pub_in.rs

raw
1 mod a {
2 mod b {
3 use bitflags::bitflags;
4
5 bitflags! {
6 pub(in crate::a) struct Flags: u32 {
7 const FLAG_A = 0b00000001;
8 }
9 }
10 }
11
12 pub fn flags() -> u32 {
13 b::Flags::FLAG_A.bits()
14 }
15 }
16
17 fn main() {
18 assert_eq!(0b00000001, a::flags());
19 }