Created
April 28, 2020 20:26
-
-
Save narodnik/79948e4dbae0bdae239b124d61bec983 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
struct Network { | |
} | |
struct Handshake<'a> { | |
net: &'a Network | |
} | |
struct Foo<'a> { | |
net: Network, | |
hs: Handshake<'a> | |
} | |
impl<'a> Foo<'a> { | |
fn new() -> Self { | |
let net = Network {}; | |
Self { | |
net, | |
hs: Handshake { net: &net } | |
} | |
} | |
} | |
fn main() { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment