Skip to content

Commit bc1f25a

Browse files
committed
Remove outdated section
1 parent f81510c commit bc1f25a

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

text/0000-impl-trait-type-aliases.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -332,19 +332,6 @@ type Bar<'a> = impl Debug;
332332
fn get_bar<'a>(y: &'a ()) -> Bar<'a> { UnitRefWrapper(y) }
333333
```
334334

335-
## Restricting compound `impl Trait` trait aliases
336-
The type alias syntax is more flexible than `existential type`, but for now we restrict the form to that equivalent to `existential type`. That means that, if `impl Trait` appears on the right-hand side of a type alias declaration, it must be the only type. The following compound type aliases, therefore, are initially forbidden:
337-
338-
```rust
339-
// error: compound type aliases containing `impl Bar` are disallowed
340-
// hint: extract `impl Bar` from `A`
341-
type A = (impl Bar, impl Bar);
342-
type B = (u8, impl Bar);
343-
type C = Vec<impl Bar>;
344-
```
345-
346-
This RFC does not prohibit the possibility that this rule could be relaxed in the future if it is found to be too restrictive.
347-
348335
# Drawbacks
349336
[drawbacks]: #drawbacks
350337

0 commit comments

Comments
 (0)