summaryrefslogtreecommitdiff
path: root/testsuite/tests/overloadedrecflds/should_fail/DRFUnused.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/overloadedrecflds/should_fail/DRFUnused.stderr')
-rw-r--r--testsuite/tests/overloadedrecflds/should_fail/DRFUnused.stderr5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/overloadedrecflds/should_fail/DRFUnused.stderr b/testsuite/tests/overloadedrecflds/should_fail/DRFUnused.stderr
index a9dbd2cdd5..7e75f5c8c7 100644
--- a/testsuite/tests/overloadedrecflds/should_fail/DRFUnused.stderr
+++ b/testsuite/tests/overloadedrecflds/should_fail/DRFUnused.stderr
@@ -1,3 +1,8 @@
DRFUnused.hs:10:16: error: [-Wunused-top-binds (in -Wextra, -Wunused-binds), -Werror=unused-top-binds]
Defined but not used: ‘foo’
+
+DRFUnused.hs:18:5: warning: [-Wambiguous-fields (in -Wdefault)]
+ The field ‘foo’ belonging to type U is ambiguous.
+ This will not be supported by -XDuplicateRecordFields in future releases of GHC.
+ You can use explicit case analysis to resolve the ambiguity.