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

core: finally::test_compact: You should be able to write trait impls on function items #4727

Closed
catamorphism opened this issue Feb 1, 2013 · 1 comment
Labels
A-traits Area: Trait system A-typesystem Area: The type system

Comments

@catamorphism
Copy link
Contributor

as per a FIXME (formerly XXX), apparently you can't

@alexcrichton
Copy link
Member

It turns out that the impl just has to be for the type extern "Rust" fn() instead of &fn, ~fn or @fn (in case anyone runs across this).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-traits Area: Trait system A-typesystem Area: The type system
Projects
None yet
Development

No branches or pull requests

2 participants