Skip to content

Commit 764c2fe

Browse files
committed
simplified test case
1 parent 268f6c5 commit 764c2fe

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/test/run-pass/issue-15221.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010

1111
#![feature(macro_rules)]
1212

13-
macro_rules! inner_bind (
14-
( $p:pat, $id:ident) => ({let $p = 13; $id}))
13+
macro_rules! inner (
14+
($e:pat ) => ($e))
1515

16-
macro_rules! outer_bind (
17-
($p:pat, $id:ident ) => (inner_bind!($p, $id)))
16+
macro_rules! outer (
17+
($e:pat ) => (inner!($e)))
1818

1919
fn main() {
20-
outer_bind!(g1,g1);
20+
let outer!(g1) = 13;
21+
g1;
2122
}
2223

0 commit comments

Comments
 (0)