Skip to content

Instantly share code, notes, and snippets.

@jmgrosen
Created July 31, 2013 05:40
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 jmgrosen/6119591 to your computer and use it in GitHub Desktop.
Save jmgrosen/6119591 to your computer and use it in GitHub Desktop.
struct Thing;
fn do_stuff<'a>(thing: &'a Thing) -> &'a fn() {
let cloned_thing = thing.clone();
|| {
let cloned_cloned_thing = cloned_thing.clone();
}
}
fn main() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment