Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created April 21, 2019 21:42
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/0bb107ce1069fa35a07c06f8d917bc46 to your computer and use it in GitHub Desktop.
Save rust-play/0bb107ce1069fa35a07c06f8d917bc46 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
pub struct Foo<'a> {
a: &'a str,
}
impl<'a, 'b> Default for Foo<'a> {
fn default() -> Self {
Self { a: "hello" }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment