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 17:20:39 +0000
committerMichael Goulet <michael@errs.io>2024-02-05 21:08:47 +0000
commite65abc0ea58f2f7dd6812fafa92c4f5b2a28af7b (patch)
tree2d5db82981a9de4bfb4e6f3945b0b25d3c69ce97 /tests/ui/async-await/in-trait/fn-not-async-err.rs
parent16cbdd0321f342093b71026dc1c5126606e4abe9 (diff)
downloadrust-e65abc0ea58f2f7dd6812fafa92c4f5b2a28af7b.tar.gz
rust-e65abc0ea58f2f7dd6812fafa92c4f5b2a28af7b.zip
Make the error message better
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 6261ed1f1b7..ecd5737cf3c 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: `i32` is not a future
+        //~^ ERROR: method should be `async` or return a future, but it is synchronous
         *self
     }
 }