diff options
Diffstat (limited to 'tests/ui/structs-enums/enum-export-inheritance.rs')
-rw-r--r-- | tests/ui/structs-enums/enum-export-inheritance.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/structs-enums/enum-export-inheritance.rs b/tests/ui/structs-enums/enum-export-inheritance.rs new file mode 100644 index 000000000..6a36a004a --- /dev/null +++ b/tests/ui/structs-enums/enum-export-inheritance.rs @@ -0,0 +1,15 @@ +// run-pass +#![allow(dead_code)] +// pretty-expanded FIXME #23616 + +mod a { + pub enum Foo { + Bar, + Baz, + Boo + } +} + +pub fn main() { + let _x = a::Foo::Bar; +} |