Skip to content

Inner attributes are not allowed in inline modules #790

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

Closed
mathstuf opened this issue Nov 2, 2021 · 1 comment
Closed

Inner attributes are not allowed in inline modules #790

mathstuf opened this issue Nov 2, 2021 · 1 comment

Comments

@mathstuf
Copy link
Contributor

mathstuf commented Nov 2, 2021

This code:

mod inline {
    #![path = "foo"]
}

is a valid way to set the path for an inline module. However, it is currently detected as a syntax error because "inner attributes are not allowed here". See #785 for existing test code which will need uncommented when this is complete.

@mathstuf
Copy link
Contributor Author

mathstuf commented Nov 2, 2021

I'm blind. I had used an inner attribute copy pasta'd into where an outer one was needed. Just could not see the #! even when the error message pointed right to the problem. 🤦

@mathstuf mathstuf closed this as completed Nov 2, 2021
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