summaryrefslogtreecommitdiffstats
path: root/src/test/ui/occurs-check-3.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/occurs-check-3.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/occurs-check-3.rs b/src/test/ui/occurs-check-3.rs
new file mode 100644
index 000000000..9c0420401
--- /dev/null
+++ b/src/test/ui/occurs-check-3.rs
@@ -0,0 +1,5 @@
+// From Issue #778
+
+enum Clam<T> { A(T) }
+fn main() { let c; c = Clam::A(c); match c { Clam::A::<isize>(_) => { } } }
+//~^ ERROR mismatched types