[rust-dev] name resolution rule for enum variants?

Patrick Walton pcwalton at mozilla.com
Sat Jul 5 14:06:41 PDT 2014


On 7/5/14 2:06 PM, Phil Dawes wrote:
> Thanks Patrick, that makes sense.
>
> I need to think about how to code this into Racer. Can I assume that
> anything preceding a :: in a path is from the type namespace?

Yes.

> (Is there somewhere other than the rustc source where I should be
> reading about this?)

It's somewhat documented in the manual.

Patrick



More information about the Rust-dev mailing list