From 84e0f89aa26244730363464ee8b00dcd40ae66da Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 1 Nov 2022 11:38:09 -0300 Subject: [PATCH] async fns desugared version is async move --- text/3185-static-async-fn-in-trait.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text/3185-static-async-fn-in-trait.md b/text/3185-static-async-fn-in-trait.md index 71039f2a7..d621f1d31 100644 --- a/text/3185-static-async-fn-in-trait.md +++ b/text/3185-static-async-fn-in-trait.md @@ -49,7 +49,7 @@ Note that if a function in a trait is written as an `async fn`, it must also be ```rust impl Service for MyService { fn request(&self, key: i32) -> impl Future { - async { + async move { ... } } @@ -71,7 +71,7 @@ impl Service for MyService { where Self: 'a; fn request<'a>(&'a self, key: i32) -> RequestFut<'a> { - async { ... } + async move { ... } } } ```