-
Notifications
You must be signed in to change notification settings - Fork 19
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
error: no rules expected the token tmpl
#17
Comments
You're missing a semicolon before |
Thank you that fixed it, I though I got all those. I also never knew that macros couldn't have error handling, but yes having any type of error handling would be nice other than the 'it failed' kind it has now. |
They can now but it's still very difficult. For example, there's no way to get the line on which a token occurs in a macro (as far as I know at least). Note: This only applies to declarative macros (like horrorshow). Procedural macros are a lot more flexible (they're just procedural code). |
Perhaps it could be done by the render, like it walks through and if it finds something that breaks then it takes note of it and logs it. |
Unfortunately not. That happens at run-time but macro syntax errors happen at compile time. |
As a prenote I only have a general idea of how rust works and are making a web site/server to learn it.
I have multiple functions that return
Box<RenderBox>
that are later used in a function that returns the rendered string.Version: 0.6.2
Log
Code
The text was updated successfully, but these errors were encountered: