summaryrefslogtreecommitdiff
path: root/testsuite/tests/dependent/should_fail/T15825.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/dependent/should_fail/T15825.stderr')
-rw-r--r--testsuite/tests/dependent/should_fail/T15825.stderr10
1 files changed, 6 insertions, 4 deletions
diff --git a/testsuite/tests/dependent/should_fail/T15825.stderr b/testsuite/tests/dependent/should_fail/T15825.stderr
index 97582ba952..5d989303a6 100644
--- a/testsuite/tests/dependent/should_fail/T15825.stderr
+++ b/testsuite/tests/dependent/should_fail/T15825.stderr
@@ -1,6 +1,8 @@
-T15825.hs:14:31: error:
- • Illegal type synonym family application ‘GHC.Types.Any
- @k’ in instance:
- X (a @(GHC.Types.Any @k))
+T15825.hs:14:10: error:
+ • Cannot generalise type; skolem ‘k’ would escape its scope
+ if I tried to quantify (x0 :: k) in this type:
+ forall k (a :: C k). X (a @x0)
+ (Indeed, I sometimes struggle even printing this correctly,
+ due to its ill-scoped nature.)
• In the instance declaration for ‘X (a :: *)’