1
Fork 0

Deny defaults for higher-ranked generic parameters

This commit is contained in:
León Orell Valerian Liehr 2024-01-01 19:29:27 +01:00
parent 88d69b72b4
commit 3d0297a1e1
No known key found for this signature in database
GPG key ID: D17A07215F68E713
12 changed files with 133 additions and 66 deletions

View file

@ -0,0 +1,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() {}