1 #![feature(cfg_accessible)]
4 pub struct ExistingPublic;
5 struct ExistingPrivate;
16 #[cfg_accessible(Enum)]
17 struct ExistingResolved;
19 #[cfg_accessible(Enum::Existing)]
20 struct ExistingResolvedVariant;
22 #[cfg_accessible(m::ExistingPublic)]
23 struct ExistingPublic;
25 #[cfg_accessible(m::ExistingPrivate)]
26 struct ExistingPrivate;
28 #[cfg_accessible(m::NonExistent)]
29 struct NonExistingPrivate;
31 #[cfg_accessible(n::AccessibleExpanded)] // OK, `cfg_accessible` can wait and retry.
32 struct AccessibleExpanded;
34 #[cfg_accessible(Trait::Assoc)]
35 struct AccessibleTraitAssoc;
37 macro_rules! generate_accessible_expanded {
40 pub struct AccessibleExpanded;
45 generate_accessible_expanded!();
52 ExistingPrivate; //~ ERROR cannot find
53 NonExistingPrivate; //~ ERROR cannot find
54 NonExistingTraitAlias; //~ ERROR cannot find