summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-76437-const-async.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/issue-76437-const-async.rs')
-rw-r--r--tests/ui/parser/issues/issue-76437-const-async.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-76437-const-async.rs b/tests/ui/parser/issues/issue-76437-const-async.rs
new file mode 100644
index 000000000..3c789fdcd
--- /dev/null
+++ b/tests/ui/parser/issues/issue-76437-const-async.rs
@@ -0,0 +1,7 @@
+// edition:2018
+
+mod t {
+ const async pub fn t() {}
+ //~^ ERROR expected one of `extern`, `fn`, or `unsafe`, found keyword `pub`
+ //~| HELP visibility `pub` must come before `const async`
+}