summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail032.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail032.stderr')
-rw-r--r--testsuite/tests/typecheck/should_fail/tcfail032.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail032.stderr b/testsuite/tests/typecheck/should_fail/tcfail032.stderr
new file mode 100644
index 0000000000..8cb4c1b99a
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/tcfail032.stderr
@@ -0,0 +1,14 @@
+
+tcfail032.hs:14:8:
+ Could not deduce (t ~ (a1 -> Int))
+ from the context (Eq a)
+ bound by the inferred type of f :: Eq a => t -> a -> Int
+ at tcfail032.hs:14:1-31
+ or from (Eq a1)
+ bound by an expression type signature: Eq a1 => a1 -> Int
+ at tcfail032.hs:14:8-30
+ `t' is a rigid type variable bound by
+ the inferred type of f :: Eq a => t -> a -> Int
+ at tcfail032.hs:14:1
+ In the expression: (x :: Eq a => a -> Int)
+ In an equation for `f': f x = (x :: Eq a => a -> Int)