2024-02-16 14:02:50 -06:00
|
|
|
//@ check-pass
|
2022-05-25 05:19:50 -05:00
|
|
|
|
|
|
|
#![feature(cfg_accessible)]
|
|
|
|
|
|
|
|
mod private {
|
|
|
|
struct Struct;
|
|
|
|
enum Enum{}
|
|
|
|
union Union{_a:u8}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg_accessible(private::Struct)]
|
|
|
|
const A: bool = true;
|
|
|
|
|
|
|
|
#[cfg_accessible(private::Enum)]
|
|
|
|
const A: bool = true;
|
|
|
|
|
|
|
|
#[cfg_accessible(private::Union)]
|
|
|
|
const A: bool = true;
|
|
|
|
|
|
|
|
const A: bool = false; // Will conflict if any of those is accessible
|
|
|
|
fn main() {}
|