diff options
Diffstat (limited to 'tests/ui/proc-macro/negative-token.rs')
-rw-r--r-- | tests/ui/proc-macro/negative-token.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/negative-token.rs b/tests/ui/proc-macro/negative-token.rs new file mode 100644 index 000000000..2ed3cbc08 --- /dev/null +++ b/tests/ui/proc-macro/negative-token.rs @@ -0,0 +1,11 @@ +// run-pass +// aux-build:negative-token.rs + +extern crate negative_token; + +use negative_token::*; + +fn main() { + assert_eq!(-1, neg_one!()); + assert_eq!(-1.0, neg_one_float!()); +} |