1 #![feature(rustc_attrs)]
3 #[rustc_access_level] mod outer { //~ ERROR None
4 #[rustc_access_level] pub mod inner { //~ ERROR Some(Exported)
6 extern "C" { //~ ERROR Some(Exported)
7 #[rustc_access_level] static a: u8; //~ ERROR None
8 #[rustc_access_level] pub fn b(); //~ ERROR Some(Exported)
11 pub trait Trait { //~ ERROR Some(Exported)
12 #[rustc_access_level] const A: i32; //~ ERROR Some(Exported)
13 #[rustc_access_level] type B; //~ ERROR Some(Exported)
17 pub struct Struct { //~ ERROR Some(Exported)
18 #[rustc_access_level] a: u8, //~ ERROR None
19 #[rustc_access_level] pub b: u8, //~ ERROR Some(Exported)
23 pub union Union { //~ ERROR Some(Exported)
24 #[rustc_access_level] a: u8, //~ ERROR None
25 #[rustc_access_level] pub b: u8, //~ ERROR Some(Exported)
29 pub enum Enum { //~ ERROR Some(Exported)
30 #[rustc_access_level] A( //~ ERROR Some(Exported)
31 #[rustc_access_level] Struct, //~ ERROR Some(Exported)
32 #[rustc_access_level] Union, //~ ERROR Some(Exported)
37 #[rustc_access_level] macro_rules! none_macro { //~ ERROR None
42 #[rustc_access_level] macro_rules! public_macro { //~ ERROR Some(Public)