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
The syntax that rustdoc uses to refer to types declared internally within a trait ("associated types"), is different from what rustc expects. This is fairly confusing for a newbie, who tries to learn the language by example - in particular, by looking at how the standard API does things.
For example, the documentation of the Iterator trait http://doc.rust-lang.org/std/iter/trait.Iterator.html refers to the type "Item" simply by "Item", but I have to write "Self::Item" for this code to actually compile.
The text was updated successfully, but these errors were encountered:
The syntax that rustdoc uses to refer to types declared internally within a trait ("associated types"), is different from what rustc expects. This is fairly confusing for a newbie, who tries to learn the language by example - in particular, by looking at how the standard API does things.
For example, the documentation of the Iterator trait http://doc.rust-lang.org/std/iter/trait.Iterator.html refers to the type "Item" simply by "Item", but I have to write "Self::Item" for this code to actually compile.
The text was updated successfully, but these errors were encountered: