Last active
December 16, 2015 23:29
-
-
Save alexcrichton/5514002 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mod a { | |
pub type b = int; | |
} | |
mod b { | |
use a; // bad | |
use a::b; // good | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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