summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/gadtSyntaxFail002.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/gadt/gadtSyntaxFail002.stderr')
-rw-r--r--testsuite/tests/gadt/gadtSyntaxFail002.stderr6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/gadtSyntaxFail002.stderr b/testsuite/tests/gadt/gadtSyntaxFail002.stderr
new file mode 100644
index 0000000000..c8bdbab224
--- /dev/null
+++ b/testsuite/tests/gadt/gadtSyntaxFail002.stderr
@@ -0,0 +1,6 @@
+
+gadtSyntaxFail002.hs:8:5:
+ Data constructor `C2' has existential type variables, a context, or a specialised result type
+ (Use -XExistentialQuantification or -XGADTs to allow this)
+ In the definition of data constructor `C2'
+ In the data type declaration for `Foo'