Last active
December 14, 2015 04:49
-
-
Save alexcrichton/5031001 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 foo { | |
pub fn foo() {} | |
} | |
mod a { | |
pub mod b { | |
use foo::foo; | |
} | |
pub mod sub { | |
use a::b::*; | |
fn sub() { foo(); } // 'use foo::foo' in b wasn't 'pub', but this is ok? | |
} | |
} | |
fn main() {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment