Skip to content

Commit 0763b2e

Browse files
committed
Nikos review
1 parent dc1eeb4 commit 0763b2e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/items/associated-items.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ but cannot contain `Bounds`, but instead must contain a `Type`:
230230

231231
```rust,ignore
232232
type Assoc = Type;
233-
type Assoc<Params> = Type<Params>;
233+
type Assoc<Params> = Type; // the type `Type` here may reference `Params`
234234
type Assoc<Params> where WhereBounds = Type;
235235
type Assoc<Params> = Type where WhereBounds;
236236
```
@@ -338,7 +338,9 @@ impl<T> Container for Vec<T> {
338338
### Required where clauses on generic associated types
339339

340340
Generic associated type declarations on traits currently may require a list of
341-
where clauses, dependent on functions in the trait and how the GAT is used.
341+
where clauses, dependent on functions in the trait and how the GAT is used. These
342+
rules may be loosened in the future; updates can be found [on the generic
343+
associated types initiative repository](https://rust-lang.github.io/generic-associated-types-initiative/explainer/required_bounds.html).
342344

343345
In a few words, these where clauses are required in order to maximize the allowed
344346
definitions of the associated type in impls. To do this, any clauses that *can be

0 commit comments

Comments
 (0)