3 // Test that failing macro matchers will not cause pre-expansion errors
4 // even though they use a feature that is pre-expansion gated.
7 ($e:expr) => { 0 }; // This fails on the input below due to `, foo`.
8 ($e:expr,) => { 1 }; // This also fails to match due to `foo`.
9 (box $e:expr, foo) => { 2 }; // Successful matcher, we should get `2`.
13 assert_eq!(2, m!(box 42, foo));