1 #![feature(cfg_accessible)]
4 pub struct ExistingPublic;
5 struct ExistingPrivate;
8 #[cfg_accessible(m::ExistingPublic)]
11 // FIXME: Not implemented yet.
12 #[cfg_accessible(m::ExistingPrivate)] //~ ERROR not sure whether the path is accessible or not
13 struct ExistingPrivate;
15 // FIXME: Not implemented yet.
16 #[cfg_accessible(m::NonExistent)] //~ ERROR not sure whether the path is accessible or not
17 struct ExistingPrivate;
19 #[cfg_accessible(n::AccessibleExpanded)] // OK, `cfg_accessible` can wait and retry.
20 struct AccessibleExpanded;
22 macro_rules! generate_accessible_expanded {
25 pub struct AccessibleExpanded;
30 generate_accessible_expanded!();
36 // FIXME: Not implemented yet.
37 #[cfg_accessible(S::field)] //~ ERROR not sure whether the path is accessible or not