summaryrefslogtreecommitdiffstats
path: root/tests/ui/binding/match-pattern-no-type-params.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/binding/match-pattern-no-type-params.rs')
-rw-r--r--tests/ui/binding/match-pattern-no-type-params.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/binding/match-pattern-no-type-params.rs b/tests/ui/binding/match-pattern-no-type-params.rs
new file mode 100644
index 000000000..1fc7ddda0
--- /dev/null
+++ b/tests/ui/binding/match-pattern-no-type-params.rs
@@ -0,0 +1,14 @@
+// run-pass
+#![allow(dead_code)]
+#![allow(non_camel_case_types)]
+
+enum maybe<T> { nothing, just(T), }
+
+fn foo(x: maybe<isize>) {
+ match x {
+ maybe::nothing => { println!("A"); }
+ maybe::just(_a) => { println!("B"); }
+ }
+}
+
+pub fn main() { }