Skip to content

Instantly share code, notes, and snippets.

@alexcrichton
Last active December 16, 2015 23:29
Show Gist options
  • Save alexcrichton/5514002 to your computer and use it in GitHub Desktop.
Save alexcrichton/5514002 to your computer and use it in GitHub Desktop.
mod a {
pub type b = int;
}
mod b {
use a; // bad
use a::b; // good
}
mod a {
pub mod b {
pub type c = int;
}
}
mod b {
use a::b;
pub use c = b::c; // bad
fn f() -> b::c { fail!() } // good
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment