summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/issue-68523.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/issue-68523.rs')
-rw-r--r--tests/ui/async-await/issue-68523.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/async-await/issue-68523.rs b/tests/ui/async-await/issue-68523.rs
new file mode 100644
index 000000000..7a67661a0
--- /dev/null
+++ b/tests/ui/async-await/issue-68523.rs
@@ -0,0 +1,6 @@
+// edition:2018
+
+async fn main() -> Result<i32, ()> {
+//~^ ERROR `main` function is not allowed to be `async`
+ Ok(1)
+}