]>
git.proxmox.com Git - rustc.git/blob - src/test/run-pass/macros/macro-interpolation.rs
3 macro_rules
! overly_complicated
{
4 ($fnname
:ident
, $arg
:ident
, $ty
:ty
, $body
:block
, $val
:expr
, $pat
:pat
, $res
:path
) =>
6 fn $
fnname($arg
: $ty
) -> Option
<$ty
> $body
18 assert
!(overly_complicated
!(f
, x
, Option
<usize>, { return Some(x); }
,
19 Some(8), Some(y
), y
) == 8)