about summary refs log tree commit diff
path: root/tests/ui/async-await/no-async-const.rs
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2023-10-27 13:22:10 +0000
committerclubby789 <jamie@hill-daniel.co.uk>2023-10-27 18:29:43 +0000
commitbe0b42fabe4b4abe10e7b6eb5e57ea12b6fa07c9 (patch)
tree6588b04a225c58862a0f91233a901a2704279862 /tests/ui/async-await/no-async-const.rs
parent54e57e66ffb8ef4f97916d46f40ddcb464fc8be3 (diff)
downloadrust-be0b42fabe4b4abe10e7b6eb5e57ea12b6fa07c9.tar.gz
rust-be0b42fabe4b4abe10e7b6eb5e57ea12b6fa07c9.zip
Recover from incorrectly ordered/duplicated function keywords
Diffstat (limited to 'tests/ui/async-await/no-async-const.rs')
-rw-r--r--tests/ui/async-await/no-async-const.rs1
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 963460c1182..c9941d1c5a0 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`