about summary refs log tree commit diff
path: root/tests/ui/async-await/async-closures/is-not-fn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/async-closures/is-not-fn.rs')
-rw-r--r--tests/ui/async-await/async-closures/is-not-fn.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/async-await/async-closures/is-not-fn.rs b/tests/ui/async-await/async-closures/is-not-fn.rs
index eacd07b7cdd..e5ab4742dab 100644
--- a/tests/ui/async-await/async-closures/is-not-fn.rs
+++ b/tests/ui/async-await/async-closures/is-not-fn.rs
@@ -6,5 +6,5 @@
 fn main() {
     fn needs_fn(x: impl FnOnce()) {}
     needs_fn(async || {});
-    //~^ ERROR expected `{async closure@is-not-fn.rs:8:14}` to be a closure that returns `()`
+    //~^ ERROR expected `{async closure@is-not-fn.rs:8:14}` to return `()`
 }