diff options
author | clubby789 <jamie@hill-daniel.co.uk> | 2023-02-27 13:07:44 +0000 |
---|---|---|
committer | clubby789 <jamie@hill-daniel.co.uk> | 2023-03-12 13:19:46 +0000 |
commit | dd7df04e168324fc002ab4985b6c7513f08ccf49 (patch) | |
tree | d20567e06dfccad24f16dabddb42852a498a8c1a /tests/ui/parser/issues | |
parent | 24c0b81c1fd5de8e00276524896d3352ed91a8cb (diff) | |
download | rust-dd7df04e168324fc002ab4985b6c7513f08ccf49.tar.gz |
Remove uses of `box_syntax` in rustc and tools
Diffstat (limited to 'tests/ui/parser/issues')
-rw-r--r-- | tests/ui/parser/issues/issue-65846-rollback-gating-failing-matcher.rs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/ui/parser/issues/issue-65846-rollback-gating-failing-matcher.rs b/tests/ui/parser/issues/issue-65846-rollback-gating-failing-matcher.rs index 76c07bbfd81..b0e8f4d9988 100644 --- a/tests/ui/parser/issues/issue-65846-rollback-gating-failing-matcher.rs +++ b/tests/ui/parser/issues/issue-65846-rollback-gating-failing-matcher.rs @@ -5,11 +5,17 @@ #[allow(unused_macro_rules)] macro_rules! m { - ($e:expr) => { 0 }; // This fails on the input below due to `, foo`. - ($e:expr,) => { 1 }; // This also fails to match due to `foo`. - (box $e:expr, foo) => { 2 }; // Successful matcher, we should get `2`. + ($e:expr) => { + 0 + }; // This fails on the input below due to `, foo`. + ($e:expr,) => { + 1 + }; // This also fails to match due to `foo`. + (do yeet $e:expr, foo) => { + 2 + }; // Successful matcher, we should get `2`. } fn main() { - assert_eq!(2, m!(box 42, foo)); + assert_eq!(2, m!(do yeet 42, foo)); } |