Skip to content

Commit 7fa79ca

Browse files
committed
Clarified the fact that generics are not inherited.
1 parent bda09e1 commit 7fa79ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-import-trait-associated-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ which compiles if and only if `T` and `Self` can be inferred from the function c
202202
```
203203
fn func(self, b: T, c: i32) {}
204204
```
205-
then `Trait<T>` would be inferred to be `<typeof(x) as Trait<typeof(y)>`.
205+
then `Trait<T>` would be inferred to be `<typeof(x) as Trait<typeof(y)>`. Generics on `Trait` are not directly specifiable when a function is called in this way. To call a function with explicit types specified you must use the usual fully qualified syntax.
206206

207207
# Drawbacks
208208
[drawbacks]: #drawbacks

0 commit comments

Comments
 (0)