We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c413250 commit 8337367Copy full SHA for 8337367
src/test/ui/conditional-compilation/cfg_accessible-private.rs
@@ -0,0 +1,21 @@
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
16
17
+#[cfg_accessible(private::Union)]
18
19
20
+const A: bool = false; // Will conflict if any of those is accessible
21
+fn main() {}
0 commit comments