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

Failed to parse derive input for Box<'a +Fn()->T> #364

Closed
alanpoon opened this issue Feb 26, 2018 · 2 comments
Closed

Failed to parse derive input for Box<'a +Fn()->T> #364

alanpoon opened this issue Feb 26, 2018 · 2 comments

Comments

@alanpoon
Copy link

Lifetime specification is allowed for closure in Box, when declaring a property for a struct. https://play.rust-lang.org/?gist=d496c1bca4881db342c6e78f5ca50abb&version=stable

However, when I add #[derive(....)], before the struct, it fails to parse the Input.

@dtolnay
Copy link
Owner

dtolnay commented Feb 26, 2018

I believe this was fixed in #261. The derive macro may still be using an old version of Syn.

@alanpoon
Copy link
Author

alanpoon commented Mar 7, 2018

Thanks!

@alanpoon alanpoon closed this as completed Mar 7, 2018
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

2 participants