summaryrefslogtreecommitdiffstats
path: root/tests/ui/binding/simple-generic-match.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/binding/simple-generic-match.rs')
-rw-r--r--tests/ui/binding/simple-generic-match.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/binding/simple-generic-match.rs b/tests/ui/binding/simple-generic-match.rs
new file mode 100644
index 000000000..2cf050d01
--- /dev/null
+++ b/tests/ui/binding/simple-generic-match.rs
@@ -0,0 +1,8 @@
+// run-pass
+#![allow(non_camel_case_types)]
+
+// pretty-expanded FIXME #23616
+
+enum clam<T> { a(#[allow(unused_tuple_struct_fields)] T), }
+
+pub fn main() { let c = clam::a(2); match c { clam::a::<isize>(_) => { } } }