diff --git a/tests/source/macro_not_expr.rs b/tests/source/macro_not_expr.rs new file mode 100644 index 00000000000..d8de4dce38f --- /dev/null +++ b/tests/source/macro_not_expr.rs @@ -0,0 +1,7 @@ +macro_rules! test { + ($($t:tt)*) => {} +} + +fn main() { + test!( a : B => c d ); +} diff --git a/tests/target/macro_not_expr.rs b/tests/target/macro_not_expr.rs new file mode 100644 index 00000000000..d8de4dce38f --- /dev/null +++ b/tests/target/macro_not_expr.rs @@ -0,0 +1,7 @@ +macro_rules! test { + ($($t:tt)*) => {} +} + +fn main() { + test!( a : B => c d ); +}