Created
April 23, 2019 05:04
-
-
Save rust-play/36ee8706cb02922818d32ad2bdd2bb6f 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
fn main() { | |
} | |
struct Bar<'a> { | |
x: fn(&'a str), | |
} | |
fn foo(x: Bar<'static>) { | |
} | |
fn baz<'a>(b: Bar<'a>) { | |
foo(b) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment