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