-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
Can I pass None as arg to a macro? #864
Comments
Could you please copy the exact output of the compiler? In my superficial test the code compiled fine in both the last released version and the current development version. |
I am using the input component like this,
I get red underline in the Template derive in the struct
When I cargo run i get this error
but when I change both input back to |
Update:
|
I have the same issue
so i don`t know how to solve this problem |
When I pass "None" to input, I get a "type annotations needed cannot infer type" error
When I do
{% call input(Some("email"), Some("email"), Some(true)) %}
It works alrightbut when I do
{% call input(None, Some("email"), Some(true)) %}
It yalled at me :(The text was updated successfully, but these errors were encountered: