]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/macros/typeck-macro-interaction-issue-8852.rs
9 // after fixing #9384 and implementing hygiene for match bindings,
10 // this now fails because the insertion of the 'y' into the match
11 // doesn't cause capture. Making this macro hygienic (as I've done)
12 // could very well make this test case completely pointless....
15 ($id1
:ident
, $id2
:ident
, $e
:expr
) => (
16 fn foo(a
:T
, b
:T
) -> T
{
18 (T
::A($id1
), T
::A($id2
)) => T
::A($e
),
19 (T
::B($id1
), T
::B($id2
)) => T
::B($e
),
29 foo(T
::A(1), T
::A(2));