summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-76437-unsafe.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/issue-76437-unsafe.stderr')
-rw-r--r--tests/ui/parser/issues/issue-76437-unsafe.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-76437-unsafe.stderr b/tests/ui/parser/issues/issue-76437-unsafe.stderr
new file mode 100644
index 000000000..c63292ef8
--- /dev/null
+++ b/tests/ui/parser/issues/issue-76437-unsafe.stderr
@@ -0,0 +1,11 @@
+error: expected one of `extern` or `fn`, found keyword `pub`
+ --> $DIR/issue-76437-unsafe.rs:4:12
+ |
+LL | unsafe pub fn t() {}
+ | -------^^^
+ | | |
+ | | expected one of `extern` or `fn`
+ | help: visibility `pub` must come before `unsafe`: `pub unsafe`
+
+error: aborting due to previous error
+