diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2020-11-04 16:01:35 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-01-17 05:46:09 -0500 |
commit | d930687a073f4209e6dd028363039a5869296d74 (patch) | |
tree | 25f61eddbea82df2ee4a1b406616cfe0744a1ea5 /testsuite/tests/warnings | |
parent | 9fa3428967c777ea8801a13e427b20ff4c4d0d59 (diff) | |
download | haskell-d930687a073f4209e6dd028363039a5869296d74.tar.gz |
Show missing field types (#18869)
Diffstat (limited to 'testsuite/tests/warnings')
-rw-r--r-- | testsuite/tests/warnings/should_fail/WerrorFail2.stderr | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/tests/warnings/should_fail/WerrorFail2.stderr b/testsuite/tests/warnings/should_fail/WerrorFail2.stderr index 66e99b9bbb..68c642107b 100644 --- a/testsuite/tests/warnings/should_fail/WerrorFail2.stderr +++ b/testsuite/tests/warnings/should_fail/WerrorFail2.stderr @@ -10,7 +10,8 @@ WerrorFail2.hs:19:1: warning: [-Wmissing-signatures (in -Wall)] Top-level binding with no type signature: printRec :: IO () WerrorFail2.hs:19:18: error: [-Wmissing-fields (in -Wdefault), -Werror=missing-fields] - • Fields of ‘Rec’ not initialised: f2 + • Fields of ‘Rec’ not initialised: + f2 :: Int • In the first argument of ‘print’, namely ‘Rec {f1 = 1}’ In the expression: print Rec {f1 = 1} In an equation for ‘printRec’: printRec = print Rec {f1 = 1} |