Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created April 23, 2019 05:04
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/36ee8706cb02922818d32ad2bdd2bb6f to your computer and use it in GitHub Desktop.
Save rust-play/36ee8706cb02922818d32ad2bdd2bb6f to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
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