about summary refs log tree commit diff
path: root/tests/ui/rust-2018/uniform-paths/fn-local-enum.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rust-2018/uniform-paths/fn-local-enum.rs')
-rw-r--r--tests/ui/rust-2018/uniform-paths/fn-local-enum.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/rust-2018/uniform-paths/fn-local-enum.rs b/tests/ui/rust-2018/uniform-paths/fn-local-enum.rs
new file mode 100644
index 00000000000..c6525869b02
--- /dev/null
+++ b/tests/ui/rust-2018/uniform-paths/fn-local-enum.rs
@@ -0,0 +1,13 @@
+// build-pass (FIXME(62277): could be check-pass?)
+// edition:2018
+
+fn main() {
+    enum E { A, B, C }
+
+    use E::*;
+    match A {
+        A => {}
+        B => {}
+        C => {}
+    }
+}