1 #[macro_use] 2 extern crate lazy_static_compiletest as lazy_static; 3 4 mod outer { 5 pub mod inner { 6 lazy_static! { 7 pub(in outer) static ref FOO: () = (); 8 } 9 } 10 } 11 main()12 fn main() { 13 assert_eq!(*outer::inner::FOO, ()); //~ ERROR static `FOO` is private 14 } 15