-
-
Save danneu/8f719d4b9c397ef13d5c373788861041 to your computer and use it in GitHub Desktop.
src/a.rs, src/b.rs, src/lib.rs
This file contains 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
pub fn fn_a() -> u32 { 1 } |
This file contains 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
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() | |
} |
This file contains 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; | |
mod b; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment