summaryrefslogtreecommitdiffstats
path: root/tests/ui/extern/issue-95829.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/extern/issue-95829.rs')
-rw-r--r--tests/ui/extern/issue-95829.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/extern/issue-95829.rs b/tests/ui/extern/issue-95829.rs
new file mode 100644
index 000000000..3379148ae
--- /dev/null
+++ b/tests/ui/extern/issue-95829.rs
@@ -0,0 +1,10 @@
+// edition:2018
+
+extern {
+ async fn L() { //~ ERROR: incorrect function inside `extern` block
+ //~^ ERROR: functions in `extern` blocks cannot have qualifiers
+ async fn M() {}
+ }
+}
+
+fn main() {}