Skip to content

Commit c48d6b0

Browse files
committed
test: add test for double_negations with macto
1 parent 3014e79 commit c48d6b0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//@ check-pass
2+
macro_rules! neg {
3+
($e: expr) => {
4+
-$e
5+
};
6+
}
7+
8+
fn main() {
9+
neg!(-1);
10+
}

0 commit comments

Comments
 (0)