File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -123,9 +123,9 @@ trait TraitA {
123
123
124
124
## Notes on the meaning of ` impl Trait<Assoc: Bound> `
125
125
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:
129
129
130
130
``` rust
131
131
fn printables () -> impl Iterator <Item = impl Display > { .. }
@@ -149,6 +149,11 @@ existential type Foo: Trait<Assoc = _0>;
149
149
existential type _0 : Bound ;
150
150
```
151
151
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
+
152
157
# Drawbacks
153
158
[ drawbacks ] : #drawbacks
154
159
You can’t perform that action at this time.
0 commit comments