summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-34209.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-34209.rs')
-rw-r--r--tests/ui/issues/issue-34209.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-34209.rs b/tests/ui/issues/issue-34209.rs
new file mode 100644
index 000000000..632ddb91b
--- /dev/null
+++ b/tests/ui/issues/issue-34209.rs
@@ -0,0 +1,11 @@
+enum S {
+ A,
+}
+
+fn bug(l: S) {
+ match l {
+ S::B {} => {}, //~ ERROR no variant named `B` found for enum `S`
+ }
+}
+
+fn main () {}