rust/tests/ui/parser/generic-param-default-in-binder.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
209 B
Rust
Raw Normal View History

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