3 macro_rules
! should_parse
{
4 ($name
:ident
, { $($in:tt)* }
) => {
7 // Make sure we can parse the file!
8 syn
::parse_file(stringify
!($
($
in)*)).unwrap();
13 should_parse
!(generic_associated_type
, {
16 fn foo
<'a
>(&'a
self) -> Self::Item
<'a
> {}
21 should_parse
!(const_generics_use
, {
25 type W
= Foo
<{ X + 10 }
>;
28 should_parse
!(trailing_plus_type
, {
30 type A
= Box
<Foo
+ 'a
>;
31 type A
= Box
<'a
+ Foo
>;
34 should_parse
!(generic_associated_type_where
, {
37 fn foo
<T
>(&self, t
: T
) -> Self::Item
<T
>;
41 should_parse
!(match_with_block_expr
, {