Created
April 21, 2019 21:42
-
-
Save rust-play/0bb107ce1069fa35a07c06f8d917bc46 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<'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