mirror of https://github.com/rust-lang/reference
Remove outdated restriction on recursive types
This commit is contained in:
parent
58e0f34eb1
commit
b5596cb97e
|
@ -104,9 +104,6 @@ itself. Such recursion has restrictions:
|
|||
Rec = &'static [Rec]` is not allowed.
|
||||
* The size of a recursive type must be finite; in other words the recursive
|
||||
fields of the type must be [pointer types].
|
||||
* Recursive type definitions can cross module boundaries, but not module
|
||||
*visibility* boundaries, or crate boundaries (in order to simplify the module
|
||||
system and type checker).
|
||||
|
||||
An example of a *recursive* type and its use:
|
||||
|
||||
|
|
Loading…
Reference in New Issue