Skip to content
Permalink
Browse files

Add a test for #44127

  • Loading branch information...
varkor committed Feb 25, 2019
1 parent d49f4f8 commit 3f16518c054c5bfe8093250ed3c1a5b4db2209b1
Showing with 17 additions and 0 deletions.
  1. +17 −0 src/test/ui/issues/issue-44127.rs
@@ -0,0 +1,17 @@
// run-pass

#![feature(decl_macro)]

pub struct Foo {
bar: u32,
}
pub macro pattern($a:pat) {
Foo { bar: $a }
}

fn main() {
match (Foo { bar: 3 }) {
pattern!(3) => println!("Test OK"),
_ => unreachable!(),
}
}

0 comments on commit 3f16518

Please sign in to comment.
You can’t perform that action at this time.