Skip to content

Commit 4682216

Browse files
committed
rfc, associated-type-bounds: improve grammar + link to RFC 2071 (+ notes about it..)
1 parent 95d569a commit 4682216

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

text/0000-associated-type-bounds.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ trait TraitA {
123123

124124
## Notes on the meaning of `impl Trait<Assoc: Bound>`
125125

126-
Note that in the context `-> impl Trait<Assoc: Bound>`, since the
127-
`Trait` is existentially quantified, so is in effect also the `Assoc`.
128-
Semantically speaking, `fn printables..` is equivalent to:
126+
Note that in the context `-> impl Trait<Assoc: Bound>`, since the Trait is
127+
existentially quantified, the `Assoc` is as well. Semantically speaking,
128+
`fn printables..` is equivalent to:
129129

130130
```rust
131131
fn printables() -> impl Iterator<Item = impl Display> { .. }
@@ -149,6 +149,11 @@ existential type Foo: Trait<Assoc = _0>;
149149
existential type _0: Bound;
150150
```
151151

152+
[RFC 2071]: https://github.com/rust-lang/rfcs/blob/master/text/2071-impl-trait-type-alias.md
153+
154+
This syntax is specified in [RFC 2071]. As in that RFC, this documentation
155+
uses the non-final syntax for existential type aliases.
156+
152157
# Drawbacks
153158
[drawbacks]: #drawbacks
154159

0 commit comments

Comments
 (0)