diff options
| author | Michael Goulet <michael@errs.io> | 2024-01-18 16:39:20 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-02-05 20:33:25 +0000 |
| commit | 16cbdd0321f342093b71026dc1c5126606e4abe9 (patch) | |
| tree | f2b339fadda9888ca0724d3c6fe29472e5e02997 /tests/ui/async-await/in-trait/fn-not-async-err.rs | |
| parent | ea37e8091fe87ae0a7e204c034e7d55061e56790 (diff) | |
| download | rust-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.rs | 2 |
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 } } |
