diff options
Diffstat (limited to 'tests/ui/async-await/no-async-const.rs')
-rw-r--r-- | tests/ui/async-await/no-async-const.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/async-await/no-async-const.rs b/tests/ui/async-await/no-async-const.rs index 963460c11..c9941d1c5 100644 --- a/tests/ui/async-await/no-async-const.rs +++ b/tests/ui/async-await/no-async-const.rs @@ -3,3 +3,4 @@ pub async const fn x() {} //~^ ERROR expected one of `extern`, `fn`, or `unsafe`, found keyword `const` +//~| ERROR functions cannot be both `const` and `async` |