Skip to content

Instantly share code, notes, and snippets.

@SiegeLord
Created September 28, 2013 01:39
Show Gist options
  • Select an option

  • Save SiegeLord/6737479 to your computer and use it in GitHub Desktop.

Select an option

Save SiegeLord/6737479 to your computer and use it in GitHub Desktop.
Private modules
use A::B;
pub mod A
{
mod B
{
}
}
fn main() {}
/*
test.rs:1:4: 1:8 error: unresolved import: found `B` in `A` but it is private
test.rs:1 use A::B;
^~~~
test.rs:1:4: 1:8 error: failed to resolve import `A::B`
test.rs:1 use A::B;
^~~~
error: aborting due to 2 previous errors
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment