Deny defaults for higher-ranked generic parameters
This commit is contained in:
parent
88d69b72b4
commit
3d0297a1e1
12 changed files with 133 additions and 66 deletions
10
tests/ui/parser/generic-param-default-in-binder.rs
Normal file
10
tests/ui/parser/generic-param-default-in-binder.rs
Normal 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() {}
|
Loading…
Add table
Add a link
Reference in a new issue