Created
September 20, 2019 21:14
-
-
Save rust-play/996afc2ba7b64ad162db299ce4212bfa to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
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 struct Foo; | |
mod private { | |
use super::*; | |
impl Foo { | |
pub fn bar(&self) {} | |
} | |
} | |
fn main() { | |
let foo = Foo; | |
foo.bar(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment