[rust-dev] crate_type = "lib" and testing

Brian Anderson banderson at mozilla.com
Wed Apr 11 13:47:41 PDT 2012

On 04/10/2012 08:28 PM, Niko Matsakis wrote:
> the reason is that there is no need for the `mod test` directive in
> test.rc. This effectively creates loads the `test.rs` file twice, once
> in the root namespace and once as the module `test`.

There's a bug open[1] to change this behavior since it's a frequent 
source of confusion.

[1] https://github.com/mozilla/rust/issues/1277

More information about the Rust-dev mailing list