about summary refs log tree commit diff
path: root/tests/ui/async-await/no-async-const.rs
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2024-05-23 10:01:05 -0300
committerSantiago Pastorino <spastorino@gmail.com>2024-06-04 14:19:42 -0300
commit2a377122dd41291747153ac82289e34a72275138 (patch)
treefb74d0730022d76c6074c521a999887a587d9fcd /tests/ui/async-await/no-async-const.rs
parentbbddc9b58f3b2fcf1b624c2d0cabd49461f94575 (diff)
downloadrust-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.rs2
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`