]>
git.proxmox.com Git - rustc.git/blob - tests/rustdoc/macro-higher-kinded-function.rs
3 pub struct TyCtxt
<'tcx
>(&'tcx
u8);
6 ($
(($name
:ident
, $tcx
:lifetime
, [$k
:ty
], [$r
:ty
]))*) => {
8 $
(pub $name
: for<$tcx
> fn(TyCtxt
<$tcx
>, $k
) -> $r
,)*
13 // @has 'foo/struct.Providers.html'
14 // @has - '//*[@class="rust item-decl"]//code' "pub a: for<'tcx> fn(_: TyCtxt<'tcx>, _: u8) -> i8,"
15 // @has - '//*[@class="rust item-decl"]//code' "pub b: for<'tcx> fn(_: TyCtxt<'tcx>, _: u16) -> i16,"
16 // @has - '//*[@id="structfield.a"]/code' "a: for<'tcx> fn(_: TyCtxt<'tcx>, _: u8) -> i8"
17 // @has - '//*[@id="structfield.b"]/code' "b: for<'tcx> fn(_: TyCtxt<'tcx>, _: u16) -> i16"
20 (b
, 'tcx
, [u16], [i16])