Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created September 20, 2019 21:14
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 rust-play/996afc2ba7b64ad162db299ce4212bfa to your computer and use it in GitHub Desktop.
Save rust-play/996afc2ba7b64ad162db299ce4212bfa to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
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