rust/tests/ui/parser/generic-param-default-in-binder.rs
2024-01-01 21:58:25 +01:00

11 lines
208 B
Rust

// 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() {}