Skip to content

Instantly share code, notes, and snippets.

@alexcrichton
Last active December 14, 2015 04:49
Show Gist options
  • Save alexcrichton/5031001 to your computer and use it in GitHub Desktop.
Save alexcrichton/5031001 to your computer and use it in GitHub Desktop.
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