Skip to content

Instantly share code, notes, and snippets.

@danneu
Last active September 11, 2018 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danneu/8f719d4b9c397ef13d5c373788861041 to your computer and use it in GitHub Desktop.
Save danneu/8f719d4b9c397ef13d5c373788861041 to your computer and use it in GitHub Desktop.
src/a.rs, src/b.rs, src/lib.rs
pub fn fn_a() -> u32 { 1 }
use a;
// error[E0463]: can't find crate for `a`
// --> src/b.rs:1:5
// |
// 1 | use a::fn_a;
// | ^ can't find crate
pub fn fn_b() -> u32 {
a::fn_a()
}
mod a;
mod b;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment