3 macro_rules! test_expr {
12 test_expr!(a as fn() -> B | C);
13 // Do not break the `|` operator.
15 test_expr!(|_: fn() -> B| C | D);
16 // Do not break `-> Ret` in closure args.
19 // We can't support anon enums in arbitrary positions.
21 test_ty!(fn() -> A | B);
22 // Don't break fn ptrs.
24 test_ty!(impl Fn() -> A | B);
25 // Don't break parenthesized generics.