about summary refs log tree commit diff
path: root/tests/ui/parser/generic-param-default-in-binder.rs
blob: 740640f43a44ab58a0ab1c29a9831e4627c94aaa (plain)
1
2
3
4
5
6
7
8
9
10
// Check that defaults for generic parameters in `for<...>` binders are
// syntactically valid. See also PR #119042.

//@ check-pass

macro_rules! a { ($ty:ty) => {} }

a! { for<T = &i32> fn() }

fn main() {}