Created
July 12, 2018 22:41
-
-
Save durka/eda69cc3986c26edeaf9a778e301c5df to your computer and use it in GitHub Desktop.
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() { | |
let mut i = 0; | |
times!([4 2] { | |
i += 1; | |
}); | |
println!("i = {}", i); | |
assert_eq!(i, 42); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment