about summary refs log tree commit diff
path: root/tests/ui/async-await/in-trait/fn-not-async-err.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-01-18 16:39:20 +0000
committerMichael Goulet <michael@errs.io>2024-02-05 20:33:25 +0000
commit16cbdd0321f342093b71026dc1c5126606e4abe9 (patch)
treef2b339fadda9888ca0724d3c6fe29472e5e02997 /tests/ui/async-await/in-trait/fn-not-async-err.rs
parentea37e8091fe87ae0a7e204c034e7d55061e56790 (diff)
downloadrust-16cbdd0321f342093b71026dc1c5126606e4abe9.tar.gz
rust-16cbdd0321f342093b71026dc1c5126606e4abe9.zip
Allow desugaring async fn in trait to compatible, concrete future types
Diffstat (limited to 'tests/ui/async-await/in-trait/fn-not-async-err.rs')
-rw-r--r--tests/ui/async-await/in-trait/fn-not-async-err.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/async-await/in-trait/fn-not-async-err.rs b/tests/ui/async-await/in-trait/fn-not-async-err.rs
index 60077a7e00c..6261ed1f1b7 100644
--- a/tests/ui/async-await/in-trait/fn-not-async-err.rs
+++ b/tests/ui/async-await/in-trait/fn-not-async-err.rs
@@ -8,7 +8,7 @@ trait MyTrait {
 
 impl MyTrait for i32 {
     fn foo(&self) -> i32 {
-        //~^ ERROR: method `foo` should be async
+        //~^ ERROR: `i32` is not a future
         *self
     }
 }