]> git.lizzy.rs Git - rust.git/blob - src/test/ui/conditional-compilation/cfg_accessible-private.rs
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[rust.git] / src / test / ui / conditional-compilation / cfg_accessible-private.rs
1 // check-pass
2
3 #![feature(cfg_accessible)]
4
5 mod private {
6     struct Struct;
7     enum Enum{}
8     union Union{_a:u8}
9 }
10
11 #[cfg_accessible(private::Struct)]
12 const A: bool = true;
13
14 #[cfg_accessible(private::Enum)]
15 const A: bool = true;
16
17 #[cfg_accessible(private::Union)]
18 const A: bool = true;
19
20 const A: bool = false; // Will conflict if any of those is accessible
21 fn main() {}