-
-
Save rust-play/f02329ad916ec61a47ebd6f15f599b65 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
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
fn main() { | |
test(&|| 0); | |
} | |
fn test<T>(arg: &impl Fn() -> T) | |
where | |
for<'a> &'a T: Default, | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment