diff options
Diffstat (limited to 'tests/ui/async-await/issue-68523.rs')
-rw-r--r-- | tests/ui/async-await/issue-68523.rs | 6 |
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) +} |