]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/async-await/in-trait/fn-not-async-err2.rs
Rollup merge of #102689 - ayrtonm:master, r=cjgillot
[rust.git] / src / test / ui / async-await / in-trait / fn-not-async-err2.rs
index f617a19ab3415d88c5e18d72419a904a913a9e8d..594baa91ad8ba61c21eb6914ae4c0b24e5fedd0b 100644 (file)
@@ -8,7 +8,7 @@
 trait MyTrait {
     async fn foo(&self) -> i32;
 }
-    
+
 impl MyTrait for i32 {
     fn foo(&self) -> impl Future<Output = i32> {
         //~^ ERROR `impl Trait` only allowed in function and inherent method return types, not in `impl` method return [E0562]