Skip to content

Commit ea25d08

Browse files
committed
Add more missing generics
1 parent a610469 commit ea25d08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

text/3185-static-async-fn-in-trait.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ trait Example {
133133
WC0..WCn, // Explicit where clauses
134134
Self: 'me; // Implied bound from `&self` parameter
135135

136-
fn method(&self) -> Self::$<'_, P0..Pn>
136+
fn method<P0..Pn>(&self) -> Self::$<'_, P0..Pn>
137137
where
138138
WC0..WCn;
139139
}
@@ -148,7 +148,7 @@ Otherwise, the desugaring is the same. The body of the function becomes an `asyn
148148

149149
```rust
150150
impl Example for ExampleType {
151-
async fn method(&self) {
151+
async fn method<P0..Pn>(&self) {
152152
...
153153
}
154154
}
@@ -159,7 +159,7 @@ impl Example for ExampleType {
159159
WC0..WCn, // Explicit where clauses
160160
Self: 'me; // Implied bound from `&self` parameter
161161

162-
fn method(&self) -> Self::$<'_, P0..Pn> {
162+
fn method<P0..Pn>(&self) -> Self::$<'_, P0..Pn> {
163163
async move { ... }
164164
}
165165
}

0 commit comments

Comments
 (0)