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
#[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?