about summary refs log tree commit diff
path: root/tests/ui/pub
diff options
context:
space:
mode:
authorGurinder Singh <gurinder.singh@1e.com>2023-09-06 09:05:07 +0530
committerGurinder Singh <gurinder.singh@1e.com>2023-09-06 09:05:07 +0530
commit6a286e775c51efb5f05bb98ed2df6b9a974574ad (patch)
tree09fc31965920da56224d419efa11a861eb49dc68 /tests/ui/pub
parent9dc11a13fa848c1b09b7248c540528190dcb79c5 (diff)
downloadrust-6a286e775c51efb5f05bb98ed2df6b9a974574ad.tar.gz
rust-6a286e775c51efb5f05bb98ed2df6b9a974574ad.zip
Add explanatory note to 'expected item' error
Diffstat (limited to 'tests/ui/pub')
-rw-r--r--tests/ui/pub/pub-restricted-error-fn.stderr2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/pub/pub-restricted-error-fn.stderr b/tests/ui/pub/pub-restricted-error-fn.stderr
index 0511a821a7a..ca5d8e1b58e 100644
--- a/tests/ui/pub/pub-restricted-error-fn.stderr
+++ b/tests/ui/pub/pub-restricted-error-fn.stderr
@@ -11,6 +11,8 @@ error: expected item, found `(`
    |
 LL | pub(crate) () fn foo() {}
    |            ^ expected item
+   |
+   = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
 
 error: aborting due to 2 previous errors