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

Allow wildcard argument names in extern function signature #154

Closed
dtolnay opened this issue Apr 26, 2020 · 0 comments · Fixed by #159
Closed

Allow wildcard argument names in extern function signature #154

dtolnay opened this issue Apr 26, 2020 · 0 comments · Fixed by #159

Comments

@dtolnay
Copy link
Owner

dtolnay commented Apr 26, 2020

Currently we reject this for no particular reason. Seems like an oversight.

#[cxx::bridge]
mod ffi {
    extern "C" {
        fn repro(_: &str);
    }
}
error[cxxbridge]: unsupported signature

    ┌── src/main.rs:4:18 ───

  4 │         fn repro(_: &str);  // but `s: &str` works
    │                  ^^^^^^^ unsupported signature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant