Created
August 20, 2019 23:39
-
-
Save rust-play/b6d91a3f596e17d6a9bc5f581ac648cd 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
type F = dyn FnMut(); | |
pub fn g(_f: &mut F) {} | |
pub fn test(f: &mut F) { | |
g(&mut || f()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment