提交 764c2fe2 编写于 作者: J John Clements

simplified test case

上级 268f6c56
......@@ -10,13 +10,14 @@
#![feature(macro_rules)]
macro_rules! inner_bind (
( $p:pat, $id:ident) => ({let $p = 13; $id}))
macro_rules! inner (
($e:pat ) => ($e))
macro_rules! outer_bind (
($p:pat, $id:ident ) => (inner_bind!($p, $id)))
macro_rules! outer (
($e:pat ) => (inner!($e)))
fn main() {
outer_bind!(g1,g1);
let outer!(g1) = 13;
g1;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册