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

ABI #14

Open
gnzlbg opened this issue Oct 31, 2019 · 0 comments
Open

ABI #14

gnzlbg opened this issue Oct 31, 2019 · 0 comments

Comments

@gnzlbg
Copy link

gnzlbg commented Oct 31, 2019

One can't be generic over extern "ABI":

extern "C" fn foo() {}
extern "Rust" fn bar() {}

fn baz<T: ??? Fn()>(t: T) { }
baz(foo);
baz(bar);

This is similar to being generic over #[target_feature] (target-features are part of the ABI, or at least affect it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant