]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/async-await/in-trait/async-example-desugared.rs
Auto merge of #104334 - compiler-errors:ufcs-sugg-wrong-def-id, r=estebank
[rust.git] / src / test / ui / async-await / in-trait / async-example-desugared.rs
index 1313c9edd861c213850af2725cadc84f52146fed..fb92ec786746f9cb9ba3c18b0c9a239da183fa1e 100644 (file)
@@ -12,11 +12,8 @@ trait MyTrait {
 }
 
 impl MyTrait for i32 {
-    // This will break once a PR that implements #102745 is merged
     fn foo(&self) -> impl Future<Output = i32> + '_ {
-        async {
-            *self
-        }
+        async { *self }
     }
 }