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