diff --git a/src/test/run-pass/type-macros.rs b/src/test/run-pass/type-macros.rs index 3ca3be8efed4..a5eb37b8cc3c 100644 --- a/src/test/run-pass/type-macros.rs +++ b/src/test/run-pass/type-macros.rs @@ -57,9 +57,11 @@ impl Add for Cons where // type macro Expr allows us to expand the + operator appropriately macro_rules! Expr { { ( $($LHS:tt)+ ) } => { Expr!($($LHS)+) }; - { HList ! [ $($LHS:tt)* ] + $($RHS:tt)+ } => { >::Output }; - { $LHS:tt + $($RHS:tt)+ } => { >::Output }; - { $LHS:ty } => { $LHS }; + { HList ! [ $($LHS:tt)* ] + $($RHS:tt)+ } => { + >::Output + }; + { $LHS:tt + $($RHS:tt)+ } => { >::Output }; + { $LHS:ty } => { $LHS }; } // test demonstrating term level `xs + ys` and type level `Expr!(Xs + Ys)`