diff options
| author | Taylor Cramer <cramertj@google.com> | 2019-06-24 17:48:21 -0700 |
|---|---|---|
| committer | Taylor Cramer <cramertj@google.com> | 2019-06-25 11:46:33 -0700 |
| commit | ba12e7862c58df2155011bb165a8ae1186828bc4 (patch) | |
| tree | 157a6114dc4b15bf9f31d5ddc1f51704bd8dd451 /src/test/ui/async-await/no-async-const.rs | |
| parent | bbbb3e597482bec1260ea733f7d3fc813bc136ae (diff) | |
| download | rust-ba12e7862c58df2155011bb165a8ae1186828bc4.tar.gz rust-ba12e7862c58df2155011bb165a8ae1186828bc4.zip | |
Add more tests for async/await
Diffstat (limited to 'src/test/ui/async-await/no-async-const.rs')
| -rw-r--r-- | src/test/ui/async-await/no-async-const.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/async-await/no-async-const.rs b/src/test/ui/async-await/no-async-const.rs new file mode 100644 index 00000000000..1db314a5aa2 --- /dev/null +++ b/src/test/ui/async-await/no-async-const.rs @@ -0,0 +1,8 @@ +// compile-fail +// edition:2018 +// compile-flags: --crate-type lib + +#![feature(async_await)] + +pub async const fn x() {} +//~^ ERROR expected one of `fn` or `unsafe`, found `const` |
