diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2024-05-23 10:01:05 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2024-06-04 14:19:42 -0300 |
| commit | 2a377122dd41291747153ac82289e34a72275138 (patch) | |
| tree | fb74d0730022d76c6074c521a999887a587d9fcd /tests/ui/async-await/no-async-const.rs | |
| parent | bbddc9b58f3b2fcf1b624c2d0cabd49461f94575 (diff) | |
| download | rust-2a377122dd41291747153ac82289e34a72275138.tar.gz rust-2a377122dd41291747153ac82289e34a72275138.zip | |
Handle safety keyword for extern block inner items
Diffstat (limited to 'tests/ui/async-await/no-async-const.rs')
| -rw-r--r-- | tests/ui/async-await/no-async-const.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/async-await/no-async-const.rs b/tests/ui/async-await/no-async-const.rs index c5485ebc9b6..38a5df3576b 100644 --- a/tests/ui/async-await/no-async-const.rs +++ b/tests/ui/async-await/no-async-const.rs @@ -2,5 +2,5 @@ //@ compile-flags: --crate-type lib pub async const fn x() {} -//~^ ERROR expected one of `extern`, `fn`, or `unsafe`, found keyword `const` +//~^ ERROR expected one of `extern`, `fn`, `safe`, or `unsafe`, found keyword `const` //~| ERROR functions cannot be both `const` and `async` |
