You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stabilization docs for RFC 2300 - self_in_typedefs #473
Unless I'm missing something, I don't think it is documented. It is explained for traits and impls, but I don't think there is much detail besides that. The section on Self should probably be updated to include a link to something that describes self_in_typedefs. I don't know where that should live (types chapter maybe?).
Activity
[-]Stabilization docs for RFC 2300[/-][+]Stabilization docs for RFC 2300 - self_in_typedefs[/+]Centril commentedon Dec 11, 2018
@alexreg suggested that this was already done in the reference... but it would be good to double check...
ehuss commentedon Dec 11, 2018
Unless I'm missing something, I don't think it is documented. It is explained for traits and impls, but I don't think there is much detail besides that. The section on Self should probably be updated to include a link to something that describes self_in_typedefs. I don't know where that should live (types chapter maybe?).
alexreg commentedon Dec 12, 2018
It's already in the grammar.
Centril commentedon Dec 12, 2018
An idea: in the recursive types section: https://doc.rust-lang.org/nightly/reference/types.html#recursive-types we could illustrate the use of
Self... Otherwise @alexreg is right that it is in the type expression grammar.alexreg commentedon Dec 12, 2018
@Centril Yep, that could work.