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

Patterns in extern function declarations are parseable but should be checked for #2732

Open
CohenArthur opened this issue Nov 8, 2023 · 0 comments
Labels

Comments

@CohenArthur
Copy link
Member

I tried this code:

struct Pattern(i32);

extern "C" {
    fn foo(Pattern(a): Pattern);
}

I expected to see this happen: parsing should succeed, but an AST validation pass should fail: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=c69d76225d2af005f0441b34b96e5a2a

Instead, this happened: gccrs failed during the parsing step

@CohenArthur CohenArthur added the bug label Nov 8, 2023
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