Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse trait bounds containing associated constant constraint #1138

Closed
dtolnay opened this issue Mar 14, 2022 · 1 comment
Closed

Parse trait bounds containing associated constant constraint #1138

dtolnay opened this issue Mar 14, 2022 · 1 comment
Labels

Comments

@dtolnay
Copy link
Owner

dtolnay commented Mar 14, 2022

As seen in src/test/ui/associated-consts/assoc-const.rs:

fn foo<F: Foo<N = 3usize>>() {}

Syn can't currently parse this.

error: expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime
  --> src/test/ui/associated-consts/assoc-const.rs:18:17
   |
18 | fn foo<F: Foo<N=3usize>>() {}
   |                 ^^^^^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant