diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-23891.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-23891.rs b/src/test/ui/issues/issue-23891.rs new file mode 100644 index 000000000..73467f715 --- /dev/null +++ b/src/test/ui/issues/issue-23891.rs @@ -0,0 +1,11 @@ +// run-pass +macro_rules! id { + ($s: pat) => ($s); +} + +fn main() { + match (Some(123), Some(456)) { + (id!(Some(a)), _) | (_, id!(Some(a))) => println!("{}", a), + _ => (), + } +} |