Closed
Description
I have two modules, a.rs and b.rs.
a.rs:
#[crate_type = "lib"];
mod test { pub type I = int; }
b.rs:
#[crate_type = "lib"];
extern mod a;
use a::test::*;
fn foo(i: I) {}
I'm compiling it with rustc:
rustc a.rs
rustc -L . b.rs
It used to work, but it now gives the error message:
b.rs:6:10: 6:11 error: use of undeclared type name `I`
However, the problem here is not with I - the problem is with module (adding pub
to test module fixes the error). Is it possible to emit an error at 'use a::test::*' instead?
Metadata
Metadata
Assignees
Labels
No labels