1 #![allow( 2 dead_code, 3 non_snake_case, 4 non_camel_case_types, 5 non_upper_case_globals 6 )] 7 8 #[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] 9 pub mod root { 10 #[allow(unused_imports)] 11 use self::super::root; 12 pub mod foo { 13 #[allow(unused_imports)] 14 use self::super::super::root; 15 impl root::foo::Bar { 16 pub const Foo1: root::foo::Bar = Bar::Foo; 17 } 18 impl root::foo::Bar { 19 pub const Foo3: root::foo::Bar = Bar::Foo2; 20 } 21 #[repr(u32)] 22 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] 23 pub enum Bar { 24 Foo = 0, 25 Foo2 = 1, 26 } 27 } 28 } 29