-
-
Save hadronized/90764f7f6a978df7c4ee5952b2836644 to your computer and use it in GitHub Desktop.
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 correct<F>(f: F) where F: for<'a> FnOnce(&'a u32) { | |
f(&3) | |
} | |
fn dafuck<F>(f: F) where for<'a> F: FnOnce(&'a u32) { | |
f(&3) | |
} | |
fn main() { | |
correct(|x| println!("{}", x)); | |
dafuck(|x| println!("{}", x)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment