summaryrefslogtreecommitdiffstats
path: root/src/test/ui/structs-enums/enum-export-inheritance.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/structs-enums/enum-export-inheritance.rs')
-rw-r--r--src/test/ui/structs-enums/enum-export-inheritance.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/structs-enums/enum-export-inheritance.rs b/src/test/ui/structs-enums/enum-export-inheritance.rs
new file mode 100644
index 000000000..6a36a004a
--- /dev/null
+++ b/src/test/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;
+}